diff --git a/_data/i18n/en.yml b/_data/i18n/en.yml
index c453900..56ff275 100644
--- a/_data/i18n/en.yml
+++ b/_data/i18n/en.yml
@@ -23,5 +23,9 @@ global_pages:
text: All the pages
- url: /Special:RecentChanges
text: Recent changes
+ - url: /Special:LongPages
+ text: Long pages
+ - url: /Special:ShortPages
+ text: Short pages
- url: /Special:ListUsers
text: All the users
diff --git a/_data/i18n/fr.yml b/_data/i18n/fr.yml
index 1fbb066..4437bab 100644
--- a/_data/i18n/fr.yml
+++ b/_data/i18n/fr.yml
@@ -23,5 +23,9 @@ global_pages:
text: Tous les pages
- url: /Special:RecentChanges
text: Modifications récentes
+ - url: /Special:LongPages
+ text: Pages longues
+ - url: /Special:ShortPages
+ text: Pages courtes
- url: /Special:ListUsers
text: Tous les utilisateurs
diff --git a/_global/Special:AllPages.html b/_global/Special:AllPages.html
index b501785..d10bf2d 100644
--- a/_global/Special:AllPages.html
+++ b/_global/Special:AllPages.html
@@ -7,7 +7,7 @@ menu: ['global']
{%- for page in wiki_pages -%}
-
- {{ page.title }}
+ {{ page.title }} [{{ page.bytes }} bytes]
{%- if page.author -%} (by {{ page.author }}) {%- endif -%}
{%- endfor -%}
diff --git a/_global/Special:LongPages.html b/_global/Special:LongPages.html
new file mode 100644
index 0000000..9abcbc4
--- /dev/null
+++ b/_global/Special:LongPages.html
@@ -0,0 +1,14 @@
+---
+layout: default
+title: Long pages
+menu: ['global']
+---
+{%- include /functions/wiki-pages.html -%}
+{%- assign long_pages = wiki_pages | sort: 'bytes' | reverse -%}
+
+{%- for page in long_pages limit:50 -%}
+ -
+ {{ page.title }} [{{ page.bytes }} bytes]
+
+{%- endfor -%}
+
diff --git a/_global/Special:RecentChanges.html b/_global/Special:RecentChanges.html
index 677e117..18b0163 100644
--- a/_global/Special:RecentChanges.html
+++ b/_global/Special:RecentChanges.html
@@ -8,7 +8,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
new file mode 100644
index 0000000..1483858
--- /dev/null
+++ b/_global/Special:ShortPages.html
@@ -0,0 +1,14 @@
+---
+layout: default
+title: Short pages
+menu: ['global']
+---
+{%- include /functions/wiki-pages.html -%}
+{%- assign long_pages = wiki_pages | sort: 'bytes' -%}
+
+{%- for page in long_pages limit:50 -%}
+ -
+ {{ page.title }} [{{ page.bytes }} bytes]
+
+{%- endfor -%}
+
diff --git a/_plugins/hook-wiki-page-enhancer.rb b/_plugins/hook-wiki-page-enhancer.rb
new file mode 100644
index 0000000..6d7245b
--- /dev/null
+++ b/_plugins/hook-wiki-page-enhancer.rb
@@ -0,0 +1,13 @@
+Jekyll::Hooks.register :documents, :pre_render do |post|
+end
+
+Jekyll::Hooks.register :documents, :post_render do |doc|
+ # Jekyll.logger.info "Generating:", "Firing :pages, :post_render for : #{post.content}"
+ if doc.content then
+ doc.data['size']=doc.content.size
+ doc.data['bytes']=doc.content.bytesize
+ else
+ doc.data['size']=0
+ doc.data['bytes']=0
+ end
+end
diff --git a/_sass/wiki.scss b/_sass/wiki.scss
index aa25b3b..8671a3d 100644
--- a/_sass/wiki.scss
+++ b/_sass/wiki.scss
@@ -6,7 +6,9 @@ body {
#main {
background: #ffffff;
+ border-left: #acabab solid 2px;
padding: 1em;
+ z-index: 0;
}
#menu {
diff --git a/_wiki-legacy/Old.html b/_wiki-legacy/Old.html
index 997480a..af43e0b 100644
--- a/_wiki-legacy/Old.html
+++ b/_wiki-legacy/Old.html
@@ -5,7 +5,7 @@ tags: Example
toc: false
author: Alexis
created: 2009-01-01
-modified: 2009-01-01
+modified: 2009-01-02
revisions:
- author: Alexis
date: 2009-01-01