mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{{- define "title" -}}
|
|
{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}
|
|
{{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}}
|
|
{{- end -}}
|
|
|
|
{{- define "content" -}}
|
|
{{- $params := partial "function/params.html" -}}
|
|
<article class="page single special">
|
|
<div class="header">
|
|
{{- /* Title */ -}}
|
|
<h1 class="single-title animate__animated animate__pulse animate__faster">{{- cond (.Param "capitalizeTitles") (title .Title) .Title -}}</h1>
|
|
|
|
{{- /* Subtitle */ -}}
|
|
{{- with $params.subtitle -}}<p class="single-subtitle animate__animated animate__fadeIn">{{ . }}</p>{{- end -}}
|
|
</div>
|
|
|
|
{{- /* Content */ -}}
|
|
{{- $content := dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
|
|
<div class="content" id="content">
|
|
{{- if not $params.password -}}
|
|
{{- $content -}}
|
|
{{- end -}}
|
|
</div>
|
|
|
|
{{- /* Content Encryption */ -}}
|
|
{{- dict "Content" $content "Password" $params.password "Message" $params.message | partial "plugin/fixit-encryptor.html" -}}
|
|
|
|
{{- /* Comment */ -}}
|
|
{{- partial "single/comment.html" . -}}
|
|
</article>
|
|
{{- end -}}
|