Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f13c478718 | ||
|
|
bde2914dec |
@@ -1,10 +1,9 @@
|
|||||||
mainSections = ["post"]
|
mainSections = ["post"]
|
||||||
featuredImageField = "image"
|
rssFullContent = true
|
||||||
rssFullContent = true
|
|
||||||
# Accepted values: "default", "lastmod"
|
# Accepted values: "default", "lastmod"
|
||||||
# default = see https://gohugo.io/quick-reference/glossary/#default-sort-order
|
# default = see https://gohugo.io/quick-reference/glossary/#default-sort-order
|
||||||
# lastmod = sort by last modified date, in descending order
|
# lastmod = sort by last modified date, in descending order
|
||||||
SortBy = "default"
|
SortBy = "default"
|
||||||
|
|
||||||
[footer]
|
[footer]
|
||||||
since = 2026
|
since = 2026
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
/// Height: Image height
|
/// Height: Image height
|
||||||
/// Width: Image width
|
/// Width: Image width
|
||||||
|
|
||||||
{{ $result := "" }}
|
{{ $result := dict }}
|
||||||
|
|
||||||
{{ if .Image }}
|
{{ if .Image }}
|
||||||
{{ $url := urls.Parse .Image }}
|
{{ $url := urls.Parse .Image }}
|
||||||
@@ -20,7 +20,6 @@
|
|||||||
{{ if not (in (slice "https" "http") $url.Scheme) }}
|
{{ if not (in (slice "https" "http") $url.Scheme) }}
|
||||||
{{/* Local image */}}
|
{{/* Local image */}}
|
||||||
{{ $resource = .Resources.Get (printf "%s" (.Image | safeURL)) }}
|
{{ $resource = .Resources.Get (printf "%s" (.Image | safeURL)) }}
|
||||||
{{ $permalink = $resource.RelPermalink }}
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{/* Remote image */}}
|
{{/* Remote image */}}
|
||||||
{{ with try (resources.GetRemote $url) }}
|
{{ with try (resources.GetRemote $url) }}
|
||||||
@@ -39,9 +38,10 @@
|
|||||||
{{ if and .Context.Site.Params.imageProcessing.autoOrient (reflect.IsImageResourceProcessable $resource) }}
|
{{ if and .Context.Site.Params.imageProcessing.autoOrient (reflect.IsImageResourceProcessable $resource) }}
|
||||||
{{ $filter := images.AutoOrient }}
|
{{ $filter := images.AutoOrient }}
|
||||||
{{ $resource = $resource | images.Filter $filter }}
|
{{ $resource = $resource | images.Filter $filter }}
|
||||||
{{ if $local }}
|
{{ end }}
|
||||||
{{ $permalink = $resource.RelPermalink }}
|
|
||||||
{{ end }}
|
{{ if $local }}
|
||||||
|
{{ $permalink = $resource.RelPermalink }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if reflect.IsImageResourceWithMeta $resource }}
|
{{ if reflect.IsImageResourceWithMeta $resource }}
|
||||||
|
|||||||
Reference in New Issue
Block a user