1
0
Fork 0

Add syndication to /posts page

This commit is contained in:
Sebastian Schulze 2020-07-08 20:50:11 +02:00
parent b5439a89dc
commit e60d69cb0f
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
2 changed files with 3 additions and 2 deletions

View File

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

View File

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