fix(section): remove hard coded section (#67)

Close #67
This commit is contained in:
Keith Mo 2018-06-01 00:10:36 +08:00 committed by olOwOlo
parent 9033266c2f
commit 6766e09744
2 changed files with 4 additions and 4 deletions

View file

@ -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">

View file

@ -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" }}