diff options
author | Emruz Hossain <hossainemruz@gmail.com> | 2021-03-27 22:52:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 22:52:18 +0300 |
commit | 25e4e9e3d08fd7b398222fc9a1e171032598ac97 (patch) | |
tree | 978eba3b26237391c1dbe0f12e40e09580fa546d /layouts/shortcodes | |
parent | 5c95132b1eca566b335da083d0277f1521691f7b (diff) |
Add notes layout (#263)
* Add note layout
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Fix note organization
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* WIP: need help adding above 6 sections doesnt fit navbar
* Add note layout
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Add Translation
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Co-authored-by: HenzelMoras <henzelmoras@gmail.com>
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/note.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html new file mode 100644 index 0000000..dfc77cf --- /dev/null +++ b/layouts/shortcodes/note.html @@ -0,0 +1,11 @@ +<div class="note-card {{if .Get "size" }}{{.Get "size"}}-note{{end}}"> + <div class="card"> + <div class="card-header" style="background-color: {{ site.Params.notes.headerBackground | default "transparent" }};"> + <span class="note-title" style="color: {{ site.Params.notes.headerTextColor | default "#1c2d41" }};">{{.Get "title"}}</span> + </div> + <div class="card-body">{{ .Inner | markdownify }}</div> + {{ if .Get "footer" }} + <div class="card-footer">{{ .Get "footer" }}</div> + {{end}} + </div> +</div> |