diff options
| author | Eltrac <hi@guhub.cn> | 2025-06-07 11:27:24 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-06-07 11:27:24 +0800 |
| commit | c4afabb64248f3c007f6ed3f211240d1df21f0fa (patch) | |
| tree | 4ab43e30e034263e6857c48ee30b7b9366cb798a /layouts/rss.xml | |
| parent | eccfc37529dafb28a4095674bc59429b48959d75 (diff) | |
feat: style ATOM feed with RSSBeauty
Former-commit-id: f948b09a08ad2513488aff05ae0b1f7398d5170c
Diffstat (limited to 'layouts/rss.xml')
| -rw-r--r-- | layouts/rss.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml index d73aea9a..e8d581fc 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -31,6 +31,7 @@ {{- $pages = $pages | first $limit }} {{- end }} {{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} +{{- printf "<?xml-stylesheet type=\"text/xsl\" href=\"/atom.xsl.xml\"?>" | safeHTML }} <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} | {{ end }}{{ .Site.Title }}{{ end }}</title> |
