aboutsummaryrefslogtreecommitdiffstats
path: root/pelican-bootstrap3/templates/page.html
diff options
context:
space:
mode:
authorDaan Debie <d.debie@thenewmotion.com>2014-08-21 18:45:11 +0200
committerDaan Debie <d.debie@thenewmotion.com>2014-08-21 18:45:11 +0200
commit352965e0445417584f6c3fb3e8fef5d87db4f37f (patch)
treedb9a4e7f5b760da37c0b506a450ca809496fbcc7 /pelican-bootstrap3/templates/page.html
parenta928687830876af8c919606bae47195af65bc82d (diff)
downloadpelican-themes-352965e0445417584f6c3fb3e8fef5d87db4f37f.zip
pelican-themes-352965e0445417584f6c3fb3e8fef5d87db4f37f.tar.gz
pelican-themes-352965e0445417584f6c3fb3e8fef5d87db4f37f.tar.bz2
Updated pelican-bootstrap3 to the latest version
Diffstat (limited to 'pelican-bootstrap3/templates/page.html')
-rw-r--r--pelican-bootstrap3/templates/page.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/page.html b/pelican-bootstrap3/templates/page.html
index 179b2d7..f8757fa 100644
--- a/pelican-bootstrap3/templates/page.html
+++ b/pelican-bootstrap3/templates/page.html
@@ -1,11 +1,45 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} - {{ SITENAME }}{% endblock %}
+{% block html_lang %}{{ page.lang }}{% endblock %}
+{% block meta %}
+ {% if page.author %}
+ <meta name="author" content="{{ page.author }}" />
+ {% else %}
+ <meta name="author" content="{{ AUTHOR }}" />
+ {% endif %}
+ {% if page.summary %}
+ <meta name="description" content="{{ page.summary|striptags|escape }}" />
+ {% endif %}
+{% endblock %}
+{% block opengraph %}
+ {% 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="article"/>
+ <meta property="og:title" content="{{ page.title|striptags|escape }}"/>
+ <meta property="og:url" content="{{ SITEURL }}/{{ page.url }}"/>
+ <meta property="og:description" content="{{ page.summary|striptags|escape }}" />
+ {% if page.og_image %}
+ <meta property="og:image"
+ content="{{ SITEURL }}/{{ page.og_image }}"/>
+ {% elif OPEN_GRAPH_IMAGE %}
+ <meta property="og:image"
+ content="{{ SITEURL }}/{{ OPEN_GRAPH_IMAGE }}"/>
+ {% endif %}
+{% endblock %}
+
+{% block canonical_rel %}
+<link rel="canonical" href="{{ SITEURL }}/{{ page.url }}">
+{% endblock %}
{% block breadcrumbs %}
{% if DISPLAY_BREADCRUMBS %}
<ol class="breadcrumb">
<li><a href="{{ SITEURL }}" title="{{ SITENAME }}"><i class="fa fa-home fa-lg"></i></a></li>
+ {% if page.url %}
<li class="active">{{ page.title }}</li>
+ {% endif %}
</ol>
{% endif %}
{% endblock %}
@@ -22,6 +56,9 @@
{% endif %}
<div class="entry-content">
{{ page.content }}
+ {% if page.comments == 'enabled' %}
+ {% include 'includes/comments.html' %}
+ {% endif %}
</div>
</section>
{% endblock %}