diff options
author | David Robillard <d@drobilla.net> | 2014-11-21 01:12:26 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-21 01:12:26 -0500 |
commit | d38c4094a1aef8be93218adeefe66b20308d96e3 (patch) | |
tree | 7f1d451dd1edade63567504c67b61bbc24d7c683 /themes/lv2/templates/article.html | |
download | lv2site-d38c4094a1aef8be93218adeefe66b20308d96e3.tar.xz |
Initial website Markdown conversion.
Diffstat (limited to 'themes/lv2/templates/article.html')
-rw-r--r-- | themes/lv2/templates/article.html | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/themes/lv2/templates/article.html b/themes/lv2/templates/article.html new file mode 100644 index 0000000..fcfab20 --- /dev/null +++ b/themes/lv2/templates/article.html @@ -0,0 +1,96 @@ +{% extends "base.html" %} +{% block title %}{{ article.title|striptags }} - {{ SITENAME }}{% endblock %} +{% block html_lang %}{{ article.lang }}{% endblock %} +{% block meta %} + {% if article.author %} + <meta name="author" content="{{ article.author }}" /> + {% else %} + <meta name="author" content="{{ AUTHOR }}" /> + {% endif %} + {% if article.tags %} + <meta name="keywords" content="{{ article.tags|join(',')|striptags }}" /> + {% endif %} + {% if article.summary %} + <meta name="description" content="{{ article.summary|striptags|escape }}" /> + {% endif %} +{% endblock %} +{% block opengraph %} + {% if OPEN_GRAPH_FB_APP_ID %} + <meta property="fb:app_id" content="{{ OPEN_GRAPH_FB_APP_ID }}"/> + <meta property="og:site_name" content="{{ SITENAME }}" /> + <meta property="og:type" content="article"/> + <meta property="og:title" content="{{ article.title|striptags|escape }}"/> + <meta property="og:url" content="{{ SITEURL }}/{{ article.url }}"/> + <meta property="og:description" content="{{ article.summary|striptags|escape }}"/> + <meta property="article:published_time" content="{{ article.date.strftime("%Y-%m-%d") }}" /> + {% if article.category %} + <meta property="article:section" content="{{ article.category }}" /> + {% endif %} + {% for tag in article.tags %} + <meta property="article:tag" content="{{ tag }}" /> + {% endfor %} + {% if article.author %} + <meta property="article:author" content="{{ article.author }}" /> + {% elif AUTHOR %} + <meta property="article:author" content="{{ AUTHOR }}" /> + {% endif %} + {% if article.og_image %} + <meta property="og:image" + content="{{ SITEURL }}/{{ article.og_image }}"/> + {% elif OPEN_GRAPH_IMAGE %} + <meta property="og:image" + content="{{ SITEURL }}/{{ OPEN_GRAPH_IMAGE }}"/> + {% endif %} + {% endif %} +{% endblock %} + +{% block canonical_rel %} +<link rel="canonical" href="{{ SITEURL }}/{{ article.url }}"> +{% endblock %} + +{% block breadcrumbs %} + {% if DISPLAY_BREADCRUMBS %} + {% if DISPLAY_CATEGORY_IN_BREADCRUMBS %} + <ol class="breadcrumb"> + <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li> + <li><a href="{{ SITEURL }}/{{ article.category.url }}" title="{{ article.category }}">{{ article.category }}</a></li> + <li class="active">{{ article.title }}</li> + </ol> + {% else %} + <ol class="breadcrumb"> + <li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li> + <li class="active">{{ article.title }}</li> + </ol> + {% endif %} + {% endif %} +{% endblock %} + +{% block content %} + <section id="content"> + <article> + <header class="page-header"> + <h1> + <a href="{{ SITEURL }}/{{ article.url }}" + rel="bookmark" + title="Permalink to {{ article.title|striptags }}"> + {{ article.title }} + </a> + </h1> + </header> + <div class="entry-content"> + <div class="panel"> + <div class="panel-body"> + {% include "includes/article_info.html" %} + </div> + </div> + {{ article.content }} + </div> + <!-- /.entry-content --> + {% include 'includes/related-posts.html' %} + {% include 'includes/series.html' %} + {% include 'includes/addthis.html' %} + {% include 'includes/comments.html' %} + </article> + </section> + +{% endblock %} |