From abaa0c2125150f1b24885d630cbfb1036d0c96f7 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Sat, 1 May 2021 11:48:41 +0100 Subject: [PATCH] add h1 header of value $title$ --- notes2web | 2 +- templates/index.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/notes2web b/notes2web index db9d1ce..0a48371 100755 --- a/notes2web +++ b/notes2web @@ -21,7 +21,7 @@ function _renderarticle { function _adddirtoindex { dir="$(dirname "$1")" - echo "

$(basename "$dir") notes

" >> index.md + echo "

$(basename "$dir") notes

" >> index.md find "$dir" -name '*.md' -exec bash -c "_addarticletoindex '{}'" \; } diff --git a/templates/index.html b/templates/index.html index d233a28..ae2d750 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,5 +6,6 @@ $title$ +

$title$

$body$