maciejzj/ssb

Replace concatenation of header+body+footer with pandoc templates?

Opened this issue · 0 comments

Pandoc templates docs: https://pandoc.org/MANUAL.html#templates

code in question:

ssb/ssb

Lines 307 to 308 in 6922128

append_posts_list "$posts" | cat "$md_file" - | eval "$MD_RENDERER" > "$tempf"
cat "$HEADER_PATH" "$tempf" "$FOOTER_PATH" > "$output_file"

My use case: I want to have a different <meta name="og:title" ...> and <meta name="description" ...> for every post, but it's hardcoded inside header.html.

Having this would make ssb even more hackable with MD_RENDERER.