summaryrefslogtreecommitdiffstats
path: root/themes/lv2/templates/base.html
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-21 01:12:26 -0500
committerDavid Robillard <d@drobilla.net>2014-11-21 01:12:26 -0500
commitd38c4094a1aef8be93218adeefe66b20308d96e3 (patch)
tree7f1d451dd1edade63567504c67b61bbc24d7c683 /themes/lv2/templates/base.html
downloadlv2site-d38c4094a1aef8be93218adeefe66b20308d96e3.tar.xz
Initial website Markdown conversion.
Diffstat (limited to 'themes/lv2/templates/base.html')
-rw-r--r--themes/lv2/templates/base.html192
1 files changed, 192 insertions, 0 deletions
diff --git a/themes/lv2/templates/base.html b/themes/lv2/templates/base.html
new file mode 100644
index 0000000..ae04fb1
--- /dev/null
+++ b/themes/lv2/templates/base.html
@@ -0,0 +1,192 @@
+<!DOCTYPE html>
+<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock %}"
+ {% if USE_OPEN_GRAPH %}
+ xmlns:og="http://ogp.me/ns#"
+ xmlns:fb="https://www.facebook.com/2008/fbml"{% endif %}>
+<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">
+
+ {% if 'liquid_tags.notebook' in PLUGINS %}
+ {% include 'includes/liquid_tags_nb_header.html' %}
+ {% endif %}
+
+ {# Favicons are a touchy subject. For reasoning for the following code, see: http://stackoverflow.com/a/23851464/872397 #}
+ {% if FAVICON %}
+ <link href="{{ SITEURL }}/{{ FAVICON }}" rel="icon">
+ {% endif %}
+ {% if FAVICON_IE %}
+ <!--[if IE]><link rel="shortcut icon" href="{{ SITEURL }}/{{ FAVICON_IE }}"><![endif]-->
+ {% endif %}
+ {% if TOUCHICON %}
+ <link rel="apple-touch-icon" href="{{ SITEURL }}/{{ TOUCHICON }}">
+ {% endif %}
+
+ {% block canonical_rel %}{% endblock %}
+
+ {% block meta %}
+ <meta name="author" content="{{ AUTHOR }}" />
+ {% endblock %}
+
+ <!-- Enable latex plugin -->
+ {% if article and article.latex %}
+ {{ article.latex }}
+ {% endif %}
+ {% if page and page.latex %}
+ {{ page.latex }}
+ {% endif %}
+
+
+ {# Open Graph tags #}
+ {% if USE_OPEN_GRAPH is not defined %}
+ {% set USE_OPEN_GRAPH = True %}
+ {% endif %}
+ {% if USE_OPEN_GRAPH %}
+ {% block opengraph %}
+ <!-- Open Graph tags -->
+ {% if OPEN_GRAPH_FB_APP_ID %}
+ <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/>
+ {% endif %}
+ <meta property="og:site_name" content="{{ SITENAME }}" />
+ <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 }}/{{ OPEN_GRAPH_IMAGE }}"/>
+ {% endif %}
+ {% endblock %}
+ {% endif %}
+
+ {# Twitter Cards tags #}
+ {% include 'includes/twitter_cards.html' %}
+
+ <!-- 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/pygments/{{ PYGMENTS_STYLE|default('native') }}.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"/>
+ {% 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"
+ title="{{ SITENAME }} ATOM Feed"/>
+ {% endif %}
+ {% if FEED_ALL_RSS %}
+ <link href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate"
+ title="{{ SITENAME }} RSS Feed"/>
+ {% endif %}
+
+ {% if tag and TAG_FEED_ATOM %}
+ <link href="{{ SITEURL }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate"
+ title="{{ SITENAME }} {{ tag }} ATOM Feed"/>
+ {% endif %}
+
+ {% if category and CATEGORY_FEED_ATOM %}
+ <link href="{{ SITEURL }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate"
+ title="{{ SITENAME }} {{ category }} ATOM Feed"/>
+ {% endif %}
+
+</head>
+<body>
+
+<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">
+ <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">
+ {% 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">
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% if DISPLAY_PAGES_ON_MENU %}
+ {% for p in PAGES %}
+ <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">
+ {{ p.menulabel|default(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 | capitalize }}</a>
+ </li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <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>
+</div> <!-- /.navbar -->
+
+<div class="container">
+ <div class="row">
+ {% if not HIDE_SIDEBAR or SHOW_ABOUTME %}
+ <div class="col-sm-9">
+ {% else %}
+ <div class="col-lg-12">
+ {% endif %}
+ {% block breadcrumbs %}
+ {% endblock %}
+
+ {% block content %}
+ {% endblock %}
+ </div>
+ {% if ABOUT_ME %}
+ <div class="col-sm-3" id="aboutme">
+ {% include 'includes/aboutme.html' %}
+ </div>
+ {% endif %}
+ {% 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="{{ SITEURL }}/theme/js/jquery.min.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/github-js.html' %}
+{% include 'includes/disqus_script.html' %}
+{% include 'includes/ga.html' %}
+{% include 'includes/piwik.html' %}
+</body>
+</html>