mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-12-22 20:11:59 +00:00
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>
|
||||
|
Loading…
Reference in New Issue
Block a user