From 5b476f8905f411768e23cb01d577a60e5a5fd725 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:43:22 +0200 Subject: chore: extract theme into git submodule (danix2-hugo-theme) --- .../layouts/partials/article-card.html | 92 ---------------------- 1 file changed, 92 deletions(-) delete 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 deleted file mode 100644 index d803464..0000000 --- a/themes/danix-xyz-hacker/layouts/partials/article-card.html +++ /dev/null @@ -1,92 +0,0 @@ -{{ $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 }} - -
- - {{ if or $imageURL $useDefaultThumbnail }} - - {{ if $useDefaultThumbnail }} - - - {{ .Title }} - - {{ else }} - {{ .Title }} - {{ end }} - - {{ if $typeData }} -
- {{ i18n $articleType }} -
- {{ end }} -
- {{ end }} - - -
- - {{ if .Params.pinned }} -
- 📌 PINNED -
- {{ end }} - - -

- - {{ .Title }} - -

- - -
- -
- - - {{ if $excerpt }} -

- {{ $excerpt | plainify }} -

- {{ end }} - - - - {{ i18n "readMore" }} - - -
-
-- cgit v1.2.3