From a14e39f1e7ca28fd27380efef855617c070ce256 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 21 Apr 2026 12:09:53 +0200 Subject: fix: use dedicated article-card partial for taxonomy pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timeline partial (article-list-item.html) always emits
  • with timeline connector and node markup — calling it with . still produces the same timeline HTML. Created article-card.html with the original
    markup and wired taxonomy templates to use it. Co-Authored-By: Claude Haiku 4.5 --- .../layouts/partials/article-card.html | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/partials/article-card.html (limited to 'themes/danix-xyz-hacker/layouts/partials/article-card.html') diff --git a/themes/danix-xyz-hacker/layouts/partials/article-card.html b/themes/danix-xyz-hacker/layouts/partials/article-card.html new file mode 100644 index 0000000..0f5cfb9 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/partials/article-card.html @@ -0,0 +1,92 @@ +{{ $articleType := .Params.type | default "life" }} +{{ $typeConfig := .Site.Params.articleTypes }} +{{ $typeData := index $typeConfig $articleType }} +{{ $excerpt := .Description | default .Summary }} + +{{ $imageURL := "" }} +{{ $useDefaultThumbnail := false }} +{{ if .Params.image }} + {{ $resource := .Resources.GetMatch .Params.image }} + {{ if $resource }} + {{ $imageURL = $resource.RelPermalink }} + {{ else }} + {{ $imageURL = .Params.image }} + {{ end }} +{{ else }} + {{ $useDefaultThumbnail = true }} +{{ end }} + + -- cgit v1.2.3