From 382d158489f6b80f0f3c4def02775c61c6e8fd8d Mon Sep 17 00:00:00 2001
From: dev <dev@welterde.de>
Date: Mon, 10 Sep 2012 09:38:42 +0000
Subject: [PATCH] start hacking blog index

---
 app.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/app.py b/app.py
index 866b6308d..8e9424432 100644
--- a/app.py
+++ b/app.py
@@ -168,6 +168,24 @@ def downloads_redirect(protocol, file, mirror=None):
 
 
 
+def get_blog_index():
+    """
+    Returns list of valid slugs sorted by date
+    """
+    ret=[]
+    
+    # list of slugs(not sorted in any way)
+    entries=[]
+    # walk over all directories/files
+    for v in os.walk(BLOG_DIR):
+        # iterate over all files
+        for f in v[2]:
+            # ignore all non-.rst files
+            if not f.endswith('.rst'):
+                continue
+            
+
+
 def render_blog_entry(slug):
     """
     Render the blog entry
-- 
GitLab