From 49c44a83e5e434114dd90c1672579cf66ee46e86 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Fri, 19 Mar 2010 10:08:53 -0300 Subject: [PATCH] Separate images from subdirs in directory listing --- geekigeeki.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index 54802f4..a5ba6a2 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -667,16 +667,17 @@ class Page: pathname = (pathname and pathname + '/' ) + dirname out += '[[' + pathname + '|' + dirname + ']]/' out += ' ==\n' + images_out = '\n' for filename in page_list(self._filename(), file_re): if image_re.match(filename): maxwidth = config_get('image_maxwidth', '400') if maxwidth: maxwidth = ' | maxwidth=' + str(maxwidth) - out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n' + images_out += '{{' + self.page_name + '/' + filename + ' | ' + humanlink(filename) + maxwidth + ' | class=thumbleft}}\n' else: out += ' * [[' + self.page_name + '/' + filename + ']]\n' - return out + return out + images_out def pragmas(self): if not '_pragmas' in self.__dict__: -- 2.25.1