From 20f22b7926a42469a89f22d344d39a86dd97bbfd Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 24 Aug 2025 03:52:23 -0500 Subject: [PATCH] Improve semantic HTML tag usage on content pages --- .../_partials/page-metadata/post-full.html | 4 +- .../_partials/page-metadata/post-short.html | 4 +- layouts/_partials/share.html | 4 +- layouts/page.html | 130 +++++++++--------- 4 files changed, 72 insertions(+), 70 deletions(-) diff --git a/layouts/_partials/page-metadata/post-full.html b/layouts/_partials/page-metadata/post-full.html index d184c55..5dea827 100644 --- a/layouts/_partials/page-metadata/post-full.html +++ b/layouts/_partials/page-metadata/post-full.html @@ -1,5 +1,5 @@ {{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }} -
+
+ {{ end }} diff --git a/layouts/_partials/page-metadata/post-short.html b/layouts/_partials/page-metadata/post-short.html index 9b799af..ab202f7 100644 --- a/layouts/_partials/page-metadata/post-short.html +++ b/layouts/_partials/page-metadata/post-short.html @@ -1,5 +1,5 @@ {{ if or .Date .Params.authors .Site.Params.readingtime }} -
+
+ {{ end }} diff --git a/layouts/_partials/share.html b/layouts/_partials/share.html index 05fded3..f52db42 100644 --- a/layouts/_partials/share.html +++ b/layouts/_partials/share.html @@ -1,4 +1,4 @@ -
+
+ diff --git a/layouts/page.html b/layouts/page.html index 5800455..1382b45 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,74 +1,76 @@ {{ define "main" }} -
-

- {{ .Title | markdownify }} - {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} -

-
+
+ {{ end }} + + {{ if .Site.Params.shareButtons }} + {{ partial "share.html" . }} + {{ end }} + + {{ if .Params.comments }} +
+ {{ partial "comments.html" . }} +
+ {{ end }}
- - {{ partial "series-box.html" . }} - - {{ if or .NextInSection .PrevInSection }} -
- {{ with .NextInSection }} - - {{ else }} - - {{ end }} - - {{ with .PrevInSection }} - - {{ else }} - - {{ end }} -
- {{ end }} - - {{ if .Site.Params.shareButtons }} - {{ partial "share.html" . }} - {{ end }} - - {{ if .Params.comments }} -
- {{ partial "comments.html" . }} -
- {{ end }} {{ end }}