diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 3a192a08..391e3c23 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -21,6 +21,34 @@
{{ .Title }}
+ {{ end }} + {{ if gt (len $pages) 5 }} + + {{ i18n "More" }} >> + + {{ end }}{{ define "content" }} + +{{ $termName := .Data.Plural }} +{{ $terms := .Data.Terms.ByCount }} +{{ $length := len $terms }} +{{ $type := .Type }} + +
+

- {{ .Data.Plural | humanize }} -

+{{ if and $.Site.Taxonomies.categories (eq $termName "categories") }} + +
+{{ range $terms }} + {{ $term := .Term }} + {{ $pages := .Pages }} + {{ with $.Site.GetPage "taxonomy" (printf "%s/%s" $type $term) }} +
+
+

{{ $term | humanize}}

+ {{ range first 5 $pages }} + {{ end }} {{ if gt (len $pages) 5 }} @@ -44,4 +72,22 @@ {{ end }}
-{{end }} \ No newline at end of file +{{end }} +
+
+ {{ end }} +{{ end }} +
+ +{{ else if and $.Site.Taxonomies.tags (eq $termName "tags") }} +
+ {{ range $.Site.Taxonomies.tags.ByCount }} + {{ if .Name }} + {{ .Name }} ({{ .Count }}) + {{ end }} + {{end}} +
+ +{{ end }} + +{{end }} diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml index 9192e0cc..725add48 100644 --- a/layouts/index.atom.xml +++ b/layouts/index.atom.xml @@ -24,4 +24,4 @@ {{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }} {{ ` {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html index 6a0d0abc..d5549383 100644 --- a/layouts/partials/comments.html +++ b/layouts/partials/comments.html @@ -40,7 +40,7 @@ {{- if .Site.Params.valine.enable -}} @@ -65,3 +65,4 @@ {{- end -}} {{- end }} + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 12de83e4..bfaaa2fd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -31,9 +31,9 @@ {{ partial "css" . }} - {{ if .RSSLink }} - - + {{ with .OutputFormats.Get "RSS" }} + + {{ end }} {{- template "_internal/twitter_cards.html" . }} {{ partial "seo_schema" . }} @@ -45,3 +45,4 @@ {{ end }} {{ end }} {{ .Scratch.Set "cdn_url" $cdn_url }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 76b93fb7..875bcde5 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -28,4 +28,4 @@ {{ end }} - \ No newline at end of file + diff --git a/layouts/partials/home_post.html b/layouts/partials/home_post.html index 061f6bca..9103a785 100644 --- a/layouts/partials/home_post.html +++ b/layouts/partials/home_post.html @@ -58,7 +58,7 @@ {{ with .Params.tags }}
{{ range . }} - + #{{.}} {{ end }}
diff --git a/layouts/partials/paginator.html b/layouts/partials/paginator.html index dd341aaf..4451b996 100644 --- a/layouts/partials/paginator.html +++ b/layouts/partials/paginator.html @@ -26,4 +26,4 @@ {{ end }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/rss.xml b/layouts/rss.xml index 935d3161..ebfb43be 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -5,20 +5,20 @@ Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - + {{ range first 15 (where .Data.Pages "Type" "!=" "home") }} {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with .Site.Author.email }}{{.}}{{ with site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }} {{ end }} - \ No newline at end of file +