diff --git a/blog-refresh.sh b/blog-refresh.sh index e328848..1d77828 100755 --- a/blog-refresh.sh +++ b/blog-refresh.sh @@ -63,7 +63,7 @@ create_entry() { # 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" # then add it to the index - title="$(grep -h '^title: ' "$path" | sed 's/title: //g')" + title=$(grep -h '' "dist/$outpath" | sed 's/<title>//g;s/<\/title>//g') created=$(grep -h '^date: ' "$path" | sed 's/date: //g') html_entry "$outpath" "$created" "$title" rss_entry "$title" "dist/$outpath"