forked from eatradish/Seje2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.html
61 lines (57 loc) · 2.07 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
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block content %}
<article class="post">
<div class="post-title">
<h1 class="title">{{ page.title }}</h1>
</div>
<div class="post-content">
{{ page.content | safe }}
</div>
<div class="post-meta">
<span class="post-time">
{% if config.extra.seje_chinese_date %}
{{ macros::format_chinese_date(year=page.year, month=page.month, day=page.day) }}
{% else %}
{{ page.date|date(format="%Y/%m/%d") }}
{% endif %}
</span>
</div>
</article>
<div class="prev_next">
<nav id="prev_next">
<div class="prev">
{% if page.later %}
<p>{{ trans(key="newer") }}<</p><a href="{{ page.later.permalink }}"><div class="article-nav-title">{{ page.later.title }}</div></a>
{% endif %}
</div>
<div class="next">
{% if page.earlier %}
<p>{{ trans(key="older") }}</p><a href="{{ page.earlier.permalink }}"><div class="article-nav-title">{{ page.earlier.title }}</div></a>
{% endif %}
</div>
</nav>
</div>
<div class="post-comment">
{# Discussion #}
{% block comment %}
{% if config.seje_disqus_shortname %}
<section id="comments">
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = "{{ config.seje_disqus_shortname }}"; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered
by Disqus.</a></noscript>
</section>
{% endif %}
{% endblock %}
</div>
{% endblock %}