mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
e736b89253
💄 Style: update post footer, post reward and comments styles
21 lines
623 B
HTML
21 lines
623 B
HTML
{{- /* FixIt theme patches */ -}}
|
|
{{- $params := .Scratch.Get "params" -}}
|
|
|
|
{{- /* Toc data patch */ -}}
|
|
{{- $toc := $params.toc -}}
|
|
{{- if eq $toc true -}}
|
|
{{- $toc = dict "enable" true | merge .Site.Params.page.toc -}}
|
|
{{- else if eq $toc false -}}
|
|
{{- $toc = dict "enable" false -}}
|
|
{{- end -}}
|
|
{{- .Scratch.Set "toc" $toc -}}
|
|
|
|
{{- /* Reward data patch */ -}}
|
|
{{- $reward := $params.reward -}}
|
|
{{- if eq $reward true -}}
|
|
{{- $reward = dict "enable" true | merge .Site.Params.page.reward -}}
|
|
{{- else if eq $reward false -}}
|
|
{{- $reward = dict "enable" false -}}
|
|
{{- end -}}
|
|
{{- .Scratch.Set "reward" $reward -}}
|