diff --git a/.htaccess b/.htaccess
index 53d89e2..3e77119 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,10 +1,33 @@
RewriteEngine On
+# ################
+# RSS
+# ################
RewriteCond %{QUERY_STRING} ^title=Special:Newpages\&feed=rss$
-RewriteRule ^index\.php$ /feed.xml? [R=301,L]
+RewriteRule ^index\.php$ https://%{HTTP_HOST}/feed.xml [R=301,NE,QSD,L]
+# ################
+# Conmpanion pages
+# ################
RewriteCond %{QUERY_STRING} ^title=Sp%C3%A9cial:Nouvelles_pages&feed=rss$
-RewriteRule ^index\.php$ /feed.xml? [R=301,L]
+RewriteRule ^index\.php$ https://%{HTTP_HOST}/feed.xml [R=301,NE,QSD,L]
+RewriteCond %{QUERY_STRING} ^title=Special:Export/(.*)$
+RewriteRule ^index\.php$ https://%{HTTP_HOST}/%1 [R=301,NE,QSD,L]
+
+RewriteCond %{QUERY_STRING} ^title=Sp%C3%A9cial:Exporter/(.*)$
+RewriteRule ^index\.php$ https://%{HTTP_HOST}/%1 [R=301,NE,QSD,L]
+
+RewriteCond %{QUERY_STRING} ^title=Discussion:(.*)$
+RewriteRule ^index\.php$ https://%{HTTP_HOST}/%1 [R=301,NE,QSD,L]
+
+# ################
+# Main pages
+# ################
RewriteCond %{QUERY_STRING} [^&?]*?=([^&?]*)[&]?(.*)
-RewriteRule ^index\.php$ /%1.html?%2 [R=301,L]
\ No newline at end of file
+RewriteRule ^index\.php$ https://%{HTTP_HOST}/%1?%2 [R=301,NE,L]
+
+# ################
+# Error pages
+# ################
+ErrorDocument 404 https://%{HTTP_HOST}/404
\ No newline at end of file
diff --git a/_global/Special:AllPages.html b/_global/Special:AllPages.html
index 90080f8..d54fd6b 100644
--- a/_global/Special:AllPages.html
+++ b/_global/Special:AllPages.html
@@ -11,8 +11,8 @@ menu: ['global']
{%- assign page_name = page_name | append: " - " | append: page.title -%}
{%- endif -%}
- {{ page_name }} [{{ page.bytes }} bytes]
- {%- if page.author_full -%} (by {{ page.author_full.name }} ) {%- endif -%}
+ {{ page_name }} [{{ page.bytes }} bytes]
+ {%- if page.author_full -%} (by {{ page.author_full.name }} ) {%- endif -%}
{%- endfor -%}
diff --git a/_global/Special:Categories.html b/_global/Special:Categories.html
index 5db067b..6e7bce9 100644
--- a/_global/Special:Categories.html
+++ b/_global/Special:Categories.html
@@ -13,6 +13,6 @@ menu: ['global']
{%- endif -%}
{%- endfor -%}
- {{ tag }} ({{counter}} pages)
+ {{ tag }} ({{counter}} pages)
{%- endfor -%}
diff --git a/_global/Special:ListRedirects.html b/_global/Special:ListRedirects.html
index 9003bdf..937cd8b 100644
--- a/_global/Special:ListRedirects.html
+++ b/_global/Special:ListRedirects.html
@@ -7,7 +7,7 @@ menu: ['global']
{%- for source_page in site.data.wiki_redirects -%}
{%- assign redirect_page = source_page.redirect_target -%}
- {{ source_page.id }} → {{ redirect_page.title }}
+ {{ source_page.id }} → {{ redirect_page.title }}
{%- endfor -%}
diff --git a/_global/Special:ListUsers.html b/_global/Special:ListUsers.html
index 1a1b510..bfa35d7 100644
--- a/_global/Special:ListUsers.html
+++ b/_global/Special:ListUsers.html
@@ -6,7 +6,7 @@ menu: ['global']
diff --git a/_global/Special:LongPages.html b/_global/Special:LongPages.html
index e7ba1a5..8deeecb 100644
--- a/_global/Special:LongPages.html
+++ b/_global/Special:LongPages.html
@@ -7,7 +7,7 @@ menu: ['global']
{%- for page in long_pages limit:50 -%}
- {{ page.title }} [{{ page.bytes }} bytes]
+ {{ page.title }} [{{ page.bytes }} bytes]
{%- endfor -%}
diff --git a/_global/Special:RecentChanges.html b/_global/Special:RecentChanges.html
index 5620476..d268eac 100644
--- a/_global/Special:RecentChanges.html
+++ b/_global/Special:RecentChanges.html
@@ -7,7 +7,7 @@ menu: ['global']
{%- for page in recent_changes limit:20 -%}
- {{ page.title }}
+ {{ page.title }}
- {{ page.modified }}
{%- endfor -%}
diff --git a/_global/Special:ShortPages.html b/_global/Special:ShortPages.html
index 1c94be8..91d9250 100644
--- a/_global/Special:ShortPages.html
+++ b/_global/Special:ShortPages.html
@@ -7,7 +7,7 @@ menu: ['global']
{%- for page in long_pages limit:50 -%}
- {{ page.title }} [{{ page.bytes }} bytes]
+ {{ page.title }} [{{ page.bytes }} bytes]
{%- endfor -%}
diff --git a/_global/feed.xml b/_global/feed.xml
index 2e0348c..3163900 100644
--- a/_global/feed.xml
+++ b/_global/feed.xml
@@ -7,14 +7,15 @@ layout: null
{{ site.title }}
{{ site.description }}
{{ site.url }}
- {% for post in site.data.wiki_pages reversed%}
+ {% assign wiki_pages = site.data.wiki_pages | sort: 'created' %}
+ {% for post in wiki_pages reversed%}
{% unless post.draft %}
-
{{ post.title | xml_escape }}
- {{ post.description | xml_escape | truncate: 300 }}
+ {{ post.excerpt | strip_html }}
{{ post.created | date_to_xmlschema }}
- {{ post.url | prepend: site.url | append: '.html'}}
- {{ post.url | prepend: site.url | append: '.html' }}
+ {{ post.url | prepend: site.url}}
+ {{ post.url | prepend: site.url }}
{% endunless %}
{% endfor %}
diff --git a/_global/tags.html b/_global/tags.html
index b5f55a0..81e255d 100644
--- a/_global/tags.html
+++ b/_global/tags.html
@@ -4,7 +4,7 @@ title: Tags
---
{% for tag in site.data.wiki_tags %}
- {{ tag }}
+ {{ tag }}
{% for other_page in site.data.wiki_pages %}
{% if other_page.tags contains tag %}
diff --git a/_includes/global.html b/_includes/global.html
index f01763d..902f577 100644
--- a/_includes/global.html
+++ b/_includes/global.html
@@ -2,7 +2,7 @@
{{ site.data.i18n[site.lang].label.global_pages }}
{%- for link in site.data.i18n[site.lang].global_pages -%}
- {{link.text}}
+ {{link.text}}
{%- endfor -%}
diff --git a/_includes/logo.html b/_includes/logo.html
index c9e97cf..a83980c 100644
--- a/_includes/logo.html
+++ b/_includes/logo.html
@@ -1,3 +1,3 @@
diff --git a/_includes/tags.html b/_includes/tags.html
index f271c03..41ae14d 100644
--- a/_includes/tags.html
+++ b/_includes/tags.html
@@ -4,11 +4,11 @@
diff --git a/_plugins/contributions-page-generator.rb b/_plugins/contributions-page-generator.rb
index 70bbaf3..0607736 100644
--- a/_plugins/contributions-page-generator.rb
+++ b/_plugins/contributions-page-generator.rb
@@ -11,12 +11,12 @@ module Jekyll
def initialize(site, author)
@site = site
@base = site.source
- @name = "#{author['contributions_url']}.html"
+ @name = "#{author['contributions_url']}"
self.process(@name)
- self.read_yaml(File.join(@base, '_layouts'), 'contributions.html')
+ self.read_yaml(File.join(@base, '_layouts'), 'contributions')
self.data['author_full'] = author
- self.data['title'] = "Contributions by #{author['name']} "
+ self.data['title'] = "Contributions by #{author['name']} "
end
end
end
\ No newline at end of file
diff --git a/_wiki/Main.md b/_wiki/Main.md
index b69ff84..1c9c4c1 100644
--- a/_wiki/Main.md
+++ b/_wiki/Main.md
@@ -249,10 +249,10 @@ References:
# Examples
-* Example of a [new page](New.html)
-* Example of a [legacy page](Old.html)
-* Example of a [redirected page](Redirect.html)
-* Example of a [user page](./User:Alexis.html)
+* Example of a [new page](New)
+* Example of a [legacy page](Old)
+* Example of a [redirected page](Redirect)
+* Example of a [user page](./User:Alexis)
* [RSS](feed.xml) feed of new pages
-* Example of a [tag page](./Tag:Example.html)
-* [All tags page](./tags.html)
+* Example of a [tag page](./Tag:Example)
+* [All tags page](./tags)