Compare commits
2 Commits
ceb766e660
...
cf82976e9c
Author | SHA1 | Date |
---|---|---|
Helen Chong | cf82976e9c | |
Helen Chong | e1bfb45496 |
|
@ -16,7 +16,7 @@ eleventyComputed:
|
||||||
<name>{{ sitemeta.siteAuthor.name }}</name>
|
<name>{{ sitemeta.siteAuthor.name }}</name>
|
||||||
<email>{{ sitemeta.siteAuthor.email }}</email>
|
<email>{{ sitemeta.siteAuthor.email }}</email>
|
||||||
</author>
|
</author>
|
||||||
{%- for item in collections["feed items"] | reverse | itemLimit(20) %}
|
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
|
||||||
{% set absolutePostUrl %}{{ item.url | url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
|
{% set absolutePostUrl %}{{ item.url | url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
|
||||||
<entry>
|
<entry>
|
||||||
<title>{{ item.data.title }}</title>
|
<title>{{ item.data.title }}</title>
|
||||||
|
|
|
@ -4,7 +4,7 @@ eleventyExcludeFromCollections: true
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for item in collections.all -%}
|
{%- for item in collections.all %}
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ sitemeta.siteUrl + item.url | url }}</loc>
|
<loc>{{ sitemeta.siteUrl + item.url | url }}</loc>
|
||||||
<lastmod>{% if item.updated %}{{ item.updated.toISOString() }}{% else %}{{ item.date.toISOString() }}{% endif %}</lastmod>
|
<lastmod>{% if item.updated %}{{ item.updated.toISOString() }}{% else %}{{ item.date.toISOString() }}{% endif %}</lastmod>
|
||||||
|
|
Loading…
Reference in New Issue