-
Notifications
You must be signed in to change notification settings - Fork 6
/
post.html
53 lines (53 loc) · 2.42 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
<div class="container" id="post">
<div class="article huge">
<div class="featureimg" style="background-image: url('{% if post.ext_featureimg.length %}{{post.ext_featureimg}}{% else %}asset/defaultfeaimg.jpg{% /if %}')"></div>
<img src="{% if post.ext_featureimg.length %}{{post.ext_featureimg}}{% /if %}" style="display: none;" class="featureimgforexternal">
<div class="timeGTM" style="display:none;">{{post.dateGTM}}</div>
<div class="row content">
<div class="col-md-2"></div>
<div class="col-md-10 main">
<div class="row">
<div class="col-md-10">
<div class="post">
<div class="headline"><a href="{{ post.url }}">{{ post.title }}</a></div>
{% if post.ext_subtitle.length %}<div class="subtitle">{{post.ext_subtitle}}</div>{% /if %}
<div class="meta"><span class="time">$[timeformat('{{post.dateGTM}}')]</span><br><span class="tags">{% for tag in post.tags %}<a href="{{tag.url}}">#{{tag.name}}</a>{% /for %}</span></div>
<div class="body">
{{ post.content }}
</div>
</div>
{% if ext_likecoinusername.length %}
<div class="likecoin" id="likecoinarea" v-if="hidelikecoin !== 'true'">
<div class="explain">
感谢你看到这里!如果你喜欢这篇文章,请在下方为我鼓掌(Like)<br>这样做不仅可以让我获得实质性收入,更可在 liker.land 网站收到我的最新文章更新
</div>
<iframe data-v-b66e9a5a="" style="height: 230px;" src="https://button.like.co/in/embed/{{ext_likecoinusername}}/button?referrer={{ siteURL }}{{ post.url }}" frameborder="0" class="lc-margin-top-64 lc-margin-bottom-32 lc-mobile"></iframe>
</div>
{% /if %}
{% if ext_commenttool.length %}
<hr>
<div class="comment">
<h1>评论</h1>
{{ ext_commenttool }}
</div>
{% /if %}
</div>
</div>
</div>
</div>
</div>
</div>
<script>
let post = new Vue({
el: '#post',
data: {
hidelikecoin: {% if post.ext_hidelikeco.length %}'{{ post.ext_hidelikeco }}'{% else %}''{% /if %}
},
methods: {
timeformat(raw) {
return moment(raw).format("YYYY 年 MM 月 DD 日");
}
},
delimiters: ['$[', ']']
})
</script>