Fix project page
This commit is contained in:
parent
65ff6d14a3
commit
693a1d2a1d
2 changed files with 7 additions and 9 deletions
|
@ -1,14 +1,13 @@
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteRule ^projekte.xml https://toolbox-bodensee.de/feed_projekte.xml
|
RewriteRule ^rezepte.xml https://c3woc.de/feed_rezepte.xml
|
||||||
RewriteRule ^f33d.xml https://toolbox-bodensee.de/feed_projekte.xml
|
RewriteRule ^feed.xml https://c3woc.de/feed_blog.xml
|
||||||
RewriteRule ^feed.xml https://toolbox-bodensee.de/feed_blog.xml
|
|
||||||
|
|
||||||
### Redirect certain domains to ffbsee.net
|
### Redirect certain domains to ffbsee.net
|
||||||
RewriteCond %{HTTP_HOST} ^toolbox\.cyber\.yt [NC,OR]
|
RewriteCond %{HTTP_HOST} ^toolbox\.cyber\.yt [NC,OR]
|
||||||
RewriteCond %{HTTP_HOST} ^www\.toolbox-bodensee\.de [NC]
|
RewriteCond %{HTTP_HOST} ^www\.c3woc\.de [NC]
|
||||||
RewriteRule (.*) https://toolbox-bodensee.de/$1 [R=301,L]
|
RewriteRule (.*) https://c3woc.de/$1 [R=301,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# COMPRESSION WITH MOD_DEFLATE
|
# COMPRESSION WITH MOD_DEFLATE
|
||||||
|
|
|
@ -5,19 +5,18 @@ set search = "rezept" %}
|
||||||
<title type="text">{%
|
<title type="text">{%
|
||||||
if bag('translate', this.alt, 'projectfeed') %}{{ bag('translate', this.alt, 'projectfeed') }}{%
|
if bag('translate', this.alt, 'projectfeed') %}{{ bag('translate', this.alt, 'projectfeed') }}{%
|
||||||
else %}Rezepte des C3WOC{% endif %}</title>
|
else %}Rezepte des C3WOC{% endif %}</title>
|
||||||
<id>{{ baseurl }}feed_projekte.xml</id>
|
<id>{{ baseurl }}feed_rezepte.xml</id>
|
||||||
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
|
<updated>{{ none|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
|
||||||
<link href="{{ baseurl }}{{ search }}/" />
|
<link href="{{ baseurl }}{{ search }}/" />
|
||||||
<link href="{{ baseurl }}feed_projekte.xml" rel="self" />
|
<link href="{{ baseurl }}feed_rezepte.xml" rel="self" />
|
||||||
<author>
|
<author>
|
||||||
<name>{% if this.author %}{{ this.author }}{% else %}C3WOC{% endif %}</name>
|
<name>{% if this.author %}{{ this.author }}{% else %}C3WOC{% endif %}</name>
|
||||||
</author>{%
|
</author>{%
|
||||||
set pages = site.query('/projekte').include_undiscoverable(true).all() %}{%
|
set pages = site.query('/rezept').include_undiscoverable(true).all() %}{%
|
||||||
for page in pages %}{% if not page._hidden %}
|
for page in pages %}{% if not page._hidden %}
|
||||||
<entry xml:base="{{ baseurl }}{{ search }}/{{ page._id }}/">
|
<entry xml:base="{{ baseurl }}{{ search }}/{{ page._id }}/">
|
||||||
<title type="text">{{ page.title }}</title>
|
<title type="text">{{ page.title }}</title>
|
||||||
<id>{{ baseurl }}{{ search }}/{{ page._id }}</id>
|
<id>{{ baseurl }}{{ search }}/{{ page._id }}</id>
|
||||||
<updated>{{ page.pub_date|datetimeformat('YYYY-MM-ddThh:mm:ss') }}Z</updated>
|
|
||||||
<link href="{{ search }}/{{ page._id }}/" xml:base="{{ baseurl }}" />
|
<link href="{{ search }}/{{ page._id }}/" xml:base="{{ baseurl }}" />
|
||||||
<author>
|
<author>
|
||||||
<name>{% if page.author %}{{ page.author }}{% else %}C3WOC{% endif %}</name>
|
<name>{% if page.author %}{{ page.author }}{% else %}C3WOC{% endif %}</name>
|
||||||
|
|
Loading…
Reference in a new issue