From 213775dddc11bf89506c563df2ead19098d80e08 Mon Sep 17 00:00:00 2001 From: danix Date: Mon, 23 Jan 2023 18:48:55 +0100 Subject: [PATCH] I'm starting to shape the theme files --- layouts/index-baseof.html | 22 ++++++++++++++++++++++ layouts/index.html | 7 +++++++ layouts/partials/footer.html | 8 ++++++++ layouts/partials/head.html | 24 ++++++++++++++++++++++++ layouts/partials/header.html | 11 +++++++++++ 5 files changed, 72 insertions(+) create mode 100644 layouts/index-baseof.html diff --git a/layouts/index-baseof.html b/layouts/index-baseof.html new file mode 100644 index 0000000..3f38b14 --- /dev/null +++ b/layouts/index-baseof.html @@ -0,0 +1,22 @@ + + + {{- partial "head.html" . -}} + +
+ + {{- partial "header.html" . -}} +
+
+
+ {{- block "home-main" . }}{{- end }} +
+
+ +
+ {{- partial "footer.html" . -}} +
+ + diff --git a/layouts/index.html b/layouts/index.html index e69de29..3ea6fd5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -0,0 +1,7 @@ +{{ define "home-main" }} +
+
+ {{ .Content }} +
+
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..6961a97 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,8 @@ + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..1444f5d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,24 @@ + + + + + + + {{ partial "funcs/favicon.html" . }} + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{ $title := print .Site.Title " ⋇ " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{ $title }} + + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/schema.html" . }} + {{ template "_internal/twitter_cards.html" . }} + + {{- partial "head-addition.html" . -}} + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..12ad245 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,11 @@ + -- 2.20.1