Skip to content

Commit 60dc250

Browse files
authored
Add files only on prod to repo and template to generate sitemap (#358)
1 parent 90941dc commit 60dc250

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

sitemap

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: null
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<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">
6+
{% for item in site.ecosys -%}
7+
<url>
8+
<loc>{{ item.url | prepend: site.baseurl | prepend: site.url }}</loc>
9+
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
10+
</url>
11+
{% endfor -%}
12+
{% for library in site.libraries -%}
13+
<url>
14+
<loc>{{ library.url | prepend: site.baseurl | prepend: site.url }}</loc>
15+
</url>
16+
{% endfor -%}
17+
{% for post in site.posts -%}
18+
<url>
19+
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url }}</loc>
20+
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
21+
</url>
22+
{% endfor -%}
23+
{% for page in site.pages -%}
24+
{% unless page.layout == nil -%}
25+
<url>
26+
<loc>{{ page.url | prepend: site.baseurl | prepend: site.url }}</loc>
27+
</url>
28+
{% endunless -%}
29+
{% endfor -%}
30+
</urlset>

sitemap.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: null
3+
---
4+
<?xml version="1.0" encoding="UTF-8"?>
5+
<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">
6+
{% for item in site.ecosys -%}
7+
<url>
8+
<loc>{{ item.url | prepend: site.baseurl | prepend: site.url }}</loc>
9+
<lastmod>{{ item.date | date_to_xmlschema }}</lastmod>
10+
</url>
11+
{% endfor -%}
12+
{% for library in site.libraries -%}
13+
<url>
14+
<loc>{{ library.url | prepend: site.baseurl | prepend: site.url }}</loc>
15+
</url>
16+
{% endfor -%}
17+
{% for post in site.posts -%}
18+
<url>
19+
<loc>{{ post.url | prepend: site.baseurl | prepend: site.url }}</loc>
20+
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
21+
</url>
22+
{% endfor -%}
23+
{% for page in site.pages -%}
24+
{% unless page.layout == nil -%}
25+
<url>
26+
<loc>{{ page.url | prepend: site.baseurl | prepend: site.url }}</loc>
27+
</url>
28+
{% endunless -%}
29+
{% endfor -%}
30+
</urlset>

web.config

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<system.webServer>
4+
<httpProtocol>
5+
<customHeaders>
6+
<add name="Arr-Disable-Session-Affinity" value="true" />
7+
</customHeaders>
8+
</httpProtocol>
9+
</system.webServer>
10+
</configuration>

0 commit comments

Comments
 (0)