From 1c257a68e62feebc2b530703c61ccecd68faeb39 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Thu, 1 Apr 2021 01:58:29 +0600 Subject: [PATCH] Support note splitting Signed-off-by: hossainemruz --- layouts/shortcodes/note.html | 11 +++++------ static/css/layouts/notes.css | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 3aa9a4e..ffa3663 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,11 +1,10 @@
{{ .Get "title" }}
-
-
{{ .Inner | markdownify }}
- {{ if .Get "footer" }} - - {{end}} -
+ {{ range $idx, $val := split .Inner "---" }} +
+
{{ $val | markdownify }}
+
+ {{ end }}
diff --git a/static/css/layouts/notes.css b/static/css/layouts/notes.css index 5702c0f..28f852c 100644 --- a/static/css/layouts/notes.css +++ b/static/css/layouts/notes.css @@ -60,7 +60,7 @@ width:98%; height:100%; margin-bottom:-26px; - border-bottom:1px solid #248aaa; + border-bottom: 1px solid #248aaa; } .note-card .card-body{