mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-03 12:12:39 +00:00
20 lines
862 B
Markdown
20 lines
862 B
Markdown
{{- $params := .Scratch.Get "params" -}}
|
|
{{- $author := .Site.Author | merge (dict "name" "Anonymous" "link" (echoParam $params "authorlink")) -}}
|
|
{{- if isset $params "author" | and (ne $params.author .Site.Author.name) -}}
|
|
{{- $author = dict "name" $params.author | merge $author -}}
|
|
{{- $author = dict "link" (echoParam $params "authorlink") | merge $author -}}
|
|
{{- end -}}
|
|
# {{ .Title }}
|
|
|
|
{{ if $params.password -}}
|
|
***{{ T "encryptedAbstract" }}***
|
|
{{- else -}}
|
|
{{ .RawContent | replaceRE "\n?{{% fixit-encryptor .+ %}}((\n|.)*){{% /fixit-encryptor %}}\n?" "" }}
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
> {{ T "author"}}: {{ with $author.link }}[{{ $author.name }}]({{ . }}){{ else }}{{ $author.name }}{{ end }}
|
|
> URL: {{ .Permalink }}
|
|
{{ if $params.repost.enable | and (hasPrefix $params.repost.url "http") }}> {{ T "repost" }} URL: {{ $params.repost.url }}{{ end }}
|