From ab7e9c9ed237aa34e7b9468dfbd656021cdc04a6 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 9 Mar 2025 15:37:10 -0500 Subject: [PATCH] more layouts work --- layouts/_default/baseof.html | 46 ++++++++++++++++++++++++++++++++---- layouts/_default/list.html | 24 ++++++++++++++++--- layouts/_default/single.html | 2 +- layouts/index.html | 5 ---- 4 files changed, 64 insertions(+), 13 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 51c7504..600e113 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,10 +1,48 @@ +{{- define "baseof" -}} - + - {{ .Title }} + + {{ partial "favicon.html" . }} + {{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }} + {{ partial "seo_tags.html" . }} + + + {{ $style := print (default "original" .Site.Params.themeStyle) ".css" | resources.Get | minify }} + + + {{ if (.Page.Store.Get "hasCodeBlock") }} + {{ $syntax := resources.Get "syntax.css" | minify }} + + {{ end }} + + {{ with .Params.style }} + {{ $extra := resources.Get . | minify }} + + {{ end }} + - {{ block "main" . }}{{ end }} + + +
+ + + {{ partial "header.html" . }} + + +
+ {{ block "main" . }}{{ end }} +
+ + + {{ partial "footer.html" . }} +
+ + + {{ partial "scripts.html" . }} + - \ No newline at end of file + +{{- end -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index b8b075f..e7f6444 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,4 +1,22 @@ {{ define "main" }} -

{{ .Title }}

- {{ .Content }} -{{ end }} \ No newline at end of file +
+
+

{{ .Title }}

+ {{ with .Content }} +

{{ . }}

+ {{ end }} +
+ + +
+{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1a2c13d..16f6bd8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,7 @@

{{ .Title }}

diff --git a/layouts/index.html b/layouts/index.html index 449da5e..4c5d122 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,11 +5,6 @@ Read the Blog -
-

About Me

-

A short introduction about yourself or your website.

-
-

Latest Blog Posts