Browse Source

Added variable to set page class.

master
Daniel Sissom 11 months ago
parent
commit
e0e02ee98e
Signed by: djsissom GPG Key ID: 2C30FFB796852389
2 changed files with 7 additions and 1 deletions
  1. + 4
    - 1
      assets/templates/base.pug
  2. + 3
    - 0
      index.pug

+ 4
- 1
assets/templates/base.pug

@ -4,9 +4,12 @@ html(class="no-js", lang="en")
block set_site_root block set_site_root
- var site_root = './' - var site_root = './'
block set_current_page
- var page = 'default'
include ./html_head.pug include ./html_head.pug
body
body(class=page)
include ./header.pug include ./header.pug
#content #content

+ 3
- 0
index.pug

@ -6,4 +6,7 @@
extend ./assets/templates/base.pug extend ./assets/templates/base.pug
block set_current_page
- var page = 'index'
block content block content

Loading…
Cancel
Save