This commit fixes an issue with users supplying their own custom `ARCHIVES_URL` setting in their settings file while using the tuxlite-tbs theme. The issue is that the `base.html` template didn't take the `ARCHIVES_URL` variable into account, and therefore ignores is. This causes problems when users want a custom archives URL. This also fixes another part of the issue in the `archives.html` template, in which article URLs were relative (not absolute) which causes breakage when linking to articles. This commit fixes all the above problems.
143 lines
4.3 KiB
HTML
143 lines
4.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{% block windowtitle %}{{ SITENAME }}{% endblock %}</title>
|
|
<meta name="description" content="">
|
|
<meta name="author" content="{{ AUTHOR }}">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
|
|
<!--[if lt IE 9]>
|
|
<script src="{{ SITEURL }}/theme/html5.js"></script>
|
|
<![endif]-->
|
|
|
|
<!-- Le styles -->
|
|
<link href="{{ SITEURL }}/theme/bootstrap.min.css" rel="stylesheet">
|
|
<link href="{{ SITEURL }}/theme/bootstrap.min.responsive.css" rel="stylesheet">
|
|
<link href="{{ SITEURL }}/theme/local.css" rel="stylesheet">
|
|
<link href="{{ SITEURL }}/theme/pygments.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="navbar">
|
|
<div class="navbar-inner">
|
|
<div class="container">
|
|
|
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</a>
|
|
|
|
<a class="brand" href="{{ SITEURL }}">{{ SITENAME }}</a>
|
|
|
|
<div class="nav-collapse">
|
|
<ul class="nav">
|
|
{% for title, link in MENUITEMS %}
|
|
<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 %}
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="content">
|
|
<div class="row">
|
|
|
|
<div class="span9">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<div class="span3">
|
|
|
|
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
|
|
<ul class="nav nav-list">
|
|
<li class="nav-header">
|
|
Site
|
|
</li>
|
|
|
|
<li><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">Archives</a>
|
|
<li><a href="{{ SITEURL }}/tags.html">Tags</a>
|
|
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" rel="alternate">Atom feed</a></li>
|
|
{% if FEED_RSS %}
|
|
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" rel="alternate">RSS feed</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
{% if categories %}
|
|
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
|
|
<ul class="nav nav-list">
|
|
<li class="nav-header">
|
|
Categories
|
|
</li>
|
|
|
|
{% for cat, null in categories %}
|
|
<li><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
{% if LINKS %}
|
|
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
|
|
<ul class="nav nav-list">
|
|
<li class="nav-header">
|
|
Links
|
|
</li>
|
|
|
|
{% for name, link in LINKS %}
|
|
<li><a href="{{ link }}">{{ name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
|
|
|
|
{% if SOCIAL %}
|
|
<div class="social">
|
|
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
|
|
<ul class="nav nav-list">
|
|
<li class="nav-header">
|
|
Social
|
|
</li>
|
|
|
|
{% for name, link in SOCIAL %}
|
|
<li><a href="{{ link }}">{{ name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div> {# End span3 #}
|
|
</div> {# End row #}
|
|
</div> {# End content #}
|
|
|
|
<footer>
|
|
<br />
|
|
<p><a href="{{ SITEURL }}">{{ SITENAME }}</a> © {{ AUTHOR }} 2012</p>
|
|
</footer>
|
|
|
|
</div> <!-- /container -->
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
|
<script src="http://twitter.github.com/bootstrap/assets/js/bootstrap-collapse.js"></script>
|
|
{% include "analytics.html" %}
|
|
{% include "github.html" %}
|
|
</body>
|
|
</html>
|