summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-05-03 14:11:36 -0500
committerluxagraf <sng@luxagraf.net>2019-05-03 14:11:36 -0500
commit6dea2fcff795f062f467fce7ed1e18c184bd5400 (patch)
tree672b7fb429000a44620731fbc15855104adc90d5
parent9bb68ad259c061bdd39911edaf592f03a718f91b (diff)
changed feed to open links to link page
-rw-r--r--design/templates/feed.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/design/templates/feed.xml b/design/templates/feed.xml
index 7745976..827a783 100644
--- a/design/templates/feed.xml
+++ b/design/templates/feed.xml
@@ -15,8 +15,8 @@
<webMaster>comments@libregraf.net</webMaster>{% for object in object_list %}
<item>
<title>{{object.title|escape}}</title>
- <link>{{SITE_URL}}{{object.get_absolute_url}}</link>
- <guid>{{SITE_URL}}{{object.get_absolute_url}}</guid>
+ <link>{% if object.link_url %}{{object.link_url}}{%else%}{{SITE_URL}}{{object.get_absolute_url}}{%endif%}</link>
+ <guid>{% if object.link_url %}{{object.link_url}}{%else%}{{SITE_URL}}{{object.get_absolute_url}}{%endif%}</guid>
<description>
{{object.body_html|escape}}
</description>