pelican-mg/templates/page.html

38 lines
1.4 KiB
HTML
Raw Normal View History

2014-12-29 22:08:56 +00:00
{% extends "base.html" %}
{% block title %}{{ page.title|capitalize }}{% endblock %}
{% block description %}{% endblock %}
2015-01-01 20:06:34 +00:00
{% block seo %}
<meta property="og:title" content="{{ page.title|capitalize }}" />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}" />
<meta name="twitter:url" content="{{ SITEURL }}/{{ page.url }}" />
2015-01-09 18:56:22 +00:00
<meta itemprop="url" content="{{ SITEURL }}/{{ page.url }}"/>
2015-01-01 20:06:34 +00:00
{% if page.image %}
<meta property="og:image" content="{{ page.image }}" />
<meta name="twitter:image" content="{{ page.image }}" />
2015-01-09 18:56:22 +00:00
<meta itemprop="image" content="{{ page.image }}">
2015-01-01 23:56:46 +00:00
{% elif META_IMAGE %}
<meta property="og:image" content="{{ META_IMAGE }}" />
<meta property="og:image:type" content="{{ META_IMAGE_TYPE }}" />
<meta name="twitter:image" content="{{ META_IMAGE }}" />
2015-01-09 18:56:22 +00:00
<meta itemprop="image" content="{{ SITEURL }}/{{ META_IMAGE }}"/>
2015-01-01 20:06:34 +00:00
{% endif %}
{% if page.summary %}
<meta property="og:description" content="{{ page.summary|striptags }}" />
<meta name="twitter:description" content="{{ page.summary|striptags }}" />
2015-01-09 18:56:22 +00:00
<meta itemprop="description" content="{{ page.summary|striptags }}"/>
2015-01-01 20:06:34 +00:00
{% endif %}
{% endblock %}
2017-08-10 16:30:29 +00:00
{% block content %}
2014-12-29 22:08:56 +00:00
<div class="uk-width-medium-4-5">
2015-01-09 18:56:22 +00:00
<h1 class="uk-heading-large" itemprop="name">{{ page.title }}</h1>
2017-08-10 16:30:29 +00:00
2014-12-29 22:08:56 +00:00
{% block page_content %}
{% endblock %}
{{ page.content }}
</div>
{% endblock %}