From b2912b4bd113bf8630a69e2c60661e32fa9bf36d Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 24 Jun 2009 18:44:11 +0200 Subject: [PATCH] Add jquery for the exodus site and special CSS for the homepage. --- plugin/theme/exodus.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugin/theme/exodus.py b/plugin/theme/exodus.py index f8d9bb4..12354e2 100644 --- a/plugin/theme/exodus.py +++ b/plugin/theme/exodus.py @@ -1,4 +1,3 @@ -# -*- coding: iso-8859-1 -*- """ MoinMoin - modern theme @@ -12,6 +11,17 @@ class Theme(SiteTheme): name = "exodus" + def html_head(self, d): + html = [ + SiteTheme.html_head(self, d), + #self.theme_script('jquery-1.3.2.min'), + self.theme_script('jquery-1.3.2'), + ] + if d['page'].page_name == 'Site': + html.append(self.theme_script('homepage')) + + return '\n'.join(html) + def execute(request): """ Generate and return a theme object -- 2.30.2