Refactor noisy vars into exps
This commit is contained in:
@@ -104,9 +104,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range $subpages }}
|
{{ range $subpages }}
|
||||||
{{ $include := not (.Param "paige.exclude_feeds") }}
|
{{ if not (.Param "paige.exclude_feeds") }}
|
||||||
|
|
||||||
{{ if $include }}
|
|
||||||
<entry>
|
<entry>
|
||||||
{{ $content := .Content }}
|
{{ $content := .Content }}
|
||||||
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
||||||
|
|||||||
@@ -92,9 +92,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range $subpages }}
|
{{ range $subpages }}
|
||||||
{{ $include := not (.Param "paige.exclude_feeds") }}
|
{{ if not (.Param "paige.exclude_feeds") }}
|
||||||
|
|
||||||
{{ if $include }}
|
|
||||||
<item>
|
<item>
|
||||||
{{ $author := "" }}
|
{{ $author := "" }}
|
||||||
{{ $authors := partial "paige/func-authors.html" . }}
|
{{ $authors := partial "paige/func-authors.html" . }}
|
||||||
|
|||||||
@@ -13,8 +13,6 @@
|
|||||||
{{ $title := site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }}
|
{{ $title := site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }}
|
||||||
{{ $underline := false }}
|
{{ $underline := false }}
|
||||||
|
|
||||||
{{ $header := or $breadcrumbs $description $first $last $menu $title }}
|
|
||||||
|
|
||||||
{{ if eq $basePath "/" }}
|
{{ if eq $basePath "/" }}
|
||||||
{{ $basePath = "" }}
|
{{ $basePath = "" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -35,7 +33,7 @@
|
|||||||
{{ $links = true }}
|
{{ $links = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if $header }}
|
{{ if or $breadcrumbs $description $first $last $menu $title }}
|
||||||
<header id="paige-site-header">
|
<header id="paige-site-header">
|
||||||
{{ partial "paige/func-include.html" (dict "name" "site-header-first%s.html" "page" $page) }}
|
{{ partial "paige/func-include.html" (dict "name" "site-header-first%s.html" "page" $page) }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user