mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-28 23:53:20 -05:00
7f7d8cfb22
add disableShare = true in page params --- disableShare: true ---
49 lines
1.3 KiB
HTML
49 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
|
|
<article class="post-single">
|
|
<header class="post-header">
|
|
<h1 class="post-title">
|
|
{{ .Title }}
|
|
{{- if .Draft }}<div class="entry-isdraft"><sup> [draft]</sup></div>{{- end }}
|
|
</h1>
|
|
{{ if .Params.hideMeta }}{{ else }}
|
|
<div class="post-meta">
|
|
{{- if or .Params.author .Site.Params.author }}
|
|
{{- .Params.author | default .Site.Params.author }} · {{ end }}
|
|
{{- .Date.Format "January 2, 2006" -}}
|
|
</div>
|
|
{{end}}
|
|
</header>
|
|
{{ if .Params.ShowToc }}
|
|
<div class="toc">
|
|
<details>
|
|
<summary>
|
|
<div class="details">Table of Contents</div>
|
|
</summary>
|
|
<blockquote>
|
|
{{ .TableOfContents }}
|
|
</blockquote>
|
|
</details>
|
|
</div>
|
|
{{ end }}
|
|
<div class="post-content">{{ .Content }}</div>
|
|
<footer class="post-footer">
|
|
{{- if .Params.tags }}
|
|
<ul class="post-tags">
|
|
{{- range .Params.tags }}
|
|
{{- $href := print (absLangURL "tags/") (urlize .) }}
|
|
<li><a href="{{ $href }}">{{ . }}</a></li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
{{ if (and .Site.Params.ShowShareButtons (ne .Params.disableShare true) ) }}
|
|
{{ partial "share-icons.html" . }}
|
|
{{ end }}
|
|
</footer>
|
|
|
|
{{- if $.Site.Params.comments }}
|
|
{{- partial "comments.html" . }}
|
|
{{- end }}
|
|
</article>
|
|
|
|
{{ end }}{{/* end main */}} |