From e19ad7585ac599467d7a3660f18963c472e68199 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 14 Dec 2012 22:23:47 +0100 Subject: [PATCH] Rename the do_link function to link. --- sigal/writer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sigal/writer.py b/sigal/writer.py index b57b2f3..a599ed1 100644 --- a/sigal/writer.py +++ b/sigal/writer.py @@ -48,9 +48,9 @@ THEMES_PATH = os.path.normpath(os.path.join( abspath(os.path.dirname(__file__)), 'themes')) -def do_link(link, title): +def link(url, title): "Return a html link" - return '%s' % (link, title) + return '%s' % (url, title) class Writer(): @@ -107,12 +107,12 @@ class Writer(): # paths to upper directories (with titles and links) tmp_path = relpath - ctx['paths'] = do_link('.', paths[tmp_path]['title']) + ctx['paths'] = link('.', paths[tmp_path]['title']) while tmp_path != '.': tmp_path = os.path.normpath(os.path.join(tmp_path, '..')) - link = os.path.relpath(tmp_path, relpath) + '/' - ctx['paths'] = do_link(link, paths[tmp_path]['title']) + \ + url = os.path.relpath(tmp_path, relpath) + '/' + ctx['paths'] = link(url, paths[tmp_path]['title']) + \ PATH_SEP + ctx['paths'] for i in paths[relpath]['img']: