From 8e16e9f4665f2537225f1d21668c6a8002745770 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 21 Apr 2026 18:28:55 +0200 Subject: fix: hide post-type badge and accents on static pages Only show type badge, vertical accent line, and horizontal accent line on articles with explicit type front matter. Static pages (is/ section) no longer display the "Life" default badge. Updated badge styling to use inline background-color with full type color variable, matching card overlay appearance. Co-Authored-By: Claude Haiku 4.5 --- themes/danix-xyz-hacker/layouts/partials/article-header.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'themes') diff --git a/themes/danix-xyz-hacker/layouts/partials/article-header.html b/themes/danix-xyz-hacker/layouts/partials/article-header.html index 16ebb8c..63b2a97 100644 --- a/themes/danix-xyz-hacker/layouts/partials/article-header.html +++ b/themes/danix-xyz-hacker/layouts/partials/article-header.html @@ -1,12 +1,13 @@ {{ $articleType := .Params.type | default "life" }} {{ $typeConfig := .Site.Params.articleTypes }} {{ $typeData := index $typeConfig $articleType }} +{{ $hasType := .Params.type }}
- {{ if $typeData }} + {{ if and $typeData $hasType }}
- {{ if $typeData }} + {{ if and $typeData $hasType }}
- {{ if $typeData }} - + {{ if and $typeData $hasType }} + {{ i18n $articleType }} {{ end }} -- cgit v1.2.3