Skip to content

Commit

Permalink
fix(section): remove hard coded section (#67)
Browse files Browse the repository at this point in the history
Close #67
  • Loading branch information
keithmork authored and olOwOlo committed May 31, 2018
1 parent 9033266 commit 6766e09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/section.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end }}

{{ define "content"}}
{{- $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }}
{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
<section id="archive" class="archive">
{{- if not $paginator.HasPrev }}
<div class="archive-title">
Expand Down Expand Up @@ -47,4 +47,4 @@ <h2 class="archive-year">{{ $thisYear }}</h2>
</a>
{{- end }}
</nav>
{{ end }}
{{ end }}
4 changes: 2 additions & 2 deletions layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end }}

{{ define "content"}}
{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }}
{{ $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
<section id="archive" class="archive">
{{ if not $paginator.HasPrev }}
{{ if eq .Data.Plural "tags" }}
Expand Down Expand Up @@ -43,4 +43,4 @@ <h2 class="archive-name">{{ .Title }}</h2>
</a>
{{- end }}
</nav>
{{ end }}
{{ end }}

0 comments on commit 6766e09

Please sign in to comment.