hesabixSite/templates/general/sitemap.html.twig

27 lines
1 KiB
Twig
Raw Normal View History

2025-01-09 11:03:38 +03:30
<?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
2025-01-09 15:31:04 +03:30
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
2025-01-09 11:03:38 +03:30
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url>
<loc>{{ absolute_url(path('app_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>
2025-01-09 15:31:04 +03:30
{% 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>
2025-01-09 11:03:38 +03:30
{% endif %}
{% endfor %}
</urlset>