about summary refs log tree commit diff
path: root/ssg5
diff options
context:
space:
mode:
Diffstat (limited to 'ssg5')
-rwxr-xr-xssg58
1 files changed, 5 insertions, 3 deletions
diff --git a/ssg5 b/ssg5
index d011fbd..84311e4 100755
--- a/ssg5
+++ b/ssg5
@@ -197,12 +197,14 @@ render_md_files_lowdown() {
       out="$2/${f%\.md}/index.html"
     fi
 
-    echo "" > $in
-    [ "$(echo $f | cut -d'/' -f 2)" = "kronika" ] && echo "<article>" > $in
+    [ "$(echo $f | cut -d'/' -f 2)" = "kronika" ] && \
+      echo "<article class="kronika">" > $in || \
+      echo "<article>" > $in
+
     # Filter out frontmatter
     tail -n +$(($(sed -n '/---/,/---/p' $1/$f | wc -l)+1)) $1/$f | \
       lowdown --html-no-skiphtml --html-no-escapehtml >> $in && \
-    [ "$(echo $f | cut -d'/' -f 2)" = "kronika" ] && echo "</article>" >> $in
+    echo "</article>" >> $in
 
     cat "$in" |
       render_html_file "$3" \