It is a little heavy but pandoc can convert markdown (or just about any
other format) into html while inserting header/footer text form a file.

I use something like this:

cat file.md | pandoc -M title:"Documents"  -H ../markdown.header -f gfm -t
html -o ~/Documents/docs.html

>From the pandoc users guide:
-H FILE, --include-in-header=FILE|URL

    Include contents of FILE, verbatim, at the end of the header. This can
be used, for example, to include special CSS or JavaScript in HTML
documents.

-A FILE, --include-after-body=FILE|URL

    Include contents of FILE, verbatim, at the end of the document body
(before the </body> tag in HTML

-B FILE, --include-before-body=FILE|URL

    Include contents of FILE, verbatim, at the beginning of the document
body (e.g. after the <body> tag in HTML


On Wed, Apr 3, 2019 at 1:38 PM Ken Fallon <[email protected]> wrote:

> Hi All,
>
> Do any of you have a recommendation for a Static Site Generators that
> just publishes html files.
>
> For example takes a page, adds a header and footer from somewhere and
> publishes the combined page.
>
>
> --
> Regards,
>
> Ken Fallon
> http://kenfallon.com
> http://hackerpublicradio.org/correspondents.php?hostid=30
>
> _______________________________________________
> Hpr mailing list
> [email protected]
> http://hackerpublicradio.org/mailman/listinfo/hpr_hackerpublicradio.org
>
_______________________________________________
Hpr mailing list
[email protected]
http://hackerpublicradio.org/mailman/listinfo/hpr_hackerpublicradio.org

Reply via email to