Skip to content

Commit

Permalink
projectpages: add permalinks
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 11, 2015
1 parent 2380b24 commit e956ddd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions v7/projectpages/projectpages.py
Expand Up @@ -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())
Expand All @@ -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"]]
Expand Down

0 comments on commit e956ddd

Please sign in to comment.