bobdenotter / sitemap

Provide a sitemap (.xml) for your Bolt 4 site
MIT License
5 stars 4 forks source link

Add record image not to listing entry #12

Closed fisch42 closed 2 years ago

fisch42 commented 2 years ago

When showListings is enabled, the listing got the image from the record from which the listing was generated.

This code is preventing this behaviour. No image is added to the listing entry in the sitemap.

xiaohutai commented 2 years ago

Thanks!

xiaohutai commented 2 years ago

There's a small mistake on:

-        {%- if record|link is not empty -%}
+        {%- if if not isListing and record|link is not empty -%}

and I moved this code to the image check so it works as intended in #14.