Testing
This commit is contained in:
13
themes/minimal/layouts/_default/list.html
Normal file
13
themes/minimal/layouts/_default/list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ partial "header" . }}
|
||||
|
||||
<main>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }} {{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "paginator" . }}
|
||||
|
||||
{{ partial "footer" . }}
|
||||
30
themes/minimal/layouts/_default/single.html
Normal file
30
themes/minimal/layouts/_default/single.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{{ partial "header" . }}
|
||||
|
||||
<main>
|
||||
|
||||
{{ partial "list-item" . }}
|
||||
|
||||
<br> <div class="text-justify">{{ .Content }}</div>
|
||||
|
||||
<!-- related posts with the same tags -->
|
||||
{{ $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 }}
|
||||
|
||||
{{ if and .Site.Params.disqusShortname (not .Params.disableComments) }}
|
||||
|
||||
<h4 class="page-header">Comments</h4>
|
||||
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
13
themes/minimal/layouts/_default/terms.html
Normal file
13
themes/minimal/layouts/_default/terms.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ partial "header" . }}
|
||||
|
||||
<main>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }} {{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "paginator" . }}
|
||||
|
||||
{{ partial "footer" . }}
|
||||
Reference in New Issue
Block a user