From c9c48d1650897a1bdea556538cdd3bc044e01f37 Mon Sep 17 00:00:00 2001
From: Thomas T
Date: Fri, 29 Dec 2023 02:23:15 -0500
Subject: [PATCH 1/8] update `baseof`
---
layouts/_default/baseof.html | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 475d6f9..69715a8 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,10 +6,18 @@
{{- partial "favicon.html" . -}}
+ {{ if .IsHome }}
+ {{ .Site.Title }}
+ {{ else }}
{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}
+ {{ end }}
{{- partial "seo_tags.html" . -}}
+
{{ $style := resources.Get "style.css" | minify }}
@@ -40,6 +48,7 @@
{{- block "main" . }}{{- end }}
+ {{- partial "custom_main.html" . -}}
-{{ with .Site.Social.email }}
+{{ with .Site.Params.social.email }}
{{ i18n "email-reply" }} ↪
{{ end }}
+
+
+ Subscribe to weekly tech news →
+
+
{{ end }}
From 4263d6e2797044afae0b1d5489e3410928d84036 Mon Sep 17 00:00:00 2001
From: Thomas T
Date: Fri, 29 Dec 2023 02:26:32 -0500
Subject: [PATCH 5/8] add support for `custom_main`
---
layouts/partials/custom_main.html | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 layouts/partials/custom_main.html
diff --git a/layouts/partials/custom_main.html b/layouts/partials/custom_main.html
new file mode 100644
index 0000000..fd7a145
--- /dev/null
+++ b/layouts/partials/custom_main.html
@@ -0,0 +1,25 @@
+{{ if .IsHome }}
+ {{ $pages := first .Site.Params.latestPostsCount (where .Site.RegularPages "Section" "blog") }}
+
+ {{ range $pages }}
+ -
+
+
+
+
+
+ {{ if .Params.link }}
+ {{ .Title }} ↪
+ {{ else }}
+ {{ .Title }}
+ {{ end }}
+
+ {{ else }}
+ -
+ {{ i18n "no-posts" }}
+
+ {{ end }}
+
+{{ end }}
From c0659e096b60b21ebea0fb947b1c8d33d49f4d14 Mon Sep 17 00:00:00 2001
From: Thomas T
Date: Fri, 29 Dec 2023 02:26:58 -0500
Subject: [PATCH 6/8] remove `madeWith` footer
---
layouts/partials/footer.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 9290715..22f5de4 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,3 +1,3 @@
- {{ .Site.Copyright }} | {{ markdownify .Site.Params.madeWith }}
-
\ No newline at end of file
+ {{ .Site.Copyright }}
+
From d885a491470c6c546b16c36d56e5c8d4b4ab2255 Mon Sep 17 00:00:00 2001
From: Thomas T
Date: Fri, 29 Dec 2023 02:27:26 -0500
Subject: [PATCH 7/8] update `nav`
---
layouts/partials/nav.html | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 5f40267..8c65624 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,7 +1,6 @@
{{ range .Site.Menus.main.ByWeight }}
- {{ .Name }}
+ {{ lower .Name }}
{{ end }}
-RSS
{{ $translations := dict }}
From c2721e223de35bd932569523534f09d844fee64a Mon Sep 17 00:00:00 2001
From: Thomas T
Date: Fri, 29 Dec 2023 02:28:00 -0500
Subject: [PATCH 8/8] update `social_card`
---
layouts/partials/social_card.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/social_card.html b/layouts/partials/social_card.html
index 68bb4ca..510318c 100644
--- a/layouts/partials/social_card.html
+++ b/layouts/partials/social_card.html
@@ -73,7 +73,7 @@
-{{ with .Site.Social.twitter -}}
+{{ with .Site.Params.social.twitter -}}
{{ end -}}