A more generic tag/value component
Write styles and templates for a more generic tag/value component. Use this component for the taxonomy lists, draft tag, and page dates in the summary template.
This commit is contained in:
parent
b51aca950c
commit
edd6eb996b
11 changed files with 123 additions and 58 deletions
|
@ -7,7 +7,10 @@
|
|||
<div class="page-summary__content">{{ . | markdownify }}</div>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
{{ with .Date }}
|
||||
<time class="page-summary__date" datetime="{{ . | time.Format "2006-01-02" }}">{{ . | time.Format ":date_medium" }}</time>
|
||||
{{ end }}
|
||||
{{- if ne hugo.Environment "production" -}}
|
||||
{{ partial "page/taxonomy_draft.html" (dict "page" . "class" "page-summary__draft") }}
|
||||
{{- end -}}
|
||||
{{- if .Date -}}
|
||||
{{- partial "page/date.html" (dict "page" . "class" "page-summary__date") -}}
|
||||
{{- end }}
|
||||
</article>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue