-
Notifications
You must be signed in to change notification settings - Fork 633
/
Copy pathpage.html
85 lines (81 loc) · 3.03 KB
/
page.html
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{% extends "base.html" %}
{% block meta_header %}{% if page.meta %}
<meta name="description" content="{{ page.meta }}">
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ page.title }}" />
{% if not page.headerimage or page.headerimage == '' %}
<meta name="twitter:image" content="https://www.fullstackpython.com/img/pages/default.jpg" />
{% else %}
<meta property="twitter:image" content="{{ SITEURL }}{{ page.headerimage }}" />
{% endif %}
<meta name="twitter:site" content="@fullstackpython" />
<meta name="twitter:creator" content="@mattmakai" />
<meta property="og:url" content="{{ SITEURL }}/{{ page.slug }}.html" />
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:description" content="{{ page.meta }}" />
{% if not page.headerimage or page.headerimage == '' %}
<meta property="og:image" content="https://www.fullstackpython.com/img/pages/default.jpg" />
{% else %}
<meta property="og:image" content="{{ SITEURL }}{{ page.headerimage }}" />
{% endif %}
<link rel="canonical" href="https://www.fullstackpython.com/{{ page.slug }}.html" />
{% endif %}{% endblock %}
{% block title %}{{ page.title }} - {% endblock %}
{% block css %}<style>{% include "css/base.css" %}{% include "css/panel.css" %}{% include "css/page-article.css" %}{% include "css/carbon.css" %}{% include "css/responsive.css" %}</style>{% endblock %}
{% block content %}
{% if page.slug != 'about-author' %}
<div class="row">
<div class="c12">
<h1 style="font-size: 32px">{{ page.title }}</h1>
</div>
</div>
{% endif %}
<div class="row">
<div class="c8">
{% if page.slug == 'about-author' %}
<div class="row">
<div class="c6">
<img src="/img/visuals/matt-makai-2017.jpg" width="100%" style="border-radius:6px;margin-top:30px">
</div>
<div class="c6">
<h1>{{ page.title }}</h1>
{{ page.content }}
</div>
</div>
{% else %}
{% if page.slug == "django-code-examples" %}
{% include "examples-extensions-descriptions/django.html" %}
{% include "code-examples/django.html" %}
{% endif %}
{% if page.slug == "flask-code-examples" %}
{% include "examples-extensions-descriptions/flask.html" %}
{% include "code-examples/flask.html" %}
{% endif %}
{% if page.slug == "sqlalchemy-code-examples" %}
{% include "examples-extensions-descriptions/sqlalchemy.html" %}
{% include "code-examples/sqlalchemy.html" %}
{% endif %}
{% if page.slug == "pandas-code-examples" %}
{% include "examples-extensions-descriptions/pandas.html" %}
{% endif %}
{{ page.content }}
{% if page.slug == "django" %}
{% include "code-examples/django.html" %}
{% endif %}
{% if page.slug == "flask" %}
{% include "code-examples/flask.html" %}
{% endif %}
{% if page.slug == "sqlalchemy" %}
{% include "code-examples/sqlalchemy.html" %}
{% endif %}
{% endif %}
{% if page.sortorder[0:2] == "50" %}
{% else %}
{% include "choices/" + page.slug + ".html" %}
{% endif %}
</div>
<div class="co1 c3">
{% include "sidebar.html" %}
</div>
</div>
{% endblock %}