From 8a76dbed39040b6f6863ffea26e84f1fe1bc3f08 Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Thu, 7 Dec 2023 14:09:23 -0600 Subject: [PATCH] Added pug boilerplate setup. --- assets/templates/base.pug | 15 +++++++++++++++ assets/templates/footer.pug | 3 +++ assets/templates/head.pug | 23 +++++++++++++++++++++++ index.pug | 9 +++++++++ 4 files changed, 50 insertions(+) create mode 100644 assets/templates/base.pug create mode 100644 assets/templates/footer.pug create mode 100644 assets/templates/head.pug diff --git a/assets/templates/base.pug b/assets/templates/base.pug new file mode 100644 index 0000000..9ed6e79 --- /dev/null +++ b/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 + diff --git a/assets/templates/footer.pug b/assets/templates/footer.pug new file mode 100644 index 0000000..9a31b7f --- /dev/null +++ b/assets/templates/footer.pug @@ -0,0 +1,3 @@ +footer + p © Example Organization + diff --git a/assets/templates/head.pug b/assets/templates/head.pug new file mode 100644 index 0000000..1129196 --- /dev/null +++ b/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") diff --git a/index.pug b/index.pug index e69de29..cb5bc24 100644 --- a/index.pug +++ b/index.pug @@ -0,0 +1,9 @@ +//-============================================================================ +//- +//- index.html +//- +//-============================================================================ + +extend ./assets/templates/base.pug + +block content