Skip to content

Commit

Permalink
Add files only on prod to repo and template to generate sitemap (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
gathogojr authored Sep 8, 2023
1 parent 90941dc commit 60dc250
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
30 changes: 30 additions & 0 deletions sitemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset 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" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for item in site.ecosys -%}
<url>
<loc>{{ item.url | prepend: site.baseurl | prepend: site.url }}</loc>
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor -%}
{% for library in site.libraries -%}
<url>
<loc>{{ library.url | prepend: site.baseurl | prepend: site.url }}</loc>
</url>
{% endfor -%}
{% for post in site.posts -%}
<url>
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor -%}
{% for page in site.pages -%}
{% unless page.layout == nil -%}
<url>
<loc>{{ page.url | prepend: site.baseurl | prepend: site.url }}</loc>
</url>
{% endunless -%}
{% endfor -%}
</urlset>
30 changes: 30 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset 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" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% for item in site.ecosys -%}
<url>
<loc>{{ item.url | prepend: site.baseurl | prepend: site.url }}</loc>
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor -%}
{% for library in site.libraries -%}
<url>
<loc>{{ library.url | prepend: site.baseurl | prepend: site.url }}</loc>
</url>
{% endfor -%}
{% for post in site.posts -%}
<url>
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url }}</loc>
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor -%}
{% for page in site.pages -%}
{% unless page.layout == nil -%}
<url>
<loc>{{ page.url | prepend: site.baseurl | prepend: site.url }}</loc>
</url>
{% endunless -%}
{% endfor -%}
</urlset>
10 changes: 10 additions & 0 deletions web.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Arr-Disable-Session-Affinity" value="true" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

0 comments on commit 60dc250

Please sign in to comment.