File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 7676 </ span >
7777 </ span >
7878 {{- end -}}
79- {{- with .Site.Params.header.title.rss -}}
80- < a class ="menu-item " href ="/index.xml " title ="RSS "> < i class ="fa-solid fa-rss fa-fw " title ="RSS "> </ i > </ a >
79+ {{- if .Site.Params.header.title.rss -}}
80+ {{- $home := .Site.GetPage "home" -}}
81+ {{- $rss := .OutputFormats.Get "RSS" | default ($home.OutputFormats.Get "RSS") -}}
82+ {{- with $rss -}}
83+ < a class ="menu-item " href ="{{ .RelPermalink }} " title ="RSS " target ="_blank "> < i class ="fa-solid fa-rss fa-fw " title ="RSS "> </ i > </ a >
84+ {{- end -}}
8185 {{- end -}}
8286 < a href ="# " onclick ="return false; " class ="menu-item theme-switch " title ="{{ T "switchTheme " }}">
8387 < i class ="fa-solid fa-adjust fa-fw "> </ i >
150154 </ a >
151155 {{- end -}}
152156 < div class ="menu-item ">
153- {{- with .Site.Params.header.title.rss -}}
154- < a href ="/index.xml " title ="RSS "> < i class ="fa-solid fa-rss fa-fw " title ="RSS "> </ i > </ a >
155- < span > | </ span >
157+ {{- if .Site.Params.header.title.rss -}}
158+ {{- $home := .Site.GetPage "home" -}}
159+ {{- $rss := .OutputFormats.Get "RSS" | default ($home.OutputFormats.Get "RSS") -}}
160+ {{- with $rss -}}
161+ < a href ="{{ .RelPermalink }} " title ="RSS " target ="_blank "> < i class ="fa-solid fa-rss fa-fw " title ="RSS "> </ i > </ a >
162+ < span > | </ span >
163+ {{- end -}}
156164 {{- end -}}
157165 < a href ="# " onclick ="return false; " class ="theme-switch " title ="{{ T "switchTheme " }}">
158166 < i class ="fa-solid fa-adjust fa-fw "> </ i >
You can’t perform that action at this time.
0 commit comments