diff options
Diffstat (limited to 'pelican-bootstrap3/templates/base.html')
-rw-r--r-- | pelican-bootstrap3/templates/base.html | 80 |
1 files changed, 41 insertions, 39 deletions
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html index 580db39..9be2ecb 100644 --- a/pelican-bootstrap3/templates/base.html +++ b/pelican-bootstrap3/templates/base.html @@ -8,13 +8,17 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + {% if FAVICON %} + <link href="{{ SITEURL }}/{{ FAVICON }}" rel="icon"> + {% endif %} - <!-- Open Graph tags --> + {# Open Graph tags #} {% if USE_OPEN_GRAPH is not defined %} {% set USE_OPEN_GRAPH = True %} {% endif %} - {% if USE_OPEN_GRAPH %} + <!-- Open Graph tags --> {% if OPEN_GRAPH_FB_APP_ID %} <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/> {% endif %} @@ -35,10 +39,10 @@ {% if OPEN_GRAPH_IMAGE %} <meta property="og:image" content="{{ SITEURL }}/static/{{ OPEN_GRAPH_IMAGE }}"/> + {% endif %} {% endif %} - {% endif %} - {% endif %} + <!-- Bootstrap --> {% if BOOTSTRAP_THEME %} <link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.{{ BOOTSTRAP_THEME }}.min.css" type="text/css"/> @@ -46,7 +50,8 @@ <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/pygments.css" rel="stylesheet"> + + <link href="{{ SITEURL }}/theme/css/pygments/{{ PYGMENTS_STYLE|default('native') }}.css" rel="stylesheet"> {% if DOCUTIL_CSS %} <link href="{{ SITEURL }}/theme/css/html4css1.css" rel="stylesheet"> {% endif %} @@ -54,8 +59,9 @@ <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="http://code.jquery.com/jquery.js"></script> + {% if CUSTOM_CSS %} + <link href="{{ SITEURL }}/{{ CUSTOM_CSS }}" rel="stylesheet"> + {% endif %} {% if FEED_ALL_ATOM %} <link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" @@ -66,10 +72,10 @@ title="{{ SITENAME }} RSS Feed"/> {% endif %} - {% include 'includes/ga.html' %} </head> <body> -<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> + +<div class="navbar {% if BOOTSTRAP_NAVBAR_INVERSE %}navbar-inverse{% else %}navbar-default{% endif %} navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> @@ -78,7 +84,10 @@ <span class="icon-bar"></span> <span class="icon-bar"></span> </button> - <a href="{{ SITEURL }}" class="navbar-brand">{{ SITENAME }}</a> + <a href="{{ SITEURL }}/" class="navbar-brand"> + {% if SITELOGO %}<img src="{{ SITEURL }}/{{ SITELOGO }}" width="{{ SITELOGO_SIZE }}"/> {% endif %} + {% if not HIDE_SITENAME %}{{ SITENAME }}{% endif %} + </a> </div> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav"> @@ -101,53 +110,46 @@ {% endif %} </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL | default('archives.html') }}"><i class="icon-th-list"></i>Archives</a></li> + <li><a href="{{ SITEURL }}/{{ ARCHIVES_URL | default('archives.html') }}"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li> </ul> </div> <!-- /.navbar-collapse --> </div> -</nav> -<!-- /.navbar --> +</div> <!-- /.navbar --> + <div class="container"> <div class="row"> - <div class="col-lg-9"> - {% block content %} - {% endblock %} + {% if not HIDE_SIDEBAR %} + <div class="col-sm-9"> + {% else %} + <div class="col-lg-12"> + {% endif %} + {% block breadcrumbs %} + {% endblock %} + + {% block content %} + {% endblock %} </div> - <div class="col-lg-3 well well-sm" id="sidebar"> + {% if not HIDE_SIDEBAR %} + <div class="col-sm-3 well well-sm" id="sidebar"> {% include 'includes/sidebar.html' %} </div> + {% endif %} </div> </div> {% include 'includes/footer.html' %} +<script src="http://code.jquery.com/jquery.js"></script> + <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script> <!-- 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 %} +{% include 'includes/github-js.html' %} +{% include 'includes/disqus_script.html' %} +{% include 'includes/ga.html' %} +{% include 'includes/piwik.html' %} </body> </html> |