Moved to PyAMS default theme
authorThierry Florac <thierry.florac@onf.fr>
Mon, 12 Nov 2018 14:44:27 +0100
changeset 1080 11d950caf9d2
parent 1077 24ab1360b343
child 1081 a7a2eeb833b7
Moved to PyAMS default theme
src/pyams_content/features/sitemap/skin/templates/humans.pt
src/pyams_content/features/sitemap/skin/templates/robots.pt
src/pyams_content/features/sitemap/skin/templates/root-sitemap.pt
src/pyams_content/features/sitemap/skin/templates/tool-sitemap.pt
--- a/src/pyams_content/features/sitemap/skin/templates/humans.pt	Mon Nov 12 12:16:25 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-/* THANKS */
-Main architect and developer: Thierry Florac
-From: Paris, France
-
-PyAMS contributor: Damien Correia
-From: Paris, France
-
-/* SITE */
-Doctype: HTML5
-Standards: HTML5, CSS3, A11y
-IDE: PyCharm, The GIMP, Mercurial
-Components: JQuery, Bootstrap, Python 3, Hypatia
-Software: Pyramid, PyAMS, PostgreSQL, Elasticsearch, Redis
-Language: english, french
--- a/src/pyams_content/features/sitemap/skin/templates/robots.pt	Mon Nov 12 12:16:25 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-Sitemap: <tal:var define="url tales:absolute_url(request.root)">${url}</tal:var>/sitemap.xml
-
-User-agent: *
-Disallow: /--static--/
-Disallow: /api/
-Disallow: /${tools_configuration.tables_name}/<tal:loop repeat="tool disallow">
-Disallow: /${tools_configuration.tools_name}/${tool.__name__}/</tal:loop>
--- a/src/pyams_content/features/sitemap/skin/templates/root-sitemap.pt	Mon Nov 12 12:16:25 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
-	<tal:loop repeat="(ts, source) view.sources">
-		<sitemap>
-			<loc>${tales:absolute_url(source)}/sitemap.xml</loc>
-			<lastmod>${ts}</lastmod>
-		</sitemap>
-	</tal:loop>
-</sitemapindex>
--- a/src/pyams_content/features/sitemap/skin/templates/tool-sitemap.pt	Mon Nov 12 12:16:25 2018 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
-	<url tal:repeat="(lang, content) view.contents">
-		<loc tal:define="url tales:canonical_url(content)">${url}?lang=${lang}</loc>
-		<lastmod>${tales:timestamp(content, 'iso')}</lastmod>
-	</url>
-</urlset>