sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Move all HTML in `create_page` to separate template files #15

Closed sc0ttj closed 5 years ago

sc0ttj commented 5 years ago

Create

./templates/site_meta.html
./templates/site_header.html
./templates/post_header.html
./templates/post_body.html
./templates/post_prev_next.html
./templates/post_footer.html
./templates/site_footer.html
... etc

Containing stuff like:

site_footer.html:

<div class="footer">
$blog_title
</div>

...then just cat the HTML into vars in the various create_page funcs..

for mustache, see https://github.com/jwerle/mush

sc0ttj commented 5 years ago

See branch https://github.com/sc0ttj/mdsh/tree/mustache-templating-1