hugo-theme-zirakzigil/layouts/_default/single.html

27 lines
744 B
HTML
Raw Normal View History

2023-02-20 22:37:42 -05:00
{{ define "main" }}
<main>
2023-11-01 19:37:20 -04:00
<article class="flex flex-col md:justify-center md:items-center gap-4 ml-10">
<h1 class="text-2xl">{{ .Title }}</h1>
2023-02-20 22:37:42 -05:00
<time datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format "02.01.2006 15:04" }}</time>
{{ with .Params.tags }}
<div>
<ul id="tags">
{{ range . }}
2023-11-01 19:37:20 -04:00
<li class="badge badge-outline"><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
2023-02-20 22:37:42 -05:00
{{ end }}
</ul>
</div>
{{ end }}
2023-11-01 19:37:20 -04:00
<div class="prose sm:prose-sm dark:prose-invert">
{{ .Content }}
</div>
2023-02-20 22:37:42 -05:00
{{ with .Site.DisqusShortname }}
<div>
{{ template "_internal/disqus.html" . }}
</div>
{{ end }}
</article>
</main>
{{ partial "sidebar.html" . }}
{{ end }}