aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random/templates/base.html
diff options
context:
space:
mode:
Diffstat (limited to 'dev-random/templates/base.html')
-rw-r--r--dev-random/templates/base.html40
1 files changed, 15 insertions, 25 deletions
diff --git a/dev-random/templates/base.html b/dev-random/templates/base.html
index 1424ca4..0df9663 100644
--- a/dev-random/templates/base.html
+++ b/dev-random/templates/base.html
@@ -15,48 +15,38 @@
title="{{ SITENAME }} — Flux RSS"
href="{{ SITEURL }}/{{ FEED_RSS }}" />
{% endif %}
- <script src="{{ SITEURL }}/theme/js/hex2ascii.js"></script>
<!--[if lte IE 8]><script src="{{ SITEURL }}/theme/js/html5shiv.js"></script><![endif]-->
+ <meta name="viewport" content="initial-scale=1.0, width=device-width, user-scalable=no" />
{% if GOOGLE_ANALYTICS %}
<script type="text/javascript">
- // Google analytics:
- 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"));
- function enableGA() {
- try {
- var pageTracker = _gat._getTracker("{{ GOOGLE_ANALYTICS }}");
- pageTracker._trackPageview();
- _gaq.push(['_setCustomVar',
- 1, // This custom var is set to slot #1. Required parameter.
- 'User-Agent',
- navigator.userAgent
- ]);
- console.log('GA loaded');
- } catch(err) {
- setTimeout(500,'enableGA()');
- console.log('Waiting GA ...');
- }
- }
- setTimeout('enableGA()', 200);
+ 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 %}
{% endblock headers %}
</head>
- <body>
+ <body>
<div class="page">
- <header class="head">
+ <header class="page-head">
<h1>
<a href="{{ SITEURL }}/index.html">{{ SITENAME }}</a>
</h1>
</header>
- <div class="main">
- {% include "includes/sidebar.html" %}
+ <div class="page-content">
{% block content %}
{% endblock content %}
</div>
+ {% include "includes/sidebar.html" %}
- <footer class="foot">
+ <footer class="page-footer">
<p> {{ FOOTER_TEXT or 'Powered by <a href="http://pelican.readthedocs.org">Pelican</a>' }}</p>
{% if GITHUB_URL %}<p><a id="github-link" href="{{ GITHUB_URL}}">Fork me on Github</a></p>{% endif %}
</footer>