hesabixSite/templates/general/sitemap.html.twig
Hesabix 06a2fb398d
Some checks are pending
PHP Composer / build (push) Waiting to run
progress in site customer part
2025-09-05 09:37:27 +03:30

72 lines
2.4 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>
<url>
<loc>{{ absolute_url(path('qa_index')) }}</loc>
<lastmod>2025-01-09T06:58:03+00:00</lastmod>
<priority>0.90</priority>
</url>
<url>
<loc>{{ absolute_url(path('qa_tags')) }}</loc>
<lastmod>2025-01-09T06:58:03+00:00</lastmod>
<priority>0.80</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 %}
{% for question in questions %}
<url>
<loc>{{ absolute_url(path('qa_question_show', {'id': question.id})) }}</loc>
<lastmod>{{ question.createdAt|date('c') }}</lastmod>
<priority>0.70</priority>
</url>
{% endfor %}
{% for tag in tags %}
<url>
<loc>{{ absolute_url(path('qa_tag_questions', {'name': tag.name})) }}</loc>
<lastmod>2025-01-09T06:58:03+00:00</lastmod>
<priority>0.60</priority>
</url>
{% endfor %}
</urlset>