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