summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/news.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/news.py b/scripts/news.py
index ca9dfb4..1f291c7 100644
--- a/scripts/news.py
+++ b/scripts/news.py
@@ -6,7 +6,8 @@ import os
class NewsPlugin:
def __init__(self):
newspath = os.path.join(template.path, 'news')
- newsfiles = [ os.path.join(newspath, entry) for entry in sorted(os.listdir(newspath)) ]
+ newsfiles = [ os.path.join(newspath, entry) for entry in sorted(os.listdir(newspath)) \
+ if not entry.startswith('.') ]
self._news = []
for newsfile in reversed(newsfiles):