Manually check in the theme
This commit is contained in:
28
themes/hugo-theme-notrack/layouts/taxonomy/list.html
Normal file
28
themes/hugo-theme-notrack/layouts/taxonomy/list.html
Normal file
@ -0,0 +1,28 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
{{- /* Hardcoded values for identifying whether we're looking at a tag or category */ -}}
|
||||
{{ if or (eq .Data.Plural "categories") (eq .Data.Singular "category") }}
|
||||
<h1>Category: {{ .Title }}</h1>
|
||||
{{ else if or (eq .Data.Plural "tags") (eq .Data.Singular "tag") }}
|
||||
<h1>Tag: {{ .Title }}</h1>
|
||||
{{ end }}
|
||||
|
||||
{{- if .Pages -}}
|
||||
{{- $pages := (where .Pages ".Draft" false) -}}
|
||||
|
||||
{{- with .Site.Params.list.paginate | default .Site.Params.paginate -}}
|
||||
{{- $pages = $.Paginate $pages . -}}
|
||||
{{- else -}}
|
||||
{{- $pages = .Paginate $pages -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- range $pages.Pages -}}
|
||||
<article class="archive-item">
|
||||
{{ partial "blog-entry-summary.html" . }}
|
||||
</article>
|
||||
{{- end -}}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
{{- end -}}
|
||||
</main>
|
||||
{{ end }}
|
11
themes/hugo-theme-notrack/layouts/taxonomy/terms.html
Normal file
11
themes/hugo-theme-notrack/layouts/taxonomy/terms.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<h1>All {{ .Title }}</h1>
|
||||
|
||||
<ul>
|
||||
{{ range .Data.Terms.Alphabetical }}
|
||||
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ end }}
|
Reference in New Issue
Block a user