forked from mattmakai/fullstackpython.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticle.html
More file actions
67 lines (62 loc) · 2.62 KB
/
article.html
File metadata and controls
67 lines (62 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{% extends "base.html" %}
{% block meta_header %}{% if article and article.meta %}
<meta name="description" content="{{ article.meta }}">
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ article.title }}" />
<meta name="twitter:image" content="https://www.fullstackpython.com{{ article.headerimage }}" />
<meta name="twitter:site" content="@fullstackpython" />
<meta name="twitter:creator" content="@mattmakai" />
<meta property="og:url" content="{{ SITEURL }}/blog/{{ article.slug }}.html" />
<meta property="og:title" content="{{ article.title }}" />
<meta property="og:description" content="{{ article.meta }} Great post on fullstackpython.com!" />
<meta property="og:image" content="{{ SITEURL }}{{ article.headerimage }}" />
<link rel="canonical" href="https://www.fullstackpython.com/blog/{{ article.slug }}.html" />
{% endif %}{% endblock %}
{% block title %}{% if article %}{{ article.title }} - {% endif %}{% endblock %}
{% block css %}<style>{% include "css/base.css" %}{% include "css/panel.css" %}{% include "css/page-article.css" %}{% include "css/responsive.css" %}</style>{% if article and article.slug == "maps-django-web-applications-projects-mapbox" %}
<script src='https://api.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.css' rel='stylesheet' />
{% endif %}{% endblock %}
{% block content %}
{% if article %}
<div class="row">
<div class="c12">
<h1 style="font-size: 36px;">{{ article.title }}</h1>
<div style="font-size:12px;color:#666;margin:0 0 10px">
{% if article.modified != article.date %}
Post updated by <a href="/about-author.html">Matt Makai</a> on
{{ article.modified.strftime('%B %d, %Y') }}. Originally posted
on {{ article.date.strftime('%B %d, %Y') }}.
{% else %}
Posted by <a href="/about-author.html">Matt Makai</a> on
{{ article.date.strftime('%B %d, %Y') }}.
{% endif %}
</div>
</div>
</div>
<div class="row">
{% if article.category == "talk" %}
<div class="c12">
{% else %}
<div class="c9">
{% endif %}
{{ article.content }}
{% endif %}
</div>
{% if article.category == "talk" %}
{% else %}
<div class="c3">
{% include "article-sidebar.html" %}
</div>
{% endif %}
</div>
{% endblock %}
{% block lower_banner %}
<div style="margin: 0 0 12px;background-color: #22B24C;">
<div class="cn">
<p class="banner sns">
<a href="https://training.talkpython.fm/courses/explore_ansible/introduction-to-ansible-with-python" style="color: #fff">Learn to deploy and configure servers with Ansible in my latest video course</a>!
</p>
</div>
</div>
{% endblock %}