Merged main.
This commit is contained in:
commit
106642ab1a
79 changed files with 1786 additions and 899 deletions
|
@ -18,12 +18,12 @@
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* apply image processing. don't use "Fit" in svg because its not supported */}}
|
||||
{{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
|
||||
{{ $authorImage:= resources.Get $authorImage}}
|
||||
{{ if and $authorImage (ne $authorImage.MediaType.SubType "svg") }}
|
||||
{{ $authorImage := $authorImage.Fit "120x120" }}
|
||||
|
||||
{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
|
||||
{{ $authorImage = $authorImage.Fit "120x120" }}
|
||||
{{ end }}
|
||||
|
||||
{{/* return the author image link */}}
|
||||
{{ return $authorImage.RelPermalink }}
|
||||
|
||||
|
|
10
layouts/partials/helpers/get-pages.html
Normal file
10
layouts/partials/helpers/get-pages.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ $pages:= slice}}
|
||||
{{ range . }}
|
||||
{{ if .HasChildren }}
|
||||
{{ $nestedPages:=partial "helpers/get-pages.html" .Children }}
|
||||
{{ $pages = $pages | append $nestedPages }}
|
||||
{{ else }}
|
||||
{{ $pages = $pages | append .Page }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ return $pages}}
|
Loading…
Add table
Add a link
Reference in a new issue