build sigal link in the template

This commit is contained in:
Simon
2012-07-15 00:52:50 +02:00
parent 62ee78176a
commit 52df3a1657
3 changed files with 5 additions and 5 deletions

View File

@@ -138,8 +138,6 @@ class Theme():
# copy static files in the output dir
copy_tree(self.theme_path, os.path.abspath(self.path))
sigal_link = do_link(SIGAL_LINK, "sigal")
self.directory_list()
for dirpath in self.data.keys():
@@ -198,7 +196,7 @@ class Theme():
page = self.template.render(self.data[dirpath], paths=paths,
home_path=home_path, images=images,
albums=albums, theme=theme,
sigal_link=sigal_link).encode('utf-8')
sigal_link=SIGAL_LINK).encode('utf-8')
# save page
f = open(os.path.join(dirpath, INDEX_PAGE),"w")

View File

@@ -59,7 +59,8 @@
</div>
<footer class="sixteen columns">
<p>{% if author %}&copy; {{ author }} - {% endif %}Generated by {{ sigal_link }}. </p>
<p>{% if author %}&copy; {{ author }} - {% endif %}
Generated by <a href="{{ sigal_link }}">sigal</a>.</p>
</footer>
</div>

View File

@@ -57,7 +57,8 @@
</div>
<footer>
<p>{% if author %}&copy; {{ author }} - {% endif %}Generated by {{ sigal_link }}. </p>
<p>{% if author %}&copy; {{ author }} - {% endif %}
Generated by <a href="{{ sigal_link }}">sigal</a>.</p>
</footer>
</div>