-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.html
96 lines (86 loc) · 3.79 KB
/
post.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
<div class="hero-body ct-body"></div>
</section>
<section class="ct-body">
<div class="container">
<div class="columns is-variable bd-klmn-columns is-4">
<div class="column is-two-thirds">
<div class="post-body single-content">
<div class="card-image">
<figure class="random-img">
</figure>
</div>
<h1 class="title">
{{ post.title }}
</h1>
<div class="media">
{% if ext_logo_path %}
<figure class="media-left">
<p class="image is-48x48">
<img class="is-rounded" src="{{ ext_logo_path }}">
</p>
</figure>
{% /if %}
<div class="media-content">
<div class="content">
<p style="line-height: 30px; font-size: 12px;">
{% if ext_author.length %}
<a href="{% if ext_author_url.length %}{{ ext_author_url }}{% /if %}">{{ ext_author }}</a>
<span style="color: #ccc;">|</span>
{% /if %}
<span class="date"><i class="fa fa-calendar-check-o" aria-hidden="true"></i> {{ post.date }}</span>
{% if post.cats.@count %}
<span class="tran-posted-in">posted in</span>
{% /if %}
{% for cat in post.cats %}
<span class="posted-in"><a href='{{ cat.url }}'><i class="fa fa-folder" aria-hidden="true"></i> {{ cat.name }}</a></span>
{% /for %}
{% if ext_disqus_shortname.length %}
<span style="color: #ccc;">|</span>
<a href="{{ siteURL }}{{post.url}}#disqus_thread"><span class="tran-disqus-comments">comments</span></a>
{% /if %}
{% if ext_duoshuo_shortname.length %}
<span style="color: #ccc;">|</span>
<a class="ds-thread-count" data-thread-key="{{post.url}}" data-count-type="comments" href="{{post.url}}#ds-thread"></a>
{% /if %}
{% if post.tags.@count %}
<span style="color: #ccc;">|</span>
{% for tag in post.tags %}
<a class="tag is-link is-light" href='{{ tag.url }}'>#{{ tag.name }}</a>
{% /for %}
{% /if %}
</p>
</div>
</div>
</div>
</div>
<article class="markdown-body single-content">
{{ post.content }}
</article>
<div class="comments-wrap">
<div class="share-comments">
{% if ext_utteranc_repo.length %}
<script src="https://utteranc.es/client.js"
repo="{{ ext_utteranc_repo }}"
issue-term="title"
theme="github-dark"
crossorigin="anonymous"
id="github-comment"
async>
</script>
{% /if %}
{{ commentAndShareCode }}
{% if ext_disqus_shortname.length %}
<div id="disqus_thread"></div>
{% /if %}
{% if ext_duoshuo_shortname.length %}
<div class="ds-thread" data-thread-key="{{post.url}}" data-url="{{ siteURL }}{{post.url}}" data-title="{{post.title}}"></div>
{% /if %}
</div>
</div><!-- end comments wrap -->
</div>
<div class="column">
<!-- include(section-cats_tags.html) -->
</div>
</div><!-- end columns -->
</div><!-- end container -->
</section>