hesabixSite/templates/general/sitemap.html.twig
2025-01-10 21:59:38 +00:00

48 lines
1.7 KiB
Twig

<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>{{ absolute_url(path('app_home')) }}</loc>
<lastmod>2025-01-09T06:58:03+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>{{ absolute_url(path('app_changes')) }}</loc>
<lastmod>2025-01-09T06:58:03+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>{{ absolute_url(path('app_blog_home')) }}</loc>
<lastmod>2025-01-09T06:58:03+00:00</lastmod>
<priority>1.00</priority>
</url>
{% for post in posts %}
{% if post.cat.code == 'plain' %}
<url>
<loc>{{ absolute_url(path('app_page',{'url':post.url})) }}</loc>
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
<priority>1.00</priority>
</url>
{% elseif post.cat.code == 'blog' %}
<url>
<loc>{{ absolute_url(path('app_blog_post',{'url':post.url})) }}</loc>
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
<priority>1.00</priority>
</url>
{% elseif post.cat.code == 'guide' %}
<url>
<loc>{{ absolute_url(path('app_guide',{'url':post.url})) }}</loc>
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
<priority>1.00</priority>
</url>
{% elseif post.cat.code == 'api' %}
<url>
<loc>{{ absolute_url(path('app_api_docs',{'url':post.url})) }}</loc>
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
<priority>1.00</priority>
</url>
{% endif %}
{% endfor %}
</urlset>