Skip to content

Commit b5e791d

Browse files
authored
fix page deploy error and update github actions (#6)
1 parent fdaaf0b commit b5e791d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci_deploy_workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ jobs:
1616
contents: read
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
- name: Setup Hugo
21-
uses: peaceiris/actions-hugo@v2
21+
uses: peaceiris/actions-hugo@v3
2222
with:
2323
hugo-version: latest
2424
- name: Build
2525
run: |-
2626
hugo --minify --buildFuture
2727
- name: Upload pages artifact
28-
uses: actions/upload-pages-artifact@v3
28+
uses: actions/upload-pages-artifact@v4
2929
with:
3030
name: build
3131
path: public
@@ -46,6 +46,6 @@ jobs:
4646
echo Publishing the 'build' artifact
4747
- name: Deploy to GitHub Pages
4848
id: deployment
49-
uses: actions/deploy-pages@v4
49+
uses: actions/deploy-pages@v5
5050
with:
5151
artifact_name: build

themes/ed-theme/layouts/_default/index.atom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
<link rel="alternate" type="text/html" language="{{.Site.Language }}" href="{{ .Permalink }}"/>
1818
<link rel="self" type="{{ .MediaType }}" href="/index.xml" />
1919
<subtitle>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</subtitle>
20-
<author>{{ with .Site.Author.name }}
21-
<name>{{.}}</name>{{end}}{{ with .Site.Author.email }}
20+
<author>{{ with .Site.Params.author.name }}
21+
<name>{{.}}</name>{{end}}{{ with .Site.Params.author.email }}
2222
<email>{{.}}</email>{{end}}
2323
<uri>{{ .Permalink }}</uri>
2424
</author>
@@ -32,10 +32,10 @@
3232
<published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</published>
3333
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
3434
<summary>{{ .Summary | html }}</summary>
35-
<id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
35+
<id>{{ .Permalink }}</id>{{ with .Site.Params.author.name }}
3636
<author>
3737
<name>{{.}}</name>
3838
</author>{{end}}
3939
</entry>
4040
{{ end }}
41-
</feed>
41+
</feed>

0 commit comments

Comments
 (0)