Skip to content

Commit e4e514c

Browse files
committed
Change hugo version
1 parent 731199d commit e4e514c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/deploy-ghpages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Hugo
2020
uses: peaceiris/actions-hugo@v2
2121
with:
22-
hugo-version: "0.133.0"
22+
hugo-version: "0.142.0"
2323
extended: true
2424

2525
- name: Build
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Hugo
4545
uses: peaceiris/actions-hugo@v2
4646
with:
47-
hugo-version: "0.133.0"
47+
hugo-version: "0.142.0"
4848
extended: true
4949

5050
- name: Build

layouts/shortcodes/substack.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{{ if .Get "url" }}
22
{{ $url := .Get "url" }}
3-
{{ $limit := .Get "limit" | default 10 }}
3+
{{ $limit := .Get "limit" }}
44

55
<section style="margin-top: 2rem;">
66
{{ with resources.GetRemote $url | transform.Unmarshal }}
7-
{{ if gt (len .channel.item) 0 }}
87
{{ range first $limit .channel.item }}
98
<div style="margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px dashed #696969">
109
<small>{{ dateFormat "January 2, 2006" .pubDate }}</small>
@@ -14,7 +13,7 @@ <h3 style="margin-top: 0rem; margin-bottom: 0.5rem;">
1413
</h3>
1514
<p style="margin-top: 0.5rem;">{{ .encoded | plainify | truncate 200 }}</p>
1615
<a href="{{ .link }}" style="padding-left: 1rem;">Read more →</a>
17-
{{ end }}
16+
</div>
1817
{{ end }}
1918
{{ end }}
2019
</section>

0 commit comments

Comments
 (0)