webmention form only on posts and using more if and where content type clauses
This commit is contained in:
parent
f5b3ad6cc7
commit
df14e32b46
@ -6,8 +6,6 @@ author:
|
||||
name: "Marvin Preuss"
|
||||
params:
|
||||
AuthorName: "Marvin Preuss"
|
||||
mainSections:
|
||||
- "posts"
|
||||
locallinks:
|
||||
- search
|
||||
- impressum
|
||||
|
@ -25,7 +25,7 @@
|
||||
{{ with .OutputFormats.Get "RSS" }}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{ end }}
|
||||
{{ range $pages }}
|
||||
{{ range (where .Site.RegularPages "Type" "eq" "posts") }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
|
@ -2,7 +2,9 @@
|
||||
<main>
|
||||
<article class="h-entry">
|
||||
{{ partial "article.html" . }}
|
||||
{{ if eq .Type "posts" }}
|
||||
{{ partial "mentions.html" . }}
|
||||
{{ end }}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "eq" "posts") }}
|
||||
{{ range $paginator.Pages }}
|
||||
<article class="h-entry">
|
||||
{{ partial "article.html" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user