diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6d9d7e4..0be2446 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@

{{ trim .Title " " }}

- {{ partial "postInfoFull.html" . }} + {{ partial "postInfo.html" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c53e9e3..775a2f6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,7 +7,7 @@
{{ .Content }}
- {{ partial "postInfoFull.html" . }} + {{ partial "postInfo.html" . }} {{ if .Site.DisqusShortname }} {{ template "_internal/disqus.html" . }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html new file mode 100644 index 0000000..f63b535 --- /dev/null +++ b/layouts/_default/taxonomy.html @@ -0,0 +1,11 @@ +{{ define "main" }} +

{{ i18n .Data.Singular | humanize }}: {{ .Title }}

+
+ {{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }} +
+ {{ range .Paginator.Pages }} + {{ partial "postSummary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 16f8473..b0f98da 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,19 +1,15 @@ {{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }} {{ $toNewPostsMessage := i18n "toNewPosts" | humanize }} - {{ $toOldPostsMessage := i18n "toOldPosts" | humanize }} + {{ $toOldPostsMessage := i18n "toOldPosts" | humanize }} diff --git a/layouts/partials/postInfoFull.html b/layouts/partials/postInfo.html similarity index 100% rename from layouts/partials/postInfoFull.html rename to layouts/partials/postInfo.html diff --git a/layouts/partials/postSummary.html b/layouts/partials/postSummary.html index 36be764..0c28f61 100644 --- a/layouts/partials/postSummary.html +++ b/layouts/partials/postSummary.html @@ -12,5 +12,5 @@ {{ end }} --> - {{ partial "postInfoFull.html" . }} + {{ partial "postInfo.html" . }} \ No newline at end of file diff --git a/layouts/taxonomy/category.html b/layouts/taxonomy/category.html deleted file mode 100644 index 49ef285..0000000 --- a/layouts/taxonomy/category.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "main" }} - -

{{ i18n "category" | humanize }}: {{ .Title }}

-
- {{ i18n "toAllCategories" | humanize }} -
- {{ range .Data.Pages }} - {{ partial "postSummary.html" . }} - {{ end }} - -{{ end }} \ No newline at end of file diff --git a/layouts/taxonomy/tag.html b/layouts/taxonomy/tag.html deleted file mode 100644 index 953f64e..0000000 --- a/layouts/taxonomy/tag.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ define "main" }} - -

{{ i18n "tag" | humanize }}: {{ .Title }}

-
- {{ i18n "toAllTags" | humanize}} -
- {{ range .Data.Pages }} - {{ partial "postSummary.html" . }} - {{ end }} - -{{ end }} \ No newline at end of file