{{ define "main" }}

Back to index

{{ $.Scratch.Set "title" "" }} {{ if ne (.Param "bear") true }}

{{ .Title }}

{{$.Scratch.Set "title" .Title }} {{ else }} {{ $.Scratch.Set "title" .File.BaseFileName }} {{ end }} {{ $title := $.Scratch.Get "title" }} {{- if and (isset .Params "private") (eq .Params.private true) -}} {{ if .Site.IsServer }}

🔒

{{ partial "content.html" . }} {{ else }}

🔒 {{ i18n "private-note" }}

{{ end }} {{- else -}} {{ $private := .Content | findRE "private-note" }} {{ if le (len $private) 0 }} {{ partial "content.html" . }} {{ else }} {{ if.Site.IsServer }}

🔒

{{ partial "content.html" .}} {{ else }}

{{ $title }}

🔒 {{ i18n "private-note" }}

{{ end }} {{ end }} {{- end -}} {{/* partial "backlinks.html" . */}}

Back to index

{{ end }}