Browse code

improved page title generation

Brandon Mathis authored on 03/07/2011 at 22:09:56
Showing 1 changed files
... ...
@@ -4,11 +4,7 @@
4 4
 <!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" manifest="default.appcache?v=1" lang="en"><!--<![endif]-->
5 5
 <head>
6 6
   <meta charset="utf-8">
7
-  {% if page.title %}
8
-    <title>{{site.title}}: {{page.title}}{% if site.author %} - {{ site.author }}{% endif %}</title>
9
-  {% else %}
10
-    <title>{{site.title}}{% if site.author %} - {{ site.author }}{% endif %}</title>
11
-  {% endif %}
7
+  <title>{{site.title}}{% if page.title %}: {{page.title}}{% endif %}</title>
12 8
   <meta name="author" content="{{site.author}}">
13 9
   {% if page.description %}
14 10
     <meta name="description" content="{{page.description}}"/>