forked from nyancrimew/maia.crimew.gay
		
	uuh make da feed cool and epic and make google like it more
This commit is contained in:
		
							parent
							
								
									f35d30d7f5
								
							
						
					
					
						commit
						880739165c
					
				
					 1 changed files with 11 additions and 8 deletions
				
			
		
							
								
								
									
										15
									
								
								src/feed.njk
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								src/feed.njk
									
									
									
									
									
								
							|  | @ -14,7 +14,7 @@ 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" xml:base="{{ metadata.url }}"> | <feed xmlns="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" 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"/> | ||||||
|  | @ -26,17 +26,20 @@ metadata: | ||||||
|     <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.link %} | ||||||
|     <link href="{{ post.data.link }}"/> |     <link href="{{ post.data.link }}"/> | ||||||
|     {% else %} |     {%- else %} | ||||||
|     <link href="{{ absolutePostUrl }}"/> |     <link href="{{ absolutePostUrl }}"/> | ||||||
|     {% endif %} |     {%- endif %} | ||||||
|     <updated>{{ post.date | dateToRfc3339 }}</updated> |     <updated>{{ post.date | dateToRfc3339 }}</updated> | ||||||
|     <id>{{ absolutePostUrl }}</id> |     <id>{{ absolutePostUrl }}</id> | ||||||
|     <content type="html"><![CDATA[{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) | safe }}]]></content>         |     <content:encoded type="html"><![CDATA[{{ post.templateContent | safe | htmlToAbsoluteUrls(absolutePostUrl) | safe }}]]></content:encoded> | ||||||
|  |     {%- if post.data.feature_image %} | ||||||
|  |     <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