diff options
author | Justin Mayer <entroP@gmail.com> | 2013-09-12 23:09:49 -0700 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2013-09-12 23:09:49 -0700 |
commit | a217f4239e87d4d17c518e0ecdb7cd20a6752f12 (patch) | |
tree | d105653aace2d690f01eea6d8eae2ce36341d3ec /pelican-bootstrap3/templates/base.html | |
parent | b062b010425416601f9b623136d42cb88db09dc5 (diff) | |
parent | 8fc2dfd7e8fe863b9536f7b78a78856b97ed22b6 (diff) | |
download | pelican-themes-a217f4239e87d4d17c518e0ecdb7cd20a6752f12.tar.gz |
Merge pull request #127 from DandyDev/master
Added pelican-bootstrap3 theme
Diffstat (limited to 'pelican-bootstrap3/templates/base.html')
-rw-r--r-- | pelican-bootstrap3/templates/base.html | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/base.html b/pelican-bootstrap3/templates/base.html new file mode 100644 index 0000000..ab505eb --- /dev/null +++ b/pelican-bootstrap3/templates/base.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:og="http://ogp.me/ns#" + xmlns:fb="https://www.facebook.com/2008/fbml"> +<head> + <title>{% block title %}{{ SITENAME }}{% endblock %}</title> + <!-- Using the latest rendering mode for IE --> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <!-- Open Graph tags --> + {% if USE_OPEN_GRAPH is not defined %} + {% set USE_OPEN_GRAPH = True %} + {% endif %} + + {% if USE_OPEN_GRAPH %} + {% if OPEN_GRAPH_FB_APP_ID %} + <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/> + {% endif %} + {% if article %} + <meta property="og:type" content="article"/> + <meta property="og:title" content="{{ article.title }}"/> + <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/> + <meta property="og:description" content="{{ article.summary|striptags }}"/> + {% elif page %} + <meta property="og:type" content="article"/> + <meta property="og:title" content="{{ page.title }}"/> + <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/> + {% else %} + <meta property="og:type" content="website"/> + <meta property="og:title" content="{{ SITENAME }}"/> + <meta property="og:url" content="{{ SITEURL }}"/> + <meta property="og:description" content="{{ SITENAME }}"/> + {% if OPEN_GRAPH_IMAGE %} + <meta property="og:image" + content="{{ SITEURL }}/static/{{ OPEN_GRAPH_IMAGE }}"/> + {% endif %} + {% endif %} + + {% endif %} + <!-- Bootstrap --> + {% if BOOTSTRAP_THEME %} + <link rel="stylesheet" href="{{ SITEURL }}/theme/css/bootstrap.{{ BOOTSTRAP_THEME }}.min.css" type="text/css"/> + {% else %} + <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"> + <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 FEED_ALL_ATOM %} + <link href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" + title="{{ SITENAME }} ATOM Feed"/> + {% endif %} + {% if FEED_ALL_RSS %} + <link href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" type="application/atom+xml" rel="alternate" + title="{{ SITENAME }} RSS Feed"/> + {% endif %} + + {% include 'includes/ga.html' %} +</head> +<body> +<nav class="navbar navbar-default 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"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <a href="{{ SITEURL }}" class="navbar-brand">{{ SITENAME }}</a> + </div> + <div class="collapse navbar-collapse navbar-ex1-collapse"> + <ul class="nav navbar-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 %} + {% if DISPLAY_CATEGORIES_ON_MENU %} + {% for cat, null in categories %} + <li {% if cat == category %}class="active"{% endif %}> + <a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</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> + </ul> + </div> + <!-- /.navbar-collapse --> + </div> +</nav> +<!-- /.navbar --> +<div class="container"> + <div class="row"> + <div class="col-lg-9"> + {% block content %} + {% endblock %} + </div> + <div class="col-lg-3 well well-sm" id="sidebar"> + {% include 'includes/sidebar.html' %} + </div> + </div> +</div> + +<!-- 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' %} +</body> +</html>
\ No newline at end of file |