Use the same template for taglists and the blog index. Move the tagposts into a collection to make life easier
Build and copy to prod / build-and-copy (push) Successful in 2m7s
Build and copy to prod / build-and-copy (push) Successful in 2m7s
This commit is contained in:
1 parent
2a900ce835
commit
d209f82688
7 files changed
+71
-58
No files matched your search
@@ -23,7 +23,7 @@ eleventyImport:
|
||||
<uri>{{ metadata.site.url }}</uri>
|
||||
</author>
|
||||
<category term="{{ tag }}" />
|
||||
{%- for post in collections.posts | filterBy(tag) | reverse %}
|
||||
{%- for post in collections.tagPosts[tag] %}
|
||||
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.site.url) %}
|
||||
<entry>
|
||||
<title>{{ post.data.title }}</title>
|
||||
|
||||
@@ -21,7 +21,7 @@ eleventyImport:
|
||||
"url": "{{ metadata.site.url }}"
|
||||
},
|
||||
"items": [
|
||||
{%- for post in collections.posts | filterBy(tag) | reverse %}
|
||||
{%- for post in collections.tagPosts[tag] %}
|
||||
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.site.url) %}
|
||||
{
|
||||
"id": "{{ absolutePostUrl }}",
|
||||
|
||||
@@ -18,8 +18,7 @@ eleventyImport:
|
||||
<atom:link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self" type="application/rss+xml" />
|
||||
<description>Posts tagged #{{ tag }}</description>
|
||||
<language>{{ metadata.site.language }}</language>
|
||||
{% set posts = collections.posts | filterBy(tag) | reverse %}
|
||||
{%- for post in posts %}
|
||||
{%- for post in collections.tagPosts[tag] %}
|
||||
{%- set absolutePostUrl = post.url | absoluteUrl(metadata.site.url) %}
|
||||
<item>
|
||||
<title>{{ post.data.title }}</title>
|
||||
|
||||
Reference in new issue
Block a user