Skip to content

Commit

Permalink
Added header and footer partials.
Browse files Browse the repository at this point in the history
  • Loading branch information
pschfr committed Feb 14, 2019
1 parent 3a23241 commit ab5fcfa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
15 changes: 9 additions & 6 deletions public/_layout.jade
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
doctype
html
head
title= title
meta(name="viewport" content="width=device-width, initial-scale=1")
link(rel="stylesheet" href="/css/main.css")
body.sans-serif
!= yield
head
title= title
meta(name="viewport" content="width=device-width, initial-scale=1")
link(rel="stylesheet" href="/css/main.css")
body.sans-serif.pa3
!= partial('_partials/header')
main
!= yield
!= partial('_partials/footer')
3 changes: 3 additions & 0 deletions public/_partials/footer.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
footer
p.mb0
a(href="#{source}" target="_blank") View source on GitHub.
2 changes: 2 additions & 0 deletions public/_partials/header.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
header
h1= title

0 comments on commit ab5fcfa

Please sign in to comment.