Skip to content

Commit 19a74ba

Browse files
committedJan 18, 2015
projectpages: compat with SHOW_UNTRANSLATED_POSTS = False
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 4ce1043 commit 19a74ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎v7/projectpages/projectpages.plugin

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Module = projectpages
66
MinVersion = 7.1.0+
77

88
[Documentation]
9-
Author = Chris “Kwpolska” Warrick
10-
Version = 0.1.2
9+
Author = Chris Warrick
10+
Version = 0.1.3
1111
Website = http://plugins.getnikola.com/#projectpages
1212
Description = Generate project pages

‎v7/projectpages/projectpages.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright © 2014 Chris “Kwpolska” Warrick and others.
3+
# Copyright © 2014–2015, Chris Warrick.
44

55
# Permission is hereby granted, free of charge, to any
66
# person obtaining a copy of this software and associated
@@ -150,7 +150,7 @@ def gen_tasks(self):
150150
file_dep = []
151151

152152
for p in self.projects:
153-
file_dep += [p.translated_base_path(l) for l in self.kw['translations']]
153+
file_dep += [p.translated_base_path(l) for l in self.kw['translations'] if l in p.translated_to]
154154

155155
yield utils.apply_filters({
156156
'basename': self.name,

0 commit comments

Comments
 (0)
Please sign in to comment.