summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-05-16 15:37:13 +0800
committerEltrac <hi@guhub.cn>2025-05-16 15:37:13 +0800
commitca792ae70b21f549838792cf405907e4fc4ca618 (patch)
treede0d844ff1384c572eb935b4fcb738ffb588753c /layouts
parenta411d5b8c65d768911767f5a939d394682ce2402 (diff)
feat: more info on featured post section
1. add description about this page 2. show tags after date 3. show year Former-commit-id: 8397092c661183318ab8b0864a57df8cf49b0914
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/featured.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/layouts/_default/featured.html b/layouts/_default/featured.html
index f1484bcb..5b093bae 100644
--- a/layouts/_default/featured.html
+++ b/layouts/_default/featured.html
@@ -3,6 +3,10 @@
{{ partial "header.html" . }}
{{ partial "components/postnav.html" . }}
+ <div class="post-content markdown-content">
+ {{ .Content }}
+ </div>
+
<!-- Latest Posts -->
<section id="featured-posts">
<div class="posts-list">
@@ -11,9 +15,15 @@
style="view-transition-name: post-{{ .File.UniqueID }}">
<header>
<div class="posts-item-meta">
- <time>
- {{ .Date.Format "Jan 2" }}
- </time>
+ <p>
+ <time>
+ {{ .Date.Format "Jan 2, 2006" }}
+ </time>
+ <span>ยท</span>
+ {{ range .Params.tags }}
+ <a class="post-tag" href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">#{{ . }}</a>
+ {{ end }}
+ </p>
<h2 class="posts-item-title">
<a
href="{{ .Permalink }}"