mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
rss_rel: rel -> ref, rss -> feed
This commit is contained in:
parent
25c84cc1b3
commit
23fb03f133
3 changed files with 5 additions and 5 deletions
|
|
@ -1008,9 +1008,9 @@ the ``TAG_FEED_ATOM`` and ``TAG_FEED_RSS`` settings:
|
|||
to ``False``, the full content will be included instead. This setting
|
||||
doesn't affect Atom feeds, only RSS ones.
|
||||
|
||||
.. data:: FEED_APPEND_REL = False
|
||||
.. data:: FEED_APPEND_REF = False
|
||||
|
||||
If set to ``True``, ``?rel=rss`` will be appended to links in generated
|
||||
If set to ``True``, ``?ref=feed`` will be appended to links in generated
|
||||
feeds for the purpose of referrer tracking.
|
||||
|
||||
If you don't want to generate some or any of these feeds, set the above
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ DEFAULT_CONFIG = {
|
|||
"TRANSLATION_FEED_ATOM": "feeds/all-{lang}.atom.xml",
|
||||
"FEED_MAX_ITEMS": 100,
|
||||
"RSS_FEED_SUMMARY_ONLY": True,
|
||||
"FEED_APPEND_REL": False,
|
||||
"FEED_APPEND_REF": False,
|
||||
"SITEURL": "",
|
||||
"SITENAME": "A Pelican Blog",
|
||||
"DISPLAY_PAGES_ON_MENU": True,
|
||||
|
|
|
|||
|
|
@ -53,8 +53,8 @@ class Writer:
|
|||
title = Markup(item.title).striptags()
|
||||
link = self.urljoiner(self.site_url, item.url)
|
||||
|
||||
if self.settings["FEED_APPEND_REL"]:
|
||||
link = link + "?rel=rss"
|
||||
if self.settings["FEED_APPEND_REF"]:
|
||||
link = link + "?ref=feed"
|
||||
|
||||
if isinstance(feed, Rss201rev2Feed):
|
||||
# RSS feeds use a single tag called 'description' for both the full
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue