diff --git a/assets/templates/base.pug b/assets/templates/base.pug index 0c784f8..1442e4b 100644 --- a/assets/templates/base.pug +++ b/assets/templates/base.pug @@ -4,9 +4,12 @@ html(class="no-js", lang="en") block set_site_root - var site_root = './' + block set_current_page + - var page = 'default' + include ./html_head.pug - body + body(class=page) include ./header.pug #content diff --git a/index.pug b/index.pug index cb5bc24..7d0b4c9 100644 --- a/index.pug +++ b/index.pug @@ -6,4 +6,7 @@ extend ./assets/templates/base.pug +block set_current_page + - var page = 'index' + block content