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-list-item.html | 95 ---------------------- 1 file changed, 95 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/partials/article-list-item.html (limited to 'themes/danix-xyz-hacker/layouts/partials/article-list-item.html') diff --git a/themes/danix-xyz-hacker/layouts/partials/article-list-item.html b/themes/danix-xyz-hacker/layouts/partials/article-list-item.html deleted file mode 100644 index 44cbf32..0000000 --- a/themes/danix-xyz-hacker/layouts/partials/article-list-item.html +++ /dev/null @@ -1,95 +0,0 @@ -{{/* Handle both calling conventions: dict with .Page/.side or direct page */}} -{{ $page := . }} -{{ $side := "left" }} - -{{ if reflect.IsMap . }} - {{ $page = .Page }} - {{ $side = .side | default "left" }} -{{ end }} - -{{ $articleType := $page.Params.type | default "life" }} -{{ $typeConfig := $page.Site.Params.articleTypes }} -{{ $typeData := index $typeConfig $articleType }} -{{ $excerpt := $page.Description | default $page.Summary }} - -{{ $imageURL := "" }} -{{ $useDefaultThumbnail := false }} -{{ if $page.Params.image }} - {{ $resource := $page.Resources.GetMatch $page.Params.image }} - {{ if $resource }} - {{ $imageURL = $resource.RelPermalink }} - {{ else }} - {{ $imageURL = $page.Params.image }} - {{ end }} -{{ else }} - {{ $useDefaultThumbnail = true }} -{{ end }} - -
  • - {{/* Decorative connector line */}} - - - {{/* Node on spine */}} - - -
    - - {{/* Thumbnail */}} - - - {{/* Text body */}} -
    - - {{/* Pinned badge */}} - {{ if $page.Params.pinned }} -
    - ๐Ÿ“Œ {{ i18n "pinned" | default "PINNED" }} -
    - {{ end }} - - {{/* Type + date meta row */}} -
    - {{ i18n $articleType | upper }} - - -
    - - {{/* Title */}} -

    - {{ $page.Title }} -

    - - {{/* Excerpt */}} - {{ if $excerpt }} -

    {{ $excerpt | plainify }}

    - {{ end }} - - {{/* CTA */}} - - {{ i18n "readMore" }} - - - -
    -
    -
  • -- cgit v1.2.3