--- permalink: /updated.xml eleventyExcludeFromCollections: true eleventyImport: collections: - recentlyUpdated --- {{ site.name }} — Recently Updated {{ site.url }}/ Posts recently edited on {{ site.name }} {{ site.locale | default('en') }} {%- if collections.recentlyUpdated.length %} {{ collections.recentlyUpdated[0].data.updated | dateToRfc822 }} {%- endif %} {%- for post in collections.recentlyUpdated %} {%- set absolutePostUrl = site.url + post.url %} {%- set postImage = post.data.photo %} {%- if postImage %} {%- if postImage[0] and (postImage[0] | length) > 10 %} {%- set postImage = postImage[0] %} {%- endif %} {%- endif %} {%- if not postImage or postImage == "" %} {%- set postImage = post.data.image or (post.content | extractFirstImage) %} {%- endif %} {{ post.data.title | default(post.content | striptags | truncate(80)) | escape }} [updated] {{ absolutePostUrl }} {{ absolutePostUrl }}#updated-{{ post.data.updated | dateToRfc822 }} {{ post.data.updated | dateToRfc822 }} {{ post.content | htmlToAbsoluteUrls(absolutePostUrl) | escape }} {%- if postImage and postImage != "" and (postImage | length) > 10 %} {%- set imageUrl = postImage | url | absoluteUrl(site.url) %} {%- endif %} {%- endfor %}