mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
single: Add post description (#165)
usage => in post params add : description: "Desc Text."
This commit is contained in:
parent
5d6de5ecb1
commit
946cc1ffe3
@ -8,6 +8,11 @@
|
|||||||
transform: translateX(-2px)
|
transform: translateX(-2px)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-description {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.post-meta {
|
.post-meta {
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
{{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }}
|
{{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }}
|
||||||
</h1>
|
</h1>
|
||||||
|
<div class="post-description">
|
||||||
|
{{ .Description }}
|
||||||
|
</div>
|
||||||
{{- if .Params.hideMeta }}{{ else }}
|
{{- if .Params.hideMeta }}{{ else }}
|
||||||
<div class="post-meta">
|
<div class="post-meta">
|
||||||
{{- partial "post_meta.html" . -}}
|
{{- partial "post_meta.html" . -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user