From: Danilo M. Date: Wed, 15 Apr 2026 13:48:55 +0000 (+0200) Subject: feat: create article list item with type badges and pinned indicator X-Git-Tag: release_22042026-1342~272 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=79976b97958719504d074ec47ae70ec53855a029;p=danix.xyz-2.git feat: create article list item with type badges and pinned indicator --- diff --git a/themes/danix-xyz-hacker/layouts/partials/article-list-item.html b/themes/danix-xyz-hacker/layouts/partials/article-list-item.html new file mode 100644 index 0000000..652e171 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/partials/article-list-item.html @@ -0,0 +1,40 @@ +{{ $articleType := .Params.type | default "life" }} +{{ $typeConfig := .Site.Params.articleTypes }} +{{ $typeData := index $typeConfig $articleType }} +{{ $isDark := strings.Contains (os.Getenv "THEME") "dark" }} +{{ $color := cond $isDark $typeData.color_dark $typeData.color_light }} + + + + {{ if .Params.pinned }} +
+ 📌 PINNED +
+ {{ end }} + + +

+ {{ .Title }} +

+ + +
+ + + + + {{ if $typeData }} + + {{ i18n $articleType }} + + {{ end }} +
+