|
6 | 6 | # © 2017-2019 Cotes Chung
|
7 | 7 | # MIT Licensed
|
8 | 8 | ---
|
9 |
| - |
10 |
| -<div class="row"> |
11 |
| - |
12 |
| - <div id="post-wrapper" class="col-12 col-lg-11 col-xl-8"> |
13 |
| - |
14 |
| - <div class="post pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4"> |
15 |
| - |
16 |
| - <h1 data-toc-skip>{{ page.title }}</h1> |
17 |
| - |
18 |
| - <div class="post-meta text-muted d-flex flex-column"> |
19 |
| - <!-- Published date and author --> |
20 |
| - <div> |
21 |
| - Posted |
22 |
| - {% include timeago.html date=page.date tooltip=true %} |
23 |
| - by |
24 |
| - <span class="author"> |
25 |
| - {% if page.author %} |
26 |
| - {{ page.author }} |
27 |
| - {% else %} |
28 |
| - {{ site.author }} |
29 |
| - {% endif %} |
30 |
| - </span> |
31 |
| - </div> |
32 |
| - |
33 |
| - <!-- lastmod --> |
34 |
| - {%- capture filename -%} |
35 |
| - {{ page.url | split: "/" | last }} |
36 |
| - {%- endcapture -%} |
37 |
| - |
38 |
| - {% for item in site.data.updates %} |
39 |
| - {% assign encode_filename = item.filename | url_encode %} |
40 |
| - {% if filename == encode_filename %} |
41 |
| - {% assign lastmod = item.lastmod %} |
42 |
| - {% break %} |
43 |
| - {% endif %} |
44 |
| - {% endfor %} |
45 |
| - |
46 |
| - {% if lastmod %} |
47 |
| - <div> |
48 |
| - Updated |
49 |
| - {% include timeago.html date=lastmod class="lastmod" tooltip=true %} |
50 |
| - </div> |
51 |
| - {% endif %} |
52 |
| - |
53 |
| - <!-- page views --> |
54 |
| - {% if site.google_analytics.pv.enabled %} |
55 |
| - <div> |
56 |
| - <span id="pv" class="pageviews"><i class="fas fa-spinner fa-spin fa-fw"></i></span> |
57 |
| - views |
58 |
| - </div> |
59 |
| - {% endif %} |
60 |
| - |
61 |
| - </div> <!-- .post-meta --> |
62 |
| - |
63 |
| - <div class="post-content"> |
64 |
| - |
65 |
| - {% if page.image %} |
66 |
| - <img src="{{ page.image }}" class="post-preview-img"> |
67 |
| - {% endif %} |
68 |
| - |
69 |
| - <!-- Using lozad. See: <https://github.com/ApoorvSaxena/lozad.js#usage> --> |
70 |
| - {% if content contains '<img src=' %} |
71 |
| - {{ content | replace: '<img src=', '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src=' }} |
72 |
| - {% else %} |
73 |
| - {{ content }} |
74 |
| - {% endif %} |
75 |
| - </div> |
76 |
| -
|
77 |
| - <div class="post-tail-wrapper text-muted"> |
78 |
| -
|
79 |
| - <!-- categories --> |
80 |
| - {% if page.categories.size > 0 %} |
81 |
| - <div class="post-meta mb-3"> |
82 |
| - <i class="far fa-folder-open fa-fw mr-1"></i> |
83 |
| - {% for category in page.categories %} |
84 |
| - <a href='{{ site.baseurl }}/categories/{{ category | replace: ' ', '-' | downcase | url_encode }}/'>{{ category }}</a> |
85 |
| - {%- unless forloop.last -%}, {%- endunless -%} |
86 |
| - {% endfor %} |
87 |
| - </div> |
88 |
| - {% endif %} |
89 |
| - |
90 |
| - <!-- tags --> |
91 |
| - {% if page.tags.size > 0 %} |
92 |
| - <div class="post-tags"> |
93 |
| - <i class="fa fa-tags fa-fw mr-1"></i> |
94 |
| - {% for tag in page.tags %} |
95 |
| - <a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase | url_encode }}/" |
96 |
| - class="post-tag no-text-decoration" > |
97 |
| - {{- tag -}} |
98 |
| - </a> |
99 |
| - {% endfor %} |
100 |
| - </div> |
101 |
| - {% endif %} |
102 |
| - |
103 |
| - <div class="post-tail-bottom |
104 |
| - d-flex justify-content-between align-items-center mt-3 pt-5 pb-2"> |
105 |
| - {% if site.data.rights.license %} |
106 |
| - <div class="license-wrapper"> |
107 |
| - Este post está licenciado sob a |
108 |
| - <a href="{{ site.data.rights.license.link }}">{{ site.data.rights.license.name }}</a> |
109 |
| - pelo autor. |
110 |
| - </div> |
111 |
| - {% endif %} |
112 |
| - |
113 |
| - {% include post-sharing.html %} |
114 |
| - |
115 |
| - </div><!-- .post-tail-bottom --> |
116 |
| - |
117 |
| - </div><!-- div.post-tail --> |
118 |
| - |
119 |
| - </div> <!-- .post --> |
120 |
| - |
121 |
| - |
122 |
| - </div> <!-- #post-wrapper --> |
123 |
| - |
124 |
| - {% include panel.html %} |
125 |
| - |
126 |
| -</div> <!-- .row --> |
127 |
| - |
128 |
| -<div class="row"> |
129 |
| - <div class="col-12 col-lg-11 col-xl-8"> |
130 |
| - <div id="post-extend-wrapper" class="pl-1 pr-1 pl-sm-2 pr-sm-2 pl-md-4 pr-md-4"> |
131 |
| - |
132 |
| - {% include related-posts.html %} |
133 |
| - |
134 |
| - {% include post-nav.html %} |
135 |
| - |
136 |
| - {% if site.disqus.comments and page.comments %} |
137 |
| - {% include disqus.html %} |
138 |
| - {% endif %} |
139 |
| - |
140 |
| - </div> <!-- #post-extend-wrapper --> |
141 |
| - |
142 |
| - </div> <!-- .col-* --> |
143 |
| - |
144 |
| -</div> <!-- .row --> |
145 |
| - |
146 |
| -{% include lozad.html %} |
| 9 | +{% if page.comments == true and site.disqus.shortname %} |
| 10 | + {% include disqus.html %} |
| 11 | + {% endif %} |
| 12 | + |
0 commit comments