diff options
author | Emruz Hossain <hossainemruz@gmail.com> | 2021-05-02 02:02:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 02:02:27 +0300 |
commit | 67c49c7432429e77bbd466a90268a92c5448a064 (patch) | |
tree | 3491b70e3d0d0da3bc8427e889aee828e08e2129 /layouts/shortcodes | |
parent | fc5656c937629b9610937cf803a747bef4707129 (diff) |
Fix note layout (#274)
* Re-structure note lists
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Support note splitting
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Update single page
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
* Refactor separator logic in navbar
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/note.html | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index dfc77cf..ffa3663 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,11 +1,10 @@ <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 class="item"> + <h5 class="note-title"><span>{{ .Get "title" }}</span></h5> + {{ range $idx, $val := split .Inner "---" }} + <div class="card"> + <div class="card-body">{{ $val | markdownify }}</div> + </div> + {{ end }} </div> </div> |