summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/post-card.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
committerDanilo M. <danix@danix.xyz>2026-04-22 12:42:56 +0200
commit631547a75142326a7c71bdf123e1475217a5ad73 (patch)
treef3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /layouts/_partials/post-card.html
parent77ccbe72fad5a4870185fff374f75471c16a9043 (diff)
downloaddanixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz
danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'layouts/_partials/post-card.html')
-rw-r--r--layouts/_partials/post-card.html30
1 files changed, 0 insertions, 30 deletions
diff --git a/layouts/_partials/post-card.html b/layouts/_partials/post-card.html
deleted file mode 100644
index f3a1362..0000000
--- a/layouts/_partials/post-card.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{{ if eq .context "home" }}
- <article class="article-card reveal" data-type="{{ .type }}">
- <div class="article-type" style="background: var(--type-{{ .type }});">{{ .type }}</div>
- <div class="article-content">
- <h3 class="article-title"><a href="{{ .url }}">{{ .title }}</a></h3>
- <p class="article-excerpt">{{ .description }}</p>
- <div class="article-meta">
- <span>{{ dateFormat "Jan 2, 2006" .date }}</span>
- <a href="{{ .url }}" class="article-read">Read →</a>
- </div>
- </div>
- </article>
-{{ else }}
- {{ $featured := .featured }}
- <article class="post-card {{ if $featured }}featured{{ end }}">
- {{ if .image }}
- <img src="{{ .image }}" alt="{{ .title }}" class="post-card-image">
- {{ else }}
- <div class="post-card-image" style="background: linear-gradient(135deg, var(--color-{{ .type }}), var(--bg2));"></div>
- {{ end }}
- <div class="post-card-body">
- <div class="post-type-badge {{ .type }}">{{ .type }}</div>
- <h3 class="post-card-title"><a href="{{ .url }}">{{ .title }}</a></h3>
- <p class="post-card-excerpt">{{ .description }}</p>
- <div class="post-card-meta">
- <span>{{ dateFormat "Jan 2, 2006" .date }}</span>
- </div>
- </div>
- </article>
-{{ end }}