From: danix Date: Mon, 23 Jan 2023 17:48:55 +0000 (+0100) Subject: I'm starting to shape the theme files X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=213775dddc11bf89506c563df2ead19098d80e08;p=theme-danix.xyz.git I'm starting to shape the theme files --- 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 @@ +