Browse Source

Added pug boilerplate setup.

master
Daniel Sissom 11 months ago
parent
commit
8a76dbed39
Signed by: djsissom GPG Key ID: 2C30FFB796852389
4 changed files with 50 additions and 0 deletions
  1. + 15
    - 0
      assets/templates/base.pug
  2. + 3
    - 0
      assets/templates/footer.pug
  3. + 23
    - 0
      assets/templates/head.pug
  4. + 9
    - 0
      index.pug

+ 15
- 0
assets/templates/base.pug

@ -0,0 +1,15 @@
doctype html
html(class="no-js", lang="en")
block set_site_root
- var site_root = './'
include ./head.pug
body
#content
block content
p This is default content.
include ./footer.pug

+ 3
- 0
assets/templates/footer.pug

@ -0,0 +1,3 @@
footer
p © Example Organization

+ 23
- 0
assets/templates/head.pug

@ -0,0 +1,23 @@
head
meta(charset="utf-8")
meta(http-equiv="x-ua-compatible", content="ie=edge")
block title
title example.com
meta(name="description" content="")
meta(name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover")
link(rel="icon", href=site_root + "favicon.ico")
link(rel="icon", type="image/png", sizes="32x32", href=site_root + "favicon-32x32.png")
link(rel="icon", type="image/png", sizes="16x16", href=site_root + "favicon-16x16.png")
link(rel="apple-touch-icon", sizes="180x180", href=site_root + "apple-touch-icon.png")
link(rel="manifest", href=site_root + "site.webmanifest")
link(rel="mask-icon", href=site_root + "safari-pinned-tab.svg", color="#5bbad5")
meta(name="msapplication-TileColor", content="#00aba9")
meta(name="theme-color", content="#ffffff")
link(rel="stylesheet", href=site_root + "style/normalize.css")
link(rel="stylesheet", href=site_root + "style/main.css")
script(src="https://code.iconify.design/1/1.0.6/iconify.min.js")

+ 9
- 0
index.pug

@ -0,0 +1,9 @@
//-============================================================================
//-
//- index.html
//-
//-============================================================================
extend ./assets/templates/base.pug
block content

Loading…
Cancel
Save