abdullahtarawneh.com/layouts/blog/single.html

38 lines
932 B
HTML
Raw Normal View History

2024-03-13 06:54:20 +00:00
{{ define "main" }}
<main class="blog">
<div class="container">
<article class="post h-entry">
<header>
<h1 class="title">{{ .Title }}</h1>
<p class="summary">{{.Summary}}</p>
{{ with .Params.cover }}
<img class="cover" src="{{.}}">
{{end}}
</header>
<aside class="meta">
<datetime class="date"> {{ .Date.Format "Mon Jan 2, 2006" }} </datetime>
<p class="wordcount"> {{.WordCount}} words</p>
{{ with .Params.tags }}
<p class="tags-title">Keywords</p>
<ul class="tags">
{{ range . }}
<li><a href='{{"tags/" | absURL }}{{. | urlize}}'>{{.}}</a></li>
{{ end }}
</ul>
{{ end }}
2024-03-14 23:29:33 +00:00
{{ if ne .TableOfContents "<nav id=\"TableOfContents\"></nav>" }}
<p class="toc-title">Table of contents:</p>
2024-03-13 06:54:20 +00:00
{{ .TableOfContents }}
2024-03-14 23:29:33 +00:00
{{ end }}
2024-03-13 06:54:20 +00:00
</aside>
<section class="content">
{{ .Content }}
</section>
</article>
</div>
</main>
{{ end }}