Website-Redesign/layouts/_default/single.html

39 lines
1.2 KiB
HTML
Raw Normal View History

2020-08-24 01:48:03 -05:00
{{ define "main" }}
2021-01-02 07:08:21 -06:00
{{- partial "inject/content-before.html" . -}}
2021-01-05 02:38:10 -06:00
<article class="card {{ if .Site.Params.discreteCards }}discrete{{ end }}">
2020-08-24 01:48:03 -05:00
<h1>{{ .Title }}</h1>
<p class="date">
<span title="Date"></span>
{{ .Date.Format "2006-01-02" }}
</p>
2021-03-10 02:07:13 -06:00
{{ if .Params.Image }}
<img src="{{ .Params.Image }}" alt="" />
{{ end }}
2020-08-24 01:48:03 -05:00
<div>{{ .Content }}</div>
</article>
{{ if .Params.tags }}
{{ if not .Site.Params.discreteCards }}<hr />{{ end }}
<p class="articleTagsContainer">
<span></span>
<strong>Tags:</strong>
{{ range .Params.tags }}
<a
{{ if site.Params.discreteTags | default false }}
class="discreteTag"
{{ end }}
href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
</p>
{{ end }}
2021-01-02 07:08:21 -06:00
{{- partial "inject/content-after.html" . -}}
2020-08-24 03:41:03 -05:00
{{ if .Site.Params.commento }}
2020-08-24 04:30:00 -05:00
<script
defer
src="{{ .Site.Params.commento }}"
data-no-fonts="true"
></script>
2020-08-24 03:41:03 -05:00
<div id="commento"></div>
{{ end }}
2021-04-15 00:46:53 -05:00
{{- partial "related_articles.html" . -}}
2020-08-24 01:48:03 -05:00
{{ end }}