mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-21 16:02:40 +00:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ page.title|capitalize }}{% endblock %}
|
|
{% block description %}{% endblock %}
|
|
|
|
{% 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 }}" >
|
|
<meta itemprop="url" content="{{ SITEURL }}/{{ page.url }}">
|
|
{% if page.image %}
|
|
<meta property="og:image" content="{{ page.image }}" >
|
|
<meta name="twitter:image" content="{{ page.image }}" >
|
|
<meta itemprop="image" content="{{ page.image }}">
|
|
{% 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 }}" >
|
|
<meta itemprop="image" content="{{ SITEURL }}/{{ META_IMAGE }}">
|
|
{% endif %}
|
|
{% if page.summary %}
|
|
<meta property="og:description" content="{{ page.summary|striptags|escape }}" >
|
|
<meta name="twitter:description" content="{{ page.summary|striptags|escape }}" >
|
|
<meta itemprop="description" content="{{ page.summary|striptags|escape }}">
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<article class="uk-article uk-width-4-5@m">
|
|
<h1 class="uk-heading-primary uk-article-title" itemprop="name">{{ page.title }}</h1>
|
|
<div class="uk-article-content">
|
|
{{ page.content }}
|
|
</div>
|
|
</article>
|
|
{% endblock %}
|