forked from nyancrimew/maia.crimew.gay
		
	more atom feed shit
This commit is contained in:
		
							parent
							
								
									880739165c
								
							
						
					
					
						commit
						aa6cbc1d9b
					
				
					 1 changed files with 6 additions and 11 deletions
				
			
		
							
								
								
									
										17
									
								
								src/feed.njk
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								src/feed.njk
									
									
									
									
									
								
							|  | @ -25,21 +25,16 @@ metadata: | ||||||
|     <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 %} | ||||||
|   {%- 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> | ||||||
|     {%- if post.data.link %} |     {% if post.data.description %}<summary>{{ post.data.description }}</summary>{% endif %} | ||||||
|     <link href="{{ post.data.link }}"/> |     {% if post.data.link %}<link href="{{ post.data.link }}"/>{% else %}<link href="{{ absolutePostUrl }}"/>{% endif %} | ||||||
|     {%- else %} |  | ||||||
|     <link href="{{ absolutePostUrl }}"/> |  | ||||||
|     {%- endif %} |  | ||||||
|     <updated>{{ post.date | dateToRfc3339 }}</updated> |     <updated>{{ post.date | dateToRfc3339 }}</updated> | ||||||
|     <id>{{ absolutePostUrl }}</id> |     <id>{{ absolutePostUrl }}</id> | ||||||
|     <content:encoded type="html"><![CDATA[{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) | safe }}]]></content:encoded> |     <content:encoded type="html"><![CDATA[{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) | safe }}]]></content:encoded> | ||||||
|     {%- if post.data.feature_image %} |     {% if post.data.feature_image %}<media:content url="{{ post.data.feature_image | url | absoluteUrl(metadata.url) }}" type="image/jpeg" expression="full"></media:content>{% endif %}             | ||||||
|     <media:content url="{{ post.data.feature_image | url | absoluteUrl(metadata.url) }}" type="image/jpeg" expression="full"></media:content> |  | ||||||
|     {%- endif %}             |  | ||||||
|   </entry> |   </entry> | ||||||
|   {%- endfor %} | {% endfor %} | ||||||
| </feed> | </feed> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue