From 60f64252ad776b657ee79dd88ffa1c3408173231 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Sat, 25 Oct 2025 18:56:16 +0530 Subject: [PATCH] feat: semantic hgroup tags --- themes/paprika/assets/app.css | 25 +++---------------- themes/paprika/layouts/_default/artpiece.html | 4 +-- themes/paprika/layouts/_default/baseof.html | 2 +- themes/paprika/layouts/_default/single.html | 7 ++---- 4 files changed, 9 insertions(+), 29 deletions(-) diff --git a/themes/paprika/assets/app.css b/themes/paprika/assets/app.css index e1aa2160..d4927efb 100644 --- a/themes/paprika/assets/app.css +++ b/themes/paprika/assets/app.css @@ -272,11 +272,11 @@ header { position: relative; padding: var(--small-gap); gap: 1rem; + justify-content: space-between; nav { display: flex; gap: 1rem; - margin-left: auto; a { width: 4rem; @@ -320,22 +320,6 @@ header { } } -@media (max-width: 360px) { - header { - justify-content: space-evenly; - flex-wrap: wrap; - - .push { - display: none; - } - - h1 { - text-align: center; - flex: 100%; - } - } -} - .main { max-width: var(--narrow); flex: 1; @@ -390,15 +374,15 @@ header { } /* a single post */ -.post-title { +hgroup { margin-bottom: var(--y-gap); p { display: flex; - margin-bottom: 1.5rem; + margin-top: 0.4rem; + margin-bottom: 1.1rem; font-size: 1.6rem; color: var(--air); - transform: translateY(0.4rem); } p span::before { @@ -408,7 +392,6 @@ header { h1 { font-size: 5rem; - transform: translateX(-0.3rem); } } diff --git a/themes/paprika/layouts/_default/artpiece.html b/themes/paprika/layouts/_default/artpiece.html index e157089a..2c6cf3df 100644 --- a/themes/paprika/layouts/_default/artpiece.html +++ b/themes/paprika/layouts/_default/artpiece.html @@ -1,12 +1,12 @@ {{ define "main" }}
-
+

{{ .Date | time.Format ":date_medium" }}

{{ .Title }}

-
+
{{ .Content }} {{ if .Params.timelapse }} diff --git a/themes/paprika/layouts/_default/baseof.html b/themes/paprika/layouts/_default/baseof.html index 7b4a7b6e..44f81272 100644 --- a/themes/paprika/layouts/_default/baseof.html +++ b/themes/paprika/layouts/_default/baseof.html @@ -2,7 +2,7 @@ {{ partial "head.html" . }} - + {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
diff --git a/themes/paprika/layouts/_default/single.html b/themes/paprika/layouts/_default/single.html index ce80154e..beea7347 100644 --- a/themes/paprika/layouts/_default/single.html +++ b/themes/paprika/layouts/_default/single.html @@ -1,20 +1,17 @@ {{ define "main" }}
-
+

{{ partial "description" . }}

{{ .Title }}

-
+
{{ .Content }}
- - {{ if .Params.tags }}
{{ partial "tags" . }}
- {{ end }} {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}