-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathpage.html
67 lines (60 loc) · 2.26 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
{% extends "index.html" %}
{% block title %}{{ config.title}} - {{ page.title }}{% endblock title %}
{% block ogtitle %}{{ config.title}} - {{ page.title }}{% endblock ogtitle %}
{% block ogdesc %}{{ page.description }}{% endblock ogdesc %}
{% block ogurl %}{% if page.slug %}{{ config.base_url }}/{{ page.slug }}{% endif %}{% endblock ogurl %}
{% block ogimg %}{% if page.extra.image %}{{ page.extra.image }}{% endif %}{% endblock ogimg %}
{% block breadcrumb %}
<p class="lead">
<span>>></span>
<a href="{{ config.base_url }}">Home</a>
{% if page.taxonomies %}
<span class="divider">/</span>
{% if page.taxonomies.categories %}
<a class="category" href="{{ get_taxonomy_url(kind="categories", name=page.taxonomies.categories[0]) }}">{{ page.taxonomies.categories[0] }}</a>
{% endif %}
{% if page.taxonomies.tags %}
<span class="divider">/</span>
{% for tag in page.taxonomies.tags %}
<a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">{{ tag }}</a>{% if page.taxonomies.tags | length > 1 %}{% if loop.index != page.taxonomies.tags | length %},{% endif %}{% endif %}
{% endfor %}
{% endif %}
{% endif %}
</p>
{% endblock breadcrumb %}
{% block header %}
<div class="page-header">
<h1>{{ page.title }}</h1>
</div>
{% endblock header %}
{% block meta %}
<p class="text-right">
<span class="label label-success">
∵
{% if page.extra.author %}
{{ page.extra.author }}
{% else %}
{{ config.extra.author }}
{% endif %}
</span>
<span class="label label-success">∴ {{ page.date }}</span>
<span class="label label-success">∞ {{ page.reading_time }}'</span>
</p>
{% endblock meta %}
{% block main %}
{{ page.content | safe }}
{% if config.extra.disqus and page.extra.comments %}
<div id="disqus">
<div id="disqus_thread"></div>
<script>
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://{{config.extra.disqus}}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</div>
{% endif %}
{% endblock main %}