summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-22 14:11:34 +0800
committerReorx <novoreorx@gmail.com>2022-04-22 14:11:34 +0800
commit6aea4be5fad77917ce1203a371b58a6139c3530a (patch)
tree0c2e95f99d27f0097478c0f7344a3f293bedb76a /layouts/_default
parent4d93247e53eadc672416f33429c5af0ff334e5e8 (diff)
refactor post meta, use svg icons for identifier
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/single.html20
2 files changed, 8 insertions, 18 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 6a8b3c9..01f2a62 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -65,7 +65,11 @@
</header>
{{- if (ne (.Param "hideSummary") true) }}
<section class="entry-content">
- <p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
+ {{ if .Description }}
+ <p>{{ .Description | plainify | htmlUnescape }}</p>
+ {{ else }}
+ <p>{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}</p>
+ {{ end }}
</section>
{{- end }}
{{- if not (.Param "hideMeta") }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0a5f5bf..32bc143 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,24 +14,10 @@
{{- end }}
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
- {{- if not .Date.IsZero -}}
- <span>{{ .Date | time.Format (default "January 2, 2006" site.Params.DateFormat) }}</span>
- <span class="delimiter">&nbsp;·&nbsp;</span>
- {{- end }}
-
- {{- if .Params.tags }}
- <span class="post-tags">
- {{- range ($.GetTerms "tags") -}}
- <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
- {{- end -}}
- </span>
- <span class="delimiter">&nbsp;·&nbsp;</span>
- {{- end }}
-
{{- partial "post_meta.html" . -}}
- {{- partial "translation_list.html" . -}}
- {{- partial "edit_post.html" . -}}
- {{- partial "post_canonical.html" . -}}
+ {{/* TODO move to footer */}}
+ {{/* partial "edit_post.html" . */}}
+ {{/* partial "post_canonical.html" . */}}
</div>
{{- end }}
</header>