Update to latest Hugo release
This commit is contained in:
parent
854a768c1a
commit
b33e6bc25e
3 changed files with 9 additions and 6 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v3
|
uses: peaceiris/actions-hugo@v3
|
||||||
with:
|
with:
|
||||||
hugo-version: '0.140.2'
|
hugo-version: '0.145.0'
|
||||||
extended: true
|
extended: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
@ -100,9 +100,12 @@
|
||||||
{{ $full := printf "%s/thumb/%s.avif" $.Site.Params.image_host $filename_without_ext }}
|
{{ $full := printf "%s/thumb/%s.avif" $.Site.Params.image_host $filename_without_ext }}
|
||||||
{{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host $filename_without_ext }}
|
{{ $jpeg := printf "%s/thumb/%s.jpg" $.Site.Params.image_host $filename_without_ext }}
|
||||||
|
|
||||||
|
{{ $thumb_width := math.Div (int .Params.thumb_width) 2 }}
|
||||||
|
{{ $thumb_height := math.Div (int .Params.thumb_height) 2 }}
|
||||||
|
|
||||||
<picture>
|
<picture>
|
||||||
<source srcset="{{ $full }}" width="{{ math.Div .Params.thumb_width 2 }}" height="{{ math.Div .Params.thumb_height 2 }}" type="image/avif"/>
|
<source srcset="{{ $full }}" width="{{ $thumb_width }}" height="{{ $thumb_height }}" type="image/avif"/>
|
||||||
<img class="gallery-img featured-art" width="{{ math.Div .Params.thumb_width 2 }}" height="{{ math.Div .Params.thumb_height 2 }}" alt="{{ $title }}" src="{{ $jpeg }}">
|
<img class="gallery-img featured-art" width="{{ $thumb_width }}" height="{{ $thumb_height }}" alt="{{ $title }}" src="{{ $jpeg }}">
|
||||||
</picture>
|
</picture>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
{{ $id := .Get 1 }}
|
{{ $id := .Get 1 }}
|
||||||
{{ $urlToGet := print "https://" $masIns "/api/v1/statuses/" $id }}
|
{{ $urlToGet := print "https://" $masIns "/api/v1/statuses/" $id }}
|
||||||
|
|
||||||
{{- with resources.GetRemote $urlToGet -}}
|
{{- with try (resources.GetRemote $urlToGet) -}}
|
||||||
{{ if (resources.GetRemote $urlToGet).Err }}
|
{{ with .Err }}
|
||||||
<blockquote class="toot-blockquote">
|
<blockquote class="toot-blockquote">
|
||||||
<p class="ctr legal">[Source not online<br />
|
<p class="ctr legal">[Source not online<br />
|
||||||
at time of site build.]</p>
|
at time of site build.]</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
{{ else }}
|
{{ else with .Value }}
|
||||||
{{ $json := unmarshal .Content }}
|
{{ $json := unmarshal .Content }}
|
||||||
{{ $jsonHolder := $json }}{{/* Being safe */}}
|
{{ $jsonHolder := $json }}{{/* Being safe */}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue