Format
This commit is contained in:
@@ -6,13 +6,17 @@
|
|||||||
<section>
|
<section>
|
||||||
{{ if $page.Params.image_url }}
|
{{ if $page.Params.image_url }}
|
||||||
{{ $class := "mw-100 rounded-4 shadow" }}
|
{{ $class := "mw-100 rounded-4 shadow" }}
|
||||||
|
|
||||||
{{ if $page.Params.image_stretch }}
|
{{ if $page.Params.image_stretch }}
|
||||||
{{ $class = "rounded-4 shadow w-100" }}
|
{{ $class = "rounded-4 shadow w-100" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $style := "height: 20rem" }}
|
{{ $style := "height: 20rem" }}
|
||||||
|
|
||||||
{{ if $page.Params.image_stretch }}
|
{{ if $page.Params.image_stretch }}
|
||||||
{{ $style = "height: 20rem; object-fit: cover" }}
|
{{ $style = "height: 20rem; object-fit: cover" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<p {{ if not .Params.image_stretch }} class="text-center" {{ end }}>
|
<p {{ if not .Params.image_stretch }} class="text-center" {{ end }}>
|
||||||
{{ partial "paige/img.html" (dict
|
{{ partial "paige/img.html" (dict
|
||||||
"class" $class
|
"class" $class
|
||||||
|
@@ -1,21 +1,28 @@
|
|||||||
{{ $page := . }}
|
{{ $page := . }}
|
||||||
|
|
||||||
{{ $item := $page }}
|
{{ $item := $page }}
|
||||||
|
|
||||||
{{ if $page.IsHome }}
|
{{ if $page.IsHome }}
|
||||||
{{ $item = $page.Site }}
|
{{ $item = $page.Site }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $pages := slice }}
|
{{ $pages := slice }}
|
||||||
|
|
||||||
{{ if or $page.IsHome $page.IsSection }}
|
{{ if or $page.IsHome $page.IsSection }}
|
||||||
{{ $pages = $item.RegularPages }}
|
{{ $pages = $item.RegularPages }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $pages = $item.Pages }}
|
{{ $pages = $item.Pages }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $limit := $page.Site.Config.Services.RSS.Limit }}
|
{{ $limit := $page.Site.Config.Services.RSS.Limit }}
|
||||||
|
|
||||||
{{ if ge $limit 1 }}
|
{{ if ge $limit 1 }}
|
||||||
{{ $pages = $pages | first $limit }}
|
{{ $pages = $pages | first $limit }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
|
{{ $pages = where $pages "Params.paige.hide_rss" "ne" true }}
|
||||||
{{ $title := partial "paige/func-title.html" $page }}
|
{{ $title := partial "paige/func-title.html" $page }}
|
||||||
|
|
||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
|
Reference in New Issue
Block a user