new tag style

This commit is contained in:
FarseaSH 2023-12-23 19:58:32 +08:00
parent d587ced39c
commit ab4dc72cbd
2 changed files with 75 additions and 22 deletions

View file

@ -34,28 +34,45 @@
{{ end }}
</div>
<div class="intro">
<div class="name">
{{ with $page.Params.name }}
<div class="name">{{ . }}</div>
{{ . }}
{{ else }}
<div class="name">{{ $site.Params.name }}</div>
{{ $site.Params.name }}
{{ end }}
</div>
<div class="moment-signature">
{{ with $page.Params.signature }}
{{ . }}
{{ else }}
发布了
{{ end }}
<div>
{{ $tags_filtered := slice}}
{{ with $page.Params.tags }}
{{ range . }}
{{ with .}}
{{ $tags_filtered = $tags_filtered | append . }}
{{ end }}
{{ end }}
{{ end }}
{{ with $tags_filtered }}
{{ range . }}<span class="tag text-muted">{{ . }}</span>{{ end }}
{{ end }}
</div>
</div>
</div>
<div style="padding-left: 5px; padding-right: 5px;">
{{/* tag */}}
{{ $tags_filtered := slice}}
{{ with $page.Params.tags }}
{{ range . }}
{{ with .}}
{{ $tags_filtered = $tags_filtered | append . }}
{{ end }}
{{ end }}
{{ end }}
{{ with $tags_filtered }}
<div class="tag-div">
{{ range . }}
<div class="new-tag">
{{ . }}
</div>
{{ end }}
</div>
{{ end }}
{{/* Main text content */}}
{{ if .Site.Params.features.heti }}<div class="context heti">{{ else }}<div class="context">{{ end }}
{{ $page.Content }}