Add syndication to /posts page
This commit is contained in:
parent
b5439a89dc
commit
e60d69cb0f
|
@ -2,4 +2,5 @@
|
|||
<h2><span class="social_logo">{{ partial "social_logo" . }}</span>{{.Title | default "Untitled" }}</h2>
|
||||
<p><img src="{{ .Params.media_url }}" ></p>
|
||||
<small>{{ .Date.Format "January, 02th 2006" }}</small>
|
||||
<a class="hidden u-syndication syn-link" rel="syndication" href="{{ .Params.original_url }}">{{ .Params.original_url }}</a>
|
||||
</a>
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
{{ partial "navbar.html" . }}
|
||||
<div class="main wrapper clearfix">
|
||||
<div class="main wrapper clearfix h-feed">
|
||||
|
||||
{{ $paginator := .Paginate ((where .Data.Pages "Section" "posts").GroupByDate "January 2006") 100}}
|
||||
{{ range $paginator.PageGroups }}
|
||||
<h2>{{ .Key }}</h2>
|
||||
<div class="posts summary clearfix">
|
||||
<div class="posts summary clearfix h-entry">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue