From 978cf096f79d56f7655c1374b39c651215dc1a6c Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 7 May 2011 00:31:10 +0200 Subject: [PATCH] album's title --- sigal/theme.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sigal/theme.py b/sigal/theme.py index 19d577b..581241e 100644 --- a/sigal/theme.py +++ b/sigal/theme.py @@ -53,7 +53,6 @@ class Theme(): if os.path.splitext(f)[1] in self.fileExtList] self.data[dirpath]['subdir'] = [d for d in dirnames if d not in ignored] - def get_meta_value(self, data): """ Return the value for a line like: @@ -69,7 +68,6 @@ class Theme(): return data - def get_metadata(self, path): """ Get album metadata from DESCRIPTION_FILE: @@ -90,7 +88,6 @@ class Theme(): if "album_representative" in l: self.data[path]['representative'] = self.get_meta_value(l) - def find_representative(self, path): """ find the representative image for a given album/path @@ -114,6 +111,7 @@ class Theme(): Render the html page """ + # copy static files in the output dir copy_tree(os.path.abspath(self.theme_dir), os.path.abspath(self.path)) self.directory_list() @@ -154,7 +152,7 @@ class Theme(): album = { 'path': os.path.join(d, INDEX_PAGE), - 'name': self.data[dirpath]['title'], + 'title': self.data[os.path.join(dirpath, d)]['title'], 'thumb': os.path.join(d, self.thumb_dir, self.thumb_prefix+alb_thumb), }