Skip to content
Permalink
Browse files

projectpages: add permalinks

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 11, 2015
1 parent 2380b24 commit e956ddd56f2864a5d6c394a61f44d0dc0a2d0077
Showing with 1 addition and 2 deletions.
  1. +1 −2 v7/projectpages/projectpages.py
@@ -130,7 +130,6 @@ def gen_tasks(self):
# TODO: tranlsations?
context["title"] = "Projects"
context["description"] = None
context["permalink"] = '/' + short_tdst.replace('\\', '/')

def sortf(p):
return ((-int(p.meta('sort')) if p.meta('sort') != '' else -1), p.title())
@@ -142,7 +141,7 @@ def sortf(p):
index_len = len(self.kw['index_file'])
if self.kw['strip_indexes'] and link[-(1 + index_len):] == '/' + self.kw['index_file']:
link = link[:-index_len]
context["permalink"] = link
context["permalink"] = '/' + link

all_meta = [(p.title(), p.meta('status')) for p in self.projects]
all_meta += [p.meta('previewimage') for p in context["featured"]]

0 comments on commit e956ddd

Please sign in to comment.
You can’t perform that action at this time.