-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayout.html
95 lines (83 loc) · 3.01 KB
/
layout.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
86
87
88
89
90
91
92
93
94
95
{% extends "!layout.html" %}
{% block extrahead %}
<meta name="title" content="{{ title|striptags|e }}{{ titlesuffix }}"/>
{% if meta is defined and "description" in meta %}
<meta name="description" content="{{ meta['description'] }}"/>
{% else %}
<meta name="description" content="{{ title }}"/>
{% endif %}
<meta property="og:type" content="article"/>
<meta property="og:title" content="{{ title|striptags|e }}{{ titlesuffix }}"/>
<meta property="og:image" content="{{ base_url }}_static/image.png" />
<meta property="og:url" content="{{ base_url }}{{pagename+file_suffix}}" />
<meta property="og:site_name" content="{{ shorttitle }}"/>
{% if meta is defined and "description" in meta %}
<meta property="og:description" content="{{ meta['description'] }}" />
{% else %}
<meta property="og:description" content="{{ title }}" />
{% endif %}
{% if twitter is defined %}
<meta name="twitter:site" content="{{ twitter }}" />
{% if meta is defined and "description" in meta %}
<meta name="twitter:card" content="{{ meta['description'] }}" />
{% else %}
<meta name="twitter:card" content="{{ title }}" />
{% endif %}
{% endif %}
<script src="https://use.fontawesome.com/f179dac0e7.js" async></script>
{% if google_adsense is defined %}
<script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "{{ google_adsense }}",
enable_page_level_ads: true
});
</script>
{% endif %}
{% if google_analytics is defined %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', '{{ google_analytics }}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
{% endblock %}
{% block menu %}
{% if root is defined and root %}
{{ super() }}
{% else %}
<div class="local-toc">{{ toc }}</div>
<hr/>
<ul>
<li><a href="https://rgmining.github.io/">Review Graph Mining Project Top</a></li>
<li><a href="https://rgmining.github.io/forum.html">Forum</a></li>
<li>
<div style="padding: .4045em 1.3em;">
<script data-gratipay-username="jkawamoto" src="//grtp.co/v1.js"></script>
</div>
</li>
</ul>
{% endif %}
{% if google_adsense is defined and google_adsense_slot is defined %}
<hr />
<div style="padding: 0;">
<div style="width: 300px; margin: auto;">
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:600px"
data-ad-client="{{ google_adsense }}"
data-ad-slot="{{ google_adsense_slot }}"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
{% endif %}
{% endblock %}
{% block footer %}
{% if addthis is defined %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ addthis }}"></script>
{% endif %}
{% endblock %}