chore: allowlist trusted plugins
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user