Skip to content

Commit 453881f

Browse files
committed
Fix hugo-theme-even
1 parent 80d7e9b commit 453881f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
submodules: true # Fetch Hugo themes (true OR recursive)
1616
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
1717

18+
- name: Patch the theme
19+
run: |
20+
pushd themes/even &>/dev/null
21+
git apply ../patch
22+
popd &>/dev/null
23+
1824
- name: Setup Hugo
1925
uses: peaceiris/actions-hugo@v2
2026
with:

themes/patch

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
2+
index a7955d1..5c1bc77 100644
3+
--- a/layouts/partials/footer.html
4+
+++ b/layouts/partials/footer.html
5+
@@ -8,7 +8,9 @@
6+
{{ if .Site.LanguagePrefix -}}
7+
<a href="{{ .Site.LanguagePrefix | absURL }}/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
8+
{{- else -}}
9+
- <a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
10+
+ {{- with .OutputFormats.Get "rss" -}}
11+
+ <a href="{{ .Permalink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
12+
+ {{- end}}
13+
{{- end }}
14+
</div>
15+

0 commit comments

Comments
 (0)