add h1 header of value $title$

This commit is contained in:
Akbar Rahman 2021-05-01 11:48:41 +01:00
parent 731f71610d
commit abaa0c2125
2 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function _renderarticle {
function _adddirtoindex { function _adddirtoindex {
dir="$(dirname "$1")" dir="$(dirname "$1")"
echo "<h1>$(basename "$dir") notes</h1>" >> index.md echo "<h2>$(basename "$dir") notes</h2>" >> index.md
find "$dir" -name '*.md' -exec bash -c "_addarticletoindex '{}'" \; find "$dir" -name '*.md' -exec bash -c "_addarticletoindex '{}'" \;
} }

View File

@ -6,5 +6,6 @@
<title>$title$</title> <title>$title$</title>
</head> </head>
<body> <body>
<h1>$title$</h1>
$body$ $body$
</body> </body>