File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
- ---
2
- og_image : img/daily-dose-of-python.png
3
- twitter_title : Daily dose of Python
4
- twitter_description : Slightly more advanced Python tips and tricks in easy to digest format.
5
- twitter_image : img/daily-dose-of-python.png
6
- ---
7
-
8
1
# Daily dose of Python
9
2
10
3
Slightly more advanced Python tips and tricks in easy to digest format.
Original file line number Diff line number Diff line change 1
1
{% extends "base.html" %}
2
2
3
3
{% block extrahead %}
4
+
4
5
{% if page and page.meta and page.meta.og_image %}
5
6
< meta property ="og:image " content ="{{ config.site_url ~ page.meta.og_image }} " />
7
+ {% else %}
8
+ < meta property ="og:image " content ="{{ config.site_url ~ config.extra.default_meta_tags.og_image }} " />
6
9
{% endif %}
10
+
7
11
{% if page and page.meta and page.meta.twitter_title and page.meta.twitter_description and page.meta.twitter_image %}
8
12
< meta name ="twitter:card " content ="summary_large_image ">
9
13
< meta name ="twitter:title " content ="{{ page.meta.twitter_title }} ">
10
14
< meta name ="twitter:description " content ="{{ page.meta.twitter_description }} ">
11
15
< meta name ="twitter:image " content ="{{ config.site_url ~ page.meta.twitter_image }} ">
16
+ {% else %}
17
+ < meta name ="twitter:card " content ="summary_large_image ">
18
+ < meta name ="twitter:title " content ="{{ config.extra.default_meta_tags.twitter.title }} ">
19
+ < meta name ="twitter:description " content ="{{ config.extra.default_meta_tags.twitter.description }} ">
20
+ < meta name ="twitter:image " content ="{{ config.site_url ~ config.extra.default_meta_tags.twitter.image }} ">
12
21
{% endif %}
22
+
13
23
{% endblock %}
Original file line number Diff line number Diff line change 72
72
- icon : fontawesome/brands/github
73
73
link : https://github.com/jerry-git
74
74
name : Jerry on GitHub
75
+ default_meta_tags :
76
+ og_image : img/daily-dose-of-python.png
77
+ twitter :
78
+ title : Daily dose of Python
79
+ description : Slightly more advanced Python tips and tricks in easy to digest format.
80
+ image : img/daily-dose-of-python.png
You can’t perform that action at this time.
0 commit comments