Fix project page

This commit is contained in:
L3D 2019-02-27 15:53:23 +01:00
parent 65ff6d14a3
commit 693a1d2a1d
2 changed files with 7 additions and 9 deletions

View file

@ -1,14 +1,13 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^projekte.xml https://toolbox-bodensee.de/feed_projekte.xml
RewriteRule ^f33d.xml https://toolbox-bodensee.de/feed_projekte.xml
RewriteRule ^feed.xml https://toolbox-bodensee.de/feed_blog.xml
RewriteRule ^rezepte.xml https://c3woc.de/feed_rezepte.xml
RewriteRule ^feed.xml https://c3woc.de/feed_blog.xml
### Redirect certain domains to ffbsee.net
RewriteCond %{HTTP_HOST} ^toolbox\.cyber\.yt [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.toolbox-bodensee\.de [NC]
RewriteRule (.*) https://toolbox-bodensee.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.c3woc\.de [NC]
RewriteRule (.*) https://c3woc.de/$1 [R=301,L]
</IfModule>
# COMPRESSION WITH MOD_DEFLATE

View file

@ -5,19 +5,18 @@ set search = "rezept" %}
<title type="text">{%
if bag('translate', this.alt, 'projectfeed') %}{{ bag('translate', this.alt, 'projectfeed') }}{%
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>
<link href="{{ baseurl }}{{ search }}/" />
<link href="{{ baseurl }}feed_projekte.xml" rel="self" />
<link href="{{ baseurl }}feed_rezepte.xml" rel="self" />
<author>
<name>{% if this.author %}{{ this.author }}{% else %}C3WOC{% endif %}</name>
</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 %}
<entry xml:base="{{ baseurl }}{{ search }}/{{ page._id }}/">
<title type="text">{{ page.title }}</title>
<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 }}" />
<author>
<name>{% if page.author %}{{ page.author }}{% else %}C3WOC{% endif %}</name>