From abd10431ecdb2db955caf5aec36217c1fe6ba9ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 23 Aug 2020 19:07:48 +0200 Subject: Add a regular page --- config.toml | 2 +- content/page1.md | 3 +++ layouts/_default/baseof.html | 18 ++++++++++++++++++ layouts/_default/list.html | 3 +++ layouts/_default/single.html | 3 +++ layouts/index.html | 21 +++------------------ 6 files changed, 31 insertions(+), 19 deletions(-) create mode 100644 content/page1.md create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html diff --git a/config.toml b/config.toml index 36f08b9..6698d69 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,3 @@ baseURL = "https://hugo-netlify-test-site.netlify.app" -disableKinds = ["page", "section", "taxonomy", "term"] \ No newline at end of file +disableKinds = ["section", "taxonomy", "term"] \ No newline at end of file diff --git a/content/page1.md b/content/page1.md new file mode 100644 index 0000000..9a52220 --- /dev/null +++ b/content/page1.md @@ -0,0 +1,3 @@ +--- +title: Page 1 +--- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..68839f7 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,18 @@ +{{ $f1 := resources.Get "js/f1.js" | js.Build | fingerprint }} +{{ $f2 := resources.Get "js/f2.js" | js.Build | fingerprint }} +{{ $f3 := resources.Get "js/f3.js" | js.Build | fingerprint }} +{{ $f4 := resources.Get "js/f4.js" | js.Build | fingerprint }} + + + + + + + + + + + {{ block "main" . }}{{ end }} + + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..bab8bc3 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,3 @@ +{{ define "main" }} +List +{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..7acc722 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +Single +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 2a8039e..fa4053e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,18 +1,3 @@ -{{ $f1 := resources.Get "js/f1.js" | js.Build | fingerprint }} -{{ $f2 := resources.Get "js/f2.js" | js.Build | fingerprint }} -{{ $f3 := resources.Get "js/f3.js" | js.Build | fingerprint }} -{{ $f4 := resources.Get "js/f4.js" | js.Build | fingerprint }} - - - - - - - - - - - - - - \ No newline at end of file +{{ define "main" }} +Home +{{ end }} \ No newline at end of file -- cgit v1.2.3