aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Jung-Loddenkemper <alexander.julo@googlemail.com>2012-03-18 20:04:02 +0100
committerAlexander Jung-Loddenkemper <alexander.julo@googlemail.com>2012-03-18 20:04:02 +0100
commitf3060b4474f6364537b500713c4883ddf4002d9e (patch)
treec703ba271b4c7b960f1cfd011063c023f5db19a2
parent6d2edf7db1bc74a1bb3b56b1d1c547aa01c3d79d (diff)
downloadpelican-themes-f3060b4474f6364537b500713c4883ddf4002d9e.tar.gz
merged analytics and changes to make bootlex xhtml strict
-rw-r--r--bootlex/templates/analytics.html22
-rw-r--r--bootlex/templates/article.html4
-rw-r--r--bootlex/templates/base.html18
-rw-r--r--bootlex/templates/index.html6
4 files changed, 26 insertions, 24 deletions
diff --git a/bootlex/templates/analytics.html b/bootlex/templates/analytics.html
index 86c297c..2d7b5f2 100644
--- a/bootlex/templates/analytics.html
+++ b/bootlex/templates/analytics.html
@@ -1,11 +1,15 @@
{% if GOOGLE_ANALYTICS %}
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}");
- pageTracker._trackPageview();
- } catch(err) {}</script>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+</script>
{% endif %} \ No newline at end of file
diff --git a/bootlex/templates/article.html b/bootlex/templates/article.html
index a407af8..5a533fe 100644
--- a/bootlex/templates/article.html
+++ b/bootlex/templates/article.html
@@ -3,9 +3,9 @@
{% block content %}
<div id="content">
<div class="header">
- <h1>{{ article.title }}</h2>
+ <h1>{{ article.title }}</h1>
</div>
- <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</small></p>
+ <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</span></small></p>
<div class="entry-content">
{{ article.content }}
</div><!-- /.entry-content -->
diff --git a/bootlex/templates/base.html b/bootlex/templates/base.html
index a48f00b..bbb8797 100644
--- a/bootlex/templates/base.html
+++ b/bootlex/templates/base.html
@@ -1,15 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
-<html lang="{{ DEFAULT_LANG }}">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ DEFAULT_LANG }}">
<head>
{% block head %}
<title>{% block title %}{% endblock title %} - {{ SITENAME }}</title>
- <meta http-equiv="content-type" content="charset=utf-8" />
- <link href="http://fonts.googleapis.com/css?family=Arimo:400,700|Inika" rel="stylesheet" type="text/css">
- <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/bootstrap.css">
- <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/pastie.css">
+ <link href="http://fonts.googleapis.com/css?family=Arimo:400,700|Inika" rel="stylesheet" type="text/css" />
+ <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/bootstrap.css" />
+ <link rel="stylesheet" type="text/css" href="{{ SITEURL }}theme/pastie.css" />
{% endblock head %}
+
+ {% include 'analytics.html' %}
+
</head>
<body>
@@ -63,7 +64,7 @@
</div>
</div>
- <hr>
+ <hr />
<div class="row">
<div class="span12">
@@ -73,8 +74,5 @@
</div><!-- /#contentinfo -->
</div>
</div>
-
- {% include 'analytics.html' %}
-
</body>
</html>
diff --git a/bootlex/templates/index.html b/bootlex/templates/index.html
index 8e56370..9da666a 100644
--- a/bootlex/templates/index.html
+++ b/bootlex/templates/index.html
@@ -3,7 +3,7 @@
{% block content %}
<div id="content">
{% block content_title %}
-<h1>Blog</h2>
+<h1>Blog</h1>
{% endblock %}
<ul class="unstyled">
@@ -13,7 +13,7 @@
<div class="header">
<h2>{{ article.title }}</h2>
</div>
- <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</small></p>
+ <p class="meta"><small><span>{% if article.author %}<a href="{{ SITEURL }}author/{{ article.author }}/">{{ article.author }}</a> - {% endif %}</span><span>{{ article.locale_date }}</span> - <span class="tags">{% if article.tags %}{% for tag in article.tags %}<a href="/tag/{{ tag }}/">{{ tag }}</a>{% if not loop.last %}, {% endif %}{% endfor %}{% endif %}</span></small></p>
<div class="entry-content">
{{ article.summary }}
</div><!-- /.entry-content -->
@@ -25,7 +25,7 @@
</div>
</li>
- <hr>
+ <li><hr /></li>
{% endfor %}