add h1 header of value $title$
This commit is contained in:
parent
731f71610d
commit
abaa0c2125
@ -21,7 +21,7 @@ function _renderarticle {
|
||||
|
||||
function _adddirtoindex {
|
||||
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 '{}'" \;
|
||||
}
|
||||
|
||||
|
@ -6,5 +6,6 @@
|
||||
<title>$title$</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>$title$</h1>
|
||||
$body$
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user