I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 382d1584 authored by dev's avatar dev
Browse files

start hacking blog index

parent f1462b1e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment