Skip to content

Commit

Permalink
Rename post to posts
Browse files Browse the repository at this point in the history
To stick official organization https://gohugo.io/content-management/organization/

fixes #374
  • Loading branch information
kakawait committed Aug 11, 2021
1 parent a2b8b6c commit 7a962f4
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ if eq .Params.covermeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }}
{{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
<section class="postShorten-group main-content-wrap">
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "posts") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/taxonomy/archive.terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<form id="filter-form" action="#">
<input name="date" type="text" class="form-control input--xlarge" placeholder="{{ i18n "global.search_date" }}" autofocus="autofocus">
</form>
{{ partial "archive-post.html" (where .Site.RegularPages "Type" "post") }}
{{ partial "archive-post.html" (where .Site.RegularPages "Type" "posts") }}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/taxonomy/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
{{ if or (not (isset .Site.Params "categoryPagination")) (.Site.Params.categoryPagination) }}
<section class="postShorten-group main-content-wrap">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
Expand All @@ -23,7 +23,7 @@
<form id="filter-form" action="#">
<input name="date" type="text" class="form-control input--xlarge" placeholder="{{ i18n "global.search_date" }}" autofocus="autofocus">
</form>
{{ partial "archive-post.html" (where .Data.Pages "Type" "post") }}
{{ partial "archive-post.html" (where .Data.Pages "Type" "posts") }}
</div>
{{ end }}
{{ partial "footer.html" . }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/taxonomy/category.terms.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ if $.Site.Params.hierarchicalCategories }}
{{ $.Scratch.Set "max-level" 0 }}
{{ range where $.Site.RegularPages "Type" "post" }}
{{ range where $.Site.RegularPages "Type" "posts" }}
{{ $page := . }}
{{ if .Params.categories }}
{{ $categories := (apply .Params.categories "urlize" ".") }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/taxonomy/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
{{ if or (not (isset .Site.Params "tagPagination")) (.Site.Params.tagPagination) }}
<section class="postShorten-group main-content-wrap">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "posts") }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
Expand All @@ -23,7 +23,7 @@
<form id="filter-form" action="#">
<input name="date" type="text" class="form-control input--xlarge" placeholder="{{ i18n "global.search_date" }}" autofocus="autofocus">
</form>
{{ partial "archive-post.html" (where .Data.Pages "Type" "post") }}
{{ partial "archive-post.html" (where .Data.Pages "Type" "posts") }}
</div>
{{ end }}
{{ partial "footer.html" . }}
Expand Down

0 comments on commit 7a962f4

Please sign in to comment.