From e45b6b67c3347da3a95fa18af2cd0cbe1a36c226 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 6 Oct 2020 01:20:54 +0200 Subject: [PATCH] Add boilerplate layout --- .gitignore | 1 + assets/style.css | 0 layouts/_default/baseof.html | 17 +++++++++++++++++ layouts/index.html | 2 ++ 4 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 assets/style.css create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5c8f36a --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,17 @@ + + + + + + {{ block "title" . }} + {{ .Site.Title }} + {{ end }} + + {{ $style := resources.Get "style.css" | minify }} + + + + {{ block "main" . }} + {{ end }} + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..e4e4a83 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,2 @@ +{{ define "main" }} +{{ end }}