looks okish on start page

This commit is contained in:
2019-11-02 22:29:06 +01:00
commit 035640a086
36 changed files with 2297 additions and 0 deletions

28
layouts/post/single.html Normal file
View File

@@ -0,0 +1,28 @@
{{ partial "header" . }}
<main>
<div>
<h2>{{ .Title }}</h2>
<h5>{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006") }}</h5>
{{ partial "tags" . }}
</div>
<div align="start" class="content">{{ .Content }}</div>
<!-- Related posts -->
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ if $related }}
<h4 class="page-header">Related</h4>
{{ range $related }} {{ partial "list-item" . }} {{ end }}
{{ end }}
<!-- Disquis comments -->
{{ if and .Site.DisqusShortname (not .Params.disableComments) }}
<h4 class="page-header">Comments</h4>
{{ template "_internal/disqus.html" . }}
{{ end }}
</main>
{{ partial "footer" . }}