atom feed: fix some small issues
This commit is contained in:
		
							parent
							
								
									47fcce8f8f
								
							
						
					
					
						commit
						10bfb88a0e
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -14,18 +14,18 @@ metadata: | ||||||
|     id: https://maia.crimew.gay/ |     id: https://maia.crimew.gay/ | ||||||
| --- | --- | ||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| <feed xmlns="http://www.w3.org/2005/Atom"> | <feed xmlns="http://www.w3.org/2005/Atom" xml:base="{{ metadata.url }}"> | ||||||
|   <title>{{ metadata.title }}</title> |   <title>{{ metadata.title }}</title> | ||||||
|   <subtitle>{{ metadata.feed.subtitle }}</subtitle> |   <subtitle>{{ metadata.feed.subtitle }}</subtitle> | ||||||
|   <link href="{{ metadata.feed.url }}" rel="self"/> |   <link href="{{ metadata.feed.url }}" rel="self"/> | ||||||
|   <link href="{{ metadata.url }}"/> |   <link href="{{ metadata.url }}"/> | ||||||
|   <updated>{{ collections.posts | rssLastUpdatedDate }}</updated> |   <updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated> | ||||||
|   <id>{{ metadata.feed.id }}</id> |   <id>{{ metadata.feed.id }}</id> | ||||||
|   <author> |   <author> | ||||||
|     <name>{{ metadata.author.name }}</name> |     <name>{{ metadata.author.name }}</name> | ||||||
|     <email>{{ metadata.author.email }}</email> |     <email>{{ metadata.author.email }}</email> | ||||||
|   </author> |   </author> | ||||||
|   {%- for post in collections.posts %} |   {%- for post in collections.posts | reverse %} | ||||||
|   {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %} |   {% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %} | ||||||
|   <entry> |   <entry> | ||||||
|     <title>{{ post.data.title }}</title> |     <title>{{ post.data.title }}</title> | ||||||
|  | @ -34,7 +34,7 @@ metadata: | ||||||
|     {% else %} |     {% else %} | ||||||
|       <link href="{{ absolutePostUrl }}"/> |       <link href="{{ absolutePostUrl }}"/> | ||||||
|     {% endif %} |     {% endif %} | ||||||
|     <updated>{{ post.date | rssDate }}</updated> |     <updated>{{ post.date | dateToRfc3339 }}</updated> | ||||||
|     <id>{{ absolutePostUrl }}</id> |     <id>{{ absolutePostUrl }}</id> | ||||||
|     <content type="html">{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) }}</content> |     <content type="html">{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) }}</content> | ||||||
|   </entry> |   </entry> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue