2022-03-27 09:57:28 -05:00
|
|
|
{{- partial "inject/content-before.html" . -}}
|
|
|
|
<article class="card single">
|
|
|
|
{{ if .Params.showTitle | default true }}
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
{{ end }}
|
|
|
|
{{ if (.Params.showDate | default true) }}
|
|
|
|
<p class="date">
|
|
|
|
<span title='{{ i18n "date" }}'> </span>
|
|
|
|
{{- partial "date.html" .Date -}}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
2022-04-02 09:40:40 -05:00
|
|
|
{{ if and (.Params.toc | default false) (.Site.Params.tocBeforeImage | default false) }}
|
|
|
|
{{- partial "toc.html" . -}}
|
|
|
|
{{ end }}
|
2022-03-27 09:57:28 -05:00
|
|
|
{{ if .Params.Image }}
|
2022-04-02 09:40:40 -05:00
|
|
|
<figure style="margin: 0">
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
2022-10-24 01:04:55 -05:00
|
|
|
<img src="{{ .Params.Image }}" alt="{{ .Params.Alt }}" />
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ else }}
|
2022-10-24 01:04:55 -05:00
|
|
|
<img src="/{{ path.Join .File.Dir .Params.Image }}" alt="{{ .Params.Alt }}" />
|
2022-10-24 01:02:44 -05:00
|
|
|
{{ end }}
|
2022-04-02 09:40:40 -05:00
|
|
|
{{ if .Params.ImageCaption }}
|
|
|
|
<figcaption>
|
|
|
|
<p>{{ .Params.ImageCaption | markdownify }}</p>
|
|
|
|
</figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|
2022-03-27 09:57:28 -05:00
|
|
|
{{ end }}
|
2022-04-02 09:40:40 -05:00
|
|
|
{{ if and (.Params.toc | default false) (not (.Site.Params.tocBeforeImage | default false)) }}
|
|
|
|
{{- partial "toc.html" . -}}
|
2022-03-27 09:57:28 -05:00
|
|
|
{{ end }}
|
|
|
|
<div>{{ .Content }}</div>
|
|
|
|
</article>
|
|
|
|
{{ if .Params.tags }}
|
|
|
|
{{ if not .Site.Params.paperCards }}<hr />{{ end }}
|
|
|
|
<p class="articleTagsContainer">
|
|
|
|
<span> </span>
|
|
|
|
<strong>{{ i18n "tagsColumn" }}</strong>
|
|
|
|
{{ range sort .Params.tags }}
|
|
|
|
<a
|
|
|
|
{{ if site.Params.buttonTags | default false }}
|
|
|
|
class="buttonTag"
|
|
|
|
{{ end }}
|
|
|
|
href="/tags/{{ . | urlize }}">#{{ . }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
{{- partial "inject/content-after.html" . -}}
|
|
|
|
{{ if .Params.showShare | default true }}
|
|
|
|
{{- partial "share_on_fediverse.html" . -}}
|
|
|
|
{{ end }}
|
|
|
|
{{- partial "commento.html" . -}}
|
|
|
|
{{- partial "cactus_chat.html" . -}}
|
|
|
|
{{- partial "related_articles.html" . -}}
|