summaryrefslogtreecommitdiff
path: root/_includes/weighted_sorted_pages.html
diff options
context:
space:
mode:
authorAilin Nemui <ailin@linux.site>2015-06-14 23:04:52 +0200
committerAilin Nemui <ailin@linux.localdomain>2015-07-01 22:42:55 +0200
commitaeefab4eb333d47d9d0af936e9e3f59cf86815e1 (patch)
tree993b072fc34e9449e1caac6d0e763cf5dde92a9e /_includes/weighted_sorted_pages.html
parent2c5262dcacc95f80f8c4736e1210ced4b609063e (diff)
downloadirssi.github.io-aeefab4eb333d47d9d0af936e9e3f59cf86815e1.zip
irssi-import
Diffstat (limited to '_includes/weighted_sorted_pages.html')
-rw-r--r--_includes/weighted_sorted_pages.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/_includes/weighted_sorted_pages.html b/_includes/weighted_sorted_pages.html
new file mode 100644
index 0000000..7b564f0
--- /dev/null
+++ b/_includes/weighted_sorted_pages.html
@@ -0,0 +1,5 @@
+{% capture sorted %}{% for node in site.pages %}{% assign top = node.categories | join:'~' | split:'~' | sort | first | remove_first:'_' | plus:10000 %}|{% if top != 10000 %}{{ top }}{% endif %}|{{ node.url }}|{{ forloop.index0 | plus:10000 }}*{% endfor %}{% endcapture %}{% comment %}
+{% endcomment %}{% capture sorted %}{{ sorted | split:'*' | sort | join:'*' }}{% endcapture %}{% comment %}
+{% endcomment %}{% assign sortedarr = sorted | split:'*' %}{% comment %}
+{% endcomment %}{% for item in sortedarr %}{% assign i2 = item | split:'|' %}{% assign iv = i2[3] | minus:10000 %}{{ iv }}{% unless forloop.last %},{% endunless %}{% comment %}
+{% endcomment %}{% endfor %}