mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 15:29:52 +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 {
|
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 '{}'" \;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,5 +6,6 @@
|
|||||||
<title>$title$</title>
|
<title>$title$</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h1>$title$</h1>
|
||||||
$body$
|
$body$
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user