Skip to content

Commit e7c1ed9

Browse files
authored
Merge pull request #26 from Maelstromeous/patch-2
Added a check to ensure the record is defined before proceeding to process it
2 parents 612c9f7 + 7242c8f commit e7c1ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/sitemap_xml.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<loc>{{ app.paths.hosturl }}{{ entry.link }}</loc>
77
{% if entry.link == "/" %}
88
{% setcontent record = app.config.get('general/homepage') returnsingle %}
9-
{% else %}
9+
{% elseif entry.record is defined %}
1010
{% set record = entry.record %}
1111
{% endif %}
1212
{% if record.datechanged is defined %}

0 commit comments

Comments
 (0)