формируется sitemap.xml

This commit is contained in:
Sergei Erjemin (Сергей Еремин)
2020-11-21 16:14:15 +03:00
parent 3de50d551a
commit 6c506ed251
5 changed files with 21 additions and 4 deletions

View File

@@ -35,14 +35,14 @@
</td></tr><tr><td colspan="2">{% else %}</tr><tr><td>{% endif %}
<div class="tags">
{% for i in TAGS %}<a href="/?tag={{ i.slug }}">{{ i.name|safe }}</a> {% endfor %}
<div id="next"><a href="/{{ NEXT}}_{{ NEXT_TXT }}">&rightarrow;</a></div>
<div id="next"><a href="/{{ NEXT }}_{{ NEXT_TXT }}">&rightarrow;</a></div>
</div>
</td>
</tr>
</table></center>
<script type="text/javascript">
setTimeout('location.replace("/{{ NEXT}}_{{ NEXT_TXT }}")', 15000);
setTimeout('location.replace("/{{ NEXT }}_{{ NEXT_TXT }}")', 15000);
/*Изменить текущий адрес страницы через 3 секунды (3000 миллисекунд)*/
</script>
<noscript>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://dq.cube2.ru/</loc><priority>0.1</priority></url>{% for I in DATA %}
<url><loc>https://dq.cube2.ru/{{ I.ID }}_{{ I.SLUG }}</loc><priority>1</priority></url>{% endfor %}
</urlset>