LoveIt/layouts/_default/single.html

25 lines
823 B
HTML
Raw Normal View History

{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
2019-08-04 21:53:35 +08:00
2020-01-31 18:46:28 +08:00
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}
2020-02-14 01:30:33 +08:00
<div class="page single special">
{{- /* Title */ -}}
<h1 class="single-title animate__animated animate__pulse animate__faster">
2020-01-31 18:46:28 +08:00
{{- .Title -}}
</h1>
{{- /* Subtitle */ -}}
{{- with $params.subtitle -}}
<h2 class="single-subtitle">{{ . }}</h2>
{{- end -}}
{{- /* Content */ -}}
2020-02-24 17:00:39 +08:00
<div class="content" id="content">
2020-05-18 21:30:33 +08:00
{{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
2019-08-04 21:53:35 +08:00
</div>
{{- /* Comment */ -}}
{{- partial "comment.html" . -}}
2019-02-03 12:30:44 +01:00
</div>
2020-02-07 00:10:00 +08:00
{{- end -}}