|
@@ -134,9 +134,11 @@ def printMenuItem(p, yearsAsHeading = False, showDateSpan = False, showOnlyStart
|
134
|
134
|
return lastyear
|
135
|
135
|
|
136
|
136
|
def printRecentMenu(count = 5):
|
137
|
|
- posts = [p for p in pages if "date" in p]
|
|
137
|
+ posts = [p for p in pages if "date" in p and p.lang == "en"]
|
138
|
138
|
posts.sort(key=lambda p: p.get("update", p.get("date")), reverse=True)
|
139
|
|
- for p in posts[0:count]:
|
|
139
|
+ if count > 0:
|
|
140
|
+ posts = posts[0:count]
|
|
141
|
+ for p in posts:
|
140
|
142
|
printMenuItem(p, False, False, False, True, "0", "", False)
|
141
|
143
|
|
142
|
144
|
def printBlogMenu():
|