small fixes
This commit is contained in:
parent
0d0958e261
commit
1b42ef0135
|
@ -6,7 +6,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{- $pages := .Data.Pages -}}
|
{{- $pages := .Data.Pages -}}
|
||||||
{{ partial "news/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -7,11 +7,6 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||||||
{{- $paginator := "" -}}
|
|
||||||
{{- $partial := "gen_list" -}}
|
|
||||||
{{- $paginate := true -}}
|
|
||||||
{{- $pages = where $pages ".Params.about" "=" true -}}
|
{{- $pages = where $pages ".Params.about" "=" true -}}
|
||||||
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ $partial = string (printf "news/%s" $partial) }}
|
|
||||||
{{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||||||
{{- $pages = where $pages ".Params.when" "ne" nil -}}
|
{{- $pages = where $pages ".Params.when" "ne" nil -}}
|
||||||
{{ partial "news/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
|
|
|
@ -6,12 +6,7 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $pages := where .Site.RegularPages "Permalink" "!=" .Permalink -}}
|
{{- $pages := where .Site.RegularPages "Permalink" "!=" .Permalink -}}
|
||||||
{{- $paginator := "" -}}
|
|
||||||
{{- $partial := "gen_list" -}}
|
|
||||||
{{- $paginate := true -}}
|
|
||||||
{{- $pages = where $pages ".Params.featured" "=" true -}}
|
{{- $pages = where $pages ".Params.featured" "=" true -}}
|
||||||
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ $partial = string (printf "news/%s" $partial) }}
|
|
||||||
{{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
{{ $feat = i18n $feat }}
|
{{ $feat = i18n $feat }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="two_lists">
|
<div class="two_lists">
|
||||||
{{ partial "news/gen_list" (dict "context" . "pages" $featured "title" $feat "limit" "5" )}}
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $featured "title" $feat "limit" "5" )}}
|
||||||
{{ partial "news/gen_list" (dict "context" . "pages" $posts "title" $news "link" "news" "limit" "5" )}}
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $posts "title" $news "link" "news" "limit" "5" )}}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||||||
{{ partial "news/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $paginator := "" -}}
|
{{- $paginator := "" -}}
|
||||||
{{- $partial := "gen_list" -}}
|
{{- $partial := "snippets/gen_list" -}}
|
||||||
{{- $paginate := true -}}
|
{{- $paginate := true -}}
|
||||||
{{- $pages := .Data.Pages -}}
|
{{- $pages := .Data.Pages -}}
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{{ $bpxxlarge := "160em" }}
|
{{ $bpxxlarge := "160em" }}
|
||||||
|
|
||||||
{{ if $pages }}
|
{{ if $pages }}
|
||||||
<div class="gen_list">
|
<div class="snippets/gen_list">
|
||||||
{{ if $title }}
|
{{ if $title }}
|
||||||
<h2 style="display: flex; align-items: baseline;">
|
<h2 style="display: flex; align-items: baseline;">
|
||||||
{{ if $link }}
|
{{ if $link }}
|
|
@ -1,5 +0,0 @@
|
||||||
<style>
|
|
||||||
{{ partial "css/container" . }}
|
|
||||||
{{ partial "css/header" . }}
|
|
||||||
|
|
||||||
</style>
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||||||
{{ partial "news/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
|
|
|
@ -6,13 +6,8 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{- $pages := where .Site.RegularPages "Permalink" "!=" .Permalink -}}
|
{{- $pages := where .Site.RegularPages "Permalink" "!=" .Permalink -}}
|
||||||
{{- $paginator := "" -}}
|
|
||||||
{{- $partial := "gen_list" -}}
|
|
||||||
{{- $paginate := true -}}
|
|
||||||
{{- $pages = where $pages ".Params.recurrent" "=" true -}}
|
{{- $pages = where $pages ".Params.recurrent" "=" true -}}
|
||||||
|
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||||
{{ $partial = string (printf "news/%s" $partial) }}
|
|
||||||
{{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "sidebar" }}
|
{{ define "sidebar" }}
|
||||||
|
|
Loading…
Reference in New Issue