chore: allowlist trusted plugins

This commit is contained in:
Chen Gu
2026-08-13 17:00:21 +08:00
committed by Chen Gu
parent 8027f1186d
commit 319e8a7ec9
66 changed files with 6229 additions and 124 deletions
+29 -5
View File
@@ -1,9 +1,33 @@
{{ define "main" }}
<p>{{ .Site.Params.description }}</p>
<h2>最新旅程</h2>
<ul>
{{ range first 10 (where .Site.RegularPages "Section" "journey") }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <small>{{ .Date.Format "2006-01-02" }}</small></li>
{{ with .Site.Params.description }}
<p class="hero-desc">{{ . }}</p>
{{ end }}
<h2 class="section-title">最新旅程</h2>
{{ $journeys := where .Site.RegularPages "Section" "journey" }}
{{ if $journeys }}
<ul class="journey-list">
{{ range first 10 $journeys }}
<li>
<a href="{{ .RelPermalink }}" class="journey-card">
<h3 class="journey-card-title">{{ .Title }}</h3>
<div class="journey-card-meta">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "2006-01-02" }}</time>
{{ with .Params.tags }}
<span>·</span>
<span>{{ delimit . " · " }}</span>
{{ end }}
</div>
</a>
</li>
{{ end }}
</ul>
{{ else }}
<div class="empty-state">
<div class="empty-state-icon">🌙</div>
<p>还没有记录任何旅程</p>
<p style="font-size: 0.875rem; margin-top: var(--space-sm);">等待第一颗星星升起...</p>
</div>
{{ end }}
{{ end }}