Skip to content

Commit

Permalink
Implemented Sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
T0astBread committed Aug 11, 2017
1 parent 4687d3d commit e1f2ae9
Show file tree
Hide file tree
Showing 2 changed files with 151 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cs-website/sitemap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
require_once "php/constants.internal.php";

$pathToRoot = "";
require_once "php/templating/twig-environment.internal.php";

echo $twig->render("sitemap.xml.twig");
?>
143 changes: 143 additions & 0 deletions cs-website/templates/sitemap.xml.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{% set HOST = constant("HOST") %}

<?xml version="1.0" encoding="utf-8"?><!--Generated by Screaming Frog SEO Spider 8.1-->
<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>{{ HOST }}</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>{{ HOST }}/?lang=de</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ HOST }}?lang=en</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>{{ HOST }}/imprint</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>yearly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ HOST }}/imprint?lang=en</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>yearly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ HOST }}/imprint?lang=de</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>yearly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ HOST }}/#news</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.9</priority>
</url>
<url>
<loc>{{ HOST }}/?lang=de#news</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ HOST }}/?lang=en#news</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>{{ HOST }}/#news-allgemein</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/#news-jobs</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/#news-cs-transport-v5</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/#news-cs-transport-v6</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/#news-cs-bus</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/#news-cs-routing</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/products/</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ HOST }}/products/?lang=en</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>{{ HOST }}/products/cs-transport/</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/products/cs-transport/?lang=en</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/products/cs-bus</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/products/cs-bus/?lang=en</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/products/cs-routing</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
<url>
<loc>{{ HOST }}/products/cs-routing/?lang=en</loc>
<lastmod>2017-08-11</lastmod>
<changefreq>daily</changefreq>
<priority>0.6</priority>
</url>
</urlset>

1 comment on commit e1f2ae9

@T0astBread
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This closes #24.

Please sign in to comment.