Skip to content

Commit

Permalink
changed the default and simple themes to use {{config.theme}} instead…
Browse files Browse the repository at this point in the history
… of hardcoded vaules ( so if a user changes the name of a theme directory things dont break )
  • Loading branch information
Brandon Holtsclaw authored and Arachnid committed Feb 25, 2010
1 parent 297dae0 commit f828723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions themes/default/base.html
Expand Up @@ -3,12 +3,13 @@
<head>
<title>{% block title %}Bloggart{% endblock %}</title>
{% block style %}
<link rel="stylesheet" type="text/css" media="screen" href="{{config.url_prefix}}/static/default/css/screen.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{config.url_prefix}}/static/{{config.theme}}/css/screen.css" />
{% endblock %}
{% if config.highlighting_style %}
<link rel="stylesheet" type="text/css" media="screen" href="{{config.url_prefix}}/static/default/css/pygments_{{config.highlighting_style}}.css" />
<link rel="stylesheet" type="text/css" media="screen" href="{{config.url_prefix}}/static/{{config.theme}}/css/pygments_{{config.highlighting_style}}.css" />
{% endif %}
<link rel="alternate" type="application/atom+xml" href="{{config.url_prefix}}/feeds/atom.xml" />
<link rel="SHORTCUT ICON" href="{{config.url_prefix}}/static/{{config.theme}}/favicon.ico"/>
{% block head %}{% endblock %}
</head>
<body>
Expand All @@ -29,7 +30,7 @@ <h1 id="logo-text"><a href="{{config.url_prefix}}/" title="">{{config.blog_name}
<input type="hidden" name="cof" value="FORID:11" />
<input type="hidden" name="ie" value="UTF-8" />
<input class="tbox" type="text" name="q" size="31" />
<input class="btn" type="image" name="sa" value="Search" src="{{config.url_prefix}}/static/default/images/search.gif" alt="Search" />
<input class="btn" type="image" name="sa" value="Search" src="{{config.url_prefix}}/static/{{config.theme}}/images/search.gif" alt="Search" />
</p>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=quick-search&lang=en"></script>
Expand Down
2 changes: 1 addition & 1 deletion themes/simple/base.html
Expand Up @@ -5,7 +5,7 @@
<head>
<title>>{% block title %}Bloggart{% endblock %}</title>
<link rel="stylesheet" type="text/css" media="screen"
href="/static/simple/css/screen.css" />
href="/static/{{config.theme}}/css/screen.css" />
<link rel="alternate" type="application/atom+xml" href="/feeds/atom.xml" />
{% block head %}{% endblock %}
</head>
Expand Down

0 comments on commit f828723

Please sign in to comment.