diff options
Diffstat (limited to 'pelican-bootstrap3/templates/base.html')
-rw-r--r-- | pelican-bootstrap3/templates/base.html | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index aea298d..580db39 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -20,9 +20,9 @@ {% endif %} {% if article %} <meta property="og:type" content="article"/> - <meta property="og:title" content="{{ article.title }}"/> + <meta property="og:title" content="{{ article.title|striptags }}"/> <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/> - <meta property="og:description" content="{{ article.summary|striptags|e }}"/> + <meta property="og:description" content="{{ article.summary|striptags }}"/> {% elif page %} <meta property="og:type" content="article"/> <meta property="og:title" content="{{ page.title }}"/> @@ -46,11 +46,16 @@ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.min.css" type="text/css"/> {% endif %} <link href="{{ SITEURL }}/theme/css/font-awesome.min.css" rel="stylesheet"> - <link href="{{ SITEURL }}/theme/css/bootstrap-glyphicons.css" rel="stylesheet"> <link href="{{ SITEURL }}/theme/css/pygments.css" rel="stylesheet"> + {% if DOCUTIL_CSS %} + <link href="{{ SITEURL }}/theme/css/html4css1.css" rel="stylesheet"> + {% endif %} + {% if TYPOGRIFY %} + <link href="{{ SITEURL }}/theme/css/typogrify.css" rel="stylesheet"> + {% endif %} <link rel="stylesheet" href="{{ SITEURL }}/theme/css/style.css" type="text/css"/> <!-- JavaScript plugins (requires jQuery) --> - <script src="//code.jquery.com/jquery.min.js"></script> + <script src="http://code.jquery.com/jquery.js"></script> {% if FEED_ALL_ATOM %} <link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" @@ -81,20 +86,22 @@ <li><a href="{{ link }}">{{ title }}</a></li> {% endfor %} {% if DISPLAY_PAGES_ON_MENU %} - {% for page in PAGES %} - <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li> - {% endfor %} + {% for p in PAGES %} + <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}"> + {{ p.title }} + </a></li> + {% endfor %} {% endif %} {% if DISPLAY_CATEGORIES_ON_MENU %} {% for cat, null in categories %} <li {% if cat == category %}class="active"{% endif %}> - <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a> + <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat | capitalize }}</a> </li> {% endfor %} {% endif %} </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ SITEURL }}/archives.html"><i class="icon-th-list"></i>Archives</a></li> + <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL | default('archives.html') }}"><i class="icon-th-list"></i>Archives</a></li> </ul> </div> <!-- /.navbar-collapse --> @@ -112,6 +119,7 @@ </div> </div> </div> +{% include 'includes/footer.html' %} <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script> @@ -119,5 +127,27 @@ <!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) --> <script src="{{ SITEURL }}/theme/js/respond.min.js"></script> {% include 'includes/disqus_script.html' %} + +{% if PIWIK_SITE_ID and PIWIK_URL %} + {% if PIWIK_SSL_URL is not defined %} + {% set PIWIK_SSL_URL = PIWIK_URL %} + {% endif %} +<!-- Piwik --> +<script type="text/javascript"> + var _paq = _paq || []; + _paq.push(["trackPageView"]); + _paq.push(["enableLinkTracking"]); + + (function() { + var u=(("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/"); + _paq.push(["setTrackerUrl", u+"piwik.php"]); + _paq.push(["setSiteId", "{{ PIWIK_SITE_ID }}"]); + var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; + g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); + })(); +</script> +<!-- End Piwik Code --> +{% endif %} + </body> </html> |