Skip to content

Commit cfe0e7f

Browse files
committed
Post 레이아웃 변경 / Ko-fi 정책 수정
1 parent 80ac34c commit cfe0e7f

File tree

1 file changed

+34
-53
lines changed

1 file changed

+34
-53
lines changed

_layouts/post.html

+34-53
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,16 @@
22
layout: default
33
---
44

5-
{% assign minutes = content | strip_html | number_of_words | divided_by: 180 %}
6-
{% if minutes == 0 %}
7-
{% assign minutes = 1 %}
8-
{% endif %}
9-
105
<div class="post-header mb2">
116
<h1>{{ page.title }}</h1>
127
<span class="post-meta">{{ page.date | date: site.date_format }}</span> <br>
138
<span class="post-meta">
149
{% if page.author %}
1510
작성자 : {{page.author}} <br>
1611
{% endif %}
17-
</span>
18-
19-
{% if page.update_date %}
20-
<span class="post-meta">{{ site.text.post.updated }}: {{ page.update_date | date: site.date_format }}</span><br>
21-
{% endif %}
12+
</span> {% if page.update_date %}
13+
<span class="post-meta">{{ site.text.post.updated }}: {{ page.update_date | date: site.date_format }}</span><br> {% endif
14+
%}
2215
<span class="post-meta small">
2316
{% if page.minutes %}
2417
{{ page.minutes }} {{ site.text.post.minute_read }}
@@ -32,48 +25,36 @@ <h1>{{ page.title }}</h1>
3225
{{ content }}
3326
<br>
3427
<div class="">
35-
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script><script type ='text/javascript'>kofiwidget2.init('Buy Me a Coffee', '#46b798', 'A316F4N');kofiwidget2.draw();</script>
36-
<br>
37-
위 링크를 통해 후원을 받고 있습니다. 모든 후원금은 글을 올려주신 분께 돌아갑니다.
38-
</div>
28+
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script>
29+
<script type='text/javascript'>kofiwidget2.init('Buy Me a Coffee', '#46b798', 'A316F4N'); kofiwidget2.draw();</script>
30+
<br> 위 링크를 통해 후원을 받고 있습니다. 모든 후원금은 Vue.js 한국 커뮤니티 운영에 사용됩니다.
31+
</div>
3932
</article>
4033

41-
{% if site.show_sharing_icons %}
42-
{% include share_buttons.html %}
43-
{% endif %}
44-
45-
{% if site.show_post_footers %}
46-
{% include post_footer.html %}
47-
{% endif %}
48-
49-
{% if site.disqus_shortname %}
50-
<div id="disqus_thread"></div>
51-
<script type="text/javascript">
52-
var disqus_shortname = '{{ site.disqus_shortname }}';
53-
var disqus_identifier = '{{ page.id }}';
54-
var disqus_title = {{ page.title | jsonify }};
55-
56-
(function() {
57-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
58-
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
59-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
60-
})();
61-
</script>
62-
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
63-
{% endif %}
64-
65-
{% if site.facebook_comments %}
66-
<div class="fb-comments" data-href="{{ site.url }}{{ page.url }}" data-width="100%" data-numposts="{{ site.facebook_comments_number }}"></div>
67-
{% endif %}
68-
69-
{% if site.show_related_posts %}
70-
<h3 class="related-post-title">{{ site.text.post.related_posts }}</h3>
71-
{% for post in site.related_posts %}
72-
<div class="post ml2">
73-
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
74-
<h4 class="post-title">{{ post.title }}</h4>
75-
<p class="post-summary">{{ post.summary }}</p>
76-
</a>
77-
</div>
78-
{% endfor %}
79-
{% endif %}
34+
{% if site.show_sharing_icons %} {% include share_buttons.html %} {% endif %} {% if site.show_post_footers %} {% include
35+
post_footer.html %} {% endif %} {% if site.disqus_shortname %}
36+
<div id="disqus_thread"></div>
37+
<script type="text/javascript">
38+
var disqus_shortname = '{{ site.disqus_shortname }}';
39+
var disqus_identifier = '{{ page.id }}';
40+
var disqus_title = {{ page.title | jsonify }};
41+
42+
(function () {
43+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
44+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
45+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
46+
})();
47+
</script>
48+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
49+
{% endif %} {% if site.facebook_comments %}
50+
<div class="fb-comments" data-href="{{ site.url }}{{ page.url }}" data-width="100%" data-numposts="{{ site.facebook_comments_number }}"></div>
51+
{% endif %} {% if site.show_related_posts %}
52+
<h3 class="related-post-title">{{ site.text.post.related_posts }}</h3>
53+
{% for post in site.related_posts %}
54+
<div class="post ml2">
55+
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
56+
<h4 class="post-title">{{ post.title }}</h4>
57+
<p class="post-summary">{{ post.summary }}</p>
58+
</a>
59+
</div>
60+
{% endfor %} {% endif %}

0 commit comments

Comments
 (0)