Skip to content

Commit

Permalink
Merge e66340a into 0d37abe
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Oct 29, 2019
2 parents 0d37abe + e66340a commit b362360
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{{ define "main" }}

<h1>{{ .Title }}</h1>

{{ .Content }}

<ul>
{{ range where .Pages.ByPublishDate.Reverse "Section" "post" }}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{ range $pages.ByPublishDate.Reverse }}
<li>
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
{{ .PublishDate.Format $dateFormat }}
Expand All @@ -13,3 +16,4 @@ <h1>{{ .Title }}</h1>
</li>
{{ end }}
</ul>
{{ end }}

0 comments on commit b362360

Please sign in to comment.