hugo-theme-jane icon indicating copy to clipboard operation
hugo-theme-jane copied to clipboard

社交链接里没写RSS,为啥网站会有RSS啊,没找到在哪里删RSS

Open ppue opened this issue 3 years ago • 2 comments

Snipaste_2021-09-21_23-38-22.jpg

111111.jpg

ppue avatar Sep 21 '21 15:09 ppue

RSS 是自动生成的,用于订阅网站。

CyrusYip avatar May 31 '22 01:05 CyrusYip

去掉 RSS logo

https://github.com/xianmin/hugo-theme-jane/blob/cfbd7dccfbb44751e88c23320458b59c1d36b336/layouts/partials/social_links.html#L16-L24

由于 RSS icon 是硬编码在 html 里的,所以要注释掉 social_links.html 第十六行到第二十四行。这样就能去掉 RSS logo.

去除 RSS metadata

https://github.com/xianmin/hugo-theme-jane/blob/e4f24755a892257c52d7b5351003a4524cfa7f07/layouts/partials/head.html#L59

除此以外,head.xml 也可注释掉第五十九行。

关闭 RSS 全文输出及调整 RSS 篇数

config.toml 中 rssLimit 及 rssFullContent 参数修改如下: rssLimit = 1 rssFullContent = false

remove RSS logo

https://github.com/xianmin/hugo-theme-jane/blob/cfbd7dccfbb44751e88c23320458b59c1d36b336/layouts/partials/social_links.html#L16-L24

Since the RSS icon is hard-coded in the html file, remove the sixteenth to twenty-fourth lines of social_links.html. The RSS icon will be removed.

remove RSS metadata

https://github.com/xianmin/hugo-theme-jane/blob/e4f24755a892257c52d7b5351003a4524cfa7f07/layouts/partials/head.html#L59

In addition, head.xml can also be modified. Remove the fifty-ninth line.

Disable RSS full-text output and limit the number of RSS items to 1

The rssLimit and rssFullContent parameters in config.toml could be modified as follows: rssLimit = 1 rssFullContent = false

lilPiper avatar Jun 03 '23 01:06 lilPiper