From 175e0c76cf6fbfc62bf5540294cef446647237e9 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 4 Feb 2019 14:01:33 +0000 Subject: [PATCH] Add basic template with static files --- layouts/index.html | 11 +++++++++++ layouts/partials/script.html | 2 ++ layouts/partials/style.html | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 layouts/partials/script.html create mode 100644 layouts/partials/style.html diff --git a/layouts/index.html b/layouts/index.html index e69de29..719d2d5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -0,0 +1,11 @@ + + + + {{ .Title }} + {{ partial "style.html" "css/font-awesome.css" }} + {{ partial "style.html" "scss/index.scss" }} + + + {{ partial "script.html" "js/bootstrap.js" }} + + diff --git a/layouts/partials/script.html b/layouts/partials/script.html new file mode 100644 index 0000000..2a6a9a0 --- /dev/null +++ b/layouts/partials/script.html @@ -0,0 +1,2 @@ +{{ $script := resources.Get . | minify | fingerprint }} + diff --git a/layouts/partials/style.html b/layouts/partials/style.html new file mode 100644 index 0000000..7012e30 --- /dev/null +++ b/layouts/partials/style.html @@ -0,0 +1,2 @@ +{{ $style := resources.Get . | toCSS | minify | fingerprint }} +