forked from kageru/mdb
get the title from the html document instead because that's saver
This commit is contained in:
parent
cddfffbbe8
commit
e0ed767c63
|
@ -63,7 +63,7 @@ create_entry() {
|
||||||
# convert new markdown posts to html
|
# convert new markdown posts to html
|
||||||
pandoc -s --css=/css/sakura-vader.css "$path" src/footer/footer.md -t html5 -f markdown -o "dist/$outpath"
|
pandoc -s --css=/css/sakura-vader.css "$path" src/footer/footer.md -t html5 -f markdown -o "dist/$outpath"
|
||||||
# then add it to the index
|
# then add it to the index
|
||||||
title="$(grep -h '^title: ' "$path" | sed 's/title: //g')"
|
title=$(grep -h '<title>' "dist/$outpath" | sed 's/<title>//g;s/<\/title>//g')
|
||||||
created=$(grep -h '^date: ' "$path" | sed 's/date: //g')
|
created=$(grep -h '^date: ' "$path" | sed 's/date: //g')
|
||||||
html_entry "$outpath" "$created" "$title"
|
html_entry "$outpath" "$created" "$title"
|
||||||
rss_entry "$title" "dist/$outpath"
|
rss_entry "$title" "dist/$outpath"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user