estradiol.cloud/layouts/_default/single.html

26 lines
736 B
HTML
Raw Normal View History

2024-03-13 04:59:59 +00:00
{{- define "main" -}}
2024-03-01 07:48:47 +00:00
<header class="content__header">
<h1>{{ .Title | markdownify }}</h1>
</header>
<div class="content__body">
{{ .Content }}
</div>
<footer class="content__footer"></footer>
2024-03-13 04:59:59 +00:00
{{- end -}}
2024-03-01 07:48:47 +00:00
2024-03-13 04:59:59 +00:00
{{- define "aside" -}}
{{- if .Params.description -}}<p>{{ .Params.description }}</p>{{- end -}}
{{- if or (.Params.author) (.Params.date) -}}
2024-03-01 07:48:47 +00:00
<p>
2024-03-13 04:59:59 +00:00
{{- if .Params.author -}}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{- end -}}
2024-03-01 07:48:47 +00:00
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
</p>
2024-03-13 04:59:59 +00:00
{{- end -}}
2024-03-01 07:48:47 +00:00
2024-03-13 04:59:59 +00:00
{{- if and (.Params.toc) (.TableOfContents) -}}
2024-03-01 07:48:47 +00:00
<hr>
{{ .Title }}:
{{ .TableOfContents }}
2024-03-13 04:59:59 +00:00
{{- end -}}
{{- end -}}