mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
e933bf39b7
- user needs to enable comments in hugo config + params: comments: true - disabled by default
29 lines
806 B
HTML
29 lines
806 B
HTML
{{- partial "header.html" . }}
|
|
|
|
<article class="post-single">
|
|
<header class="post-header">
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
<div class="post-meta">
|
|
{{- if or .Params.author .Site.Params.author }}
|
|
{{- .Params.author | default .Site.Params.author }} · {{ end }}
|
|
{{- .Date.Format "January 2, 2006" -}}
|
|
</div>
|
|
</header>
|
|
<div class="post-content">{{ .Content }}</div>
|
|
{{- if .Params.tags }}
|
|
<footer class="post-footer">
|
|
<ul class="post-tags">
|
|
{{- range .Params.tags }}
|
|
{{- $href := print (absURL "tags/") (urlize .) }}
|
|
<li><a href="{{ $href }}">{{ . }}</a></li>
|
|
{{- end }}
|
|
</ul>
|
|
</footer>
|
|
{{- end }}
|
|
|
|
{{- if $.Site.Params.comments }}
|
|
{{- partial "comments.html" . }}
|
|
{{- end }}
|
|
</article>
|
|
|
|
{{- partial "footer.html" . }} |