|
66 | 66 | {% endif %} |
67 | 67 |
|
68 | 68 | <div class="post-meta"> |
69 | | - <span class="post-time"> |
70 | 69 |
|
71 | | - {% set date_diff = date(post.date) != date(post.updated) %} |
72 | | - {% set time_diff = time(post.date) != time(post.updated) %} |
73 | | - {% set datetime_diff = date_diff or time_diff %} |
| 70 | + {% set date_diff = date(post.date) != date(post.updated) %} |
| 71 | + {% set time_diff = time(post.date) != time(post.updated) %} |
| 72 | + {% set datetime_diff = date_diff or time_diff %} |
74 | 73 |
|
75 | | - {% if theme.post_meta.created_at %} |
| 74 | + {% if theme.post_meta.created_at %} |
| 75 | + <span class="post-meta-item"> |
76 | 76 | <span class="post-meta-item-icon"> |
77 | 77 | <i class="fa fa-calendar-o"></i> |
78 | 78 | </span> |
|
89 | 89 | <time title="{{ create_title }}" itemprop="dateCreated datePublished" datetime="{{ moment(post.date).format() }}">{# |
90 | 90 | #}{{ date(post.date) -}} |
91 | 91 | </time> |
92 | | - {% endif %} |
93 | | - |
94 | | - {% if theme.post_meta.updated_at.enable && datetime_diff %} |
95 | | - {% set display_updated = !theme.post_meta.updated_at.another_day || theme.post_meta.updated_at.another_day && date_diff %} |
| 92 | + </span> |
| 93 | + {% endif %} |
96 | 94 |
|
97 | | - {% if display_updated or !theme.post_meta.created_at %} |
98 | | - {% if theme.post_meta.created_at and theme.post_meta.updated_at.enable %} |
99 | | - <span class="post-meta-divider">|</span> |
100 | | - {% endif %} |
| 95 | + {% if theme.post_meta.updated_at.enable && datetime_diff %} |
| 96 | + {% set display_updated = !theme.post_meta.updated_at.another_day || theme.post_meta.updated_at.another_day && date_diff %} |
101 | 97 |
|
| 98 | + {% if display_updated or !theme.post_meta.created_at %} |
| 99 | + <span class="post-meta-item"> |
102 | 100 | <span class="post-meta-item-icon"> |
103 | 101 | <i class="fa fa-calendar-check-o"></i> |
104 | 102 | </span> |
|
108 | 106 | <time title="{{ __('post.modified') + __('symbol.colon') + full_date(post.updated) }}" itemprop="dateModified" datetime="{{ moment(post.updated).format() }}">{# |
109 | 107 | #}{{ date(post.updated) -}} |
110 | 108 | </time> |
111 | | - {% endif %} |
| 109 | + </span> |
112 | 110 | {% endif %} |
113 | | - </span> |
| 111 | + {% endif %} |
114 | 112 |
|
115 | 113 | {% if post.categories and post.categories.length and theme.post_meta.categories %} |
116 | | - <span class="post-category"> |
117 | | - {% if theme.post_meta.created_at or theme.post_meta.updated_at %} |
118 | | - <span class="post-meta-divider">|</span> |
119 | | - {% endif %} |
| 114 | + <span class="post-meta-item"> |
120 | 115 | <span class="post-meta-item-icon"> |
121 | 116 | <i class="fa fa-folder-o"></i> |
122 | 117 | </span> |
|
140 | 135 |
|
141 | 136 | {% if post.comments %} |
142 | 137 | {% macro comments() %} |
143 | | - <span class="post-comments-count"> |
144 | | - <span class="post-meta-divider">|</span> |
| 138 | + <span class="post-meta-item"> |
145 | 139 | <span class="post-meta-item-icon"> |
146 | 140 | <i class="fa fa-comment-o"></i> |
147 | 141 | </span> |
|
192 | 186 |
|
193 | 187 | {# LeanCloud PageView #} |
194 | 188 | {% if theme.leancloud_visitors.enable or (theme.valine.enable and theme.valine.appid and theme.valine.appkey and theme.valine.visitor) %} |
195 | | - <span id="{{ url_for(post.path) }}" class="leancloud_visitors" data-flag-title="{{ post.title }}"> |
196 | | - <span class="post-meta-divider">|</span> |
| 189 | + <span id="{{ url_for(post.path) }}" class="post-meta-item leancloud_visitors" data-flag-title="{{ post.title }}"> |
197 | 190 | <span class="post-meta-item-icon"> |
198 | 191 | <i class="fa fa-eye"></i> |
199 | 192 | </span> |
|
205 | 198 | {% endif %} |
206 | 199 |
|
207 | 200 | {% if not is_index and theme.busuanzi_count.enable and theme.busuanzi_count.post_views %} |
208 | | - <span class="post-meta-divider">|</span> |
209 | | - <span class="post-meta-item-icon" |
210 | | - {% if not theme.post_meta.item_text %} title="{{ __('post.views') }}" {% endif %}> |
211 | | - <i class="fa fa-{{ theme.busuanzi_count.post_views_icon }}"></i> |
212 | | - {% if theme.post_meta.item_text %} {{ __('post.views') + __('symbol.colon') }} {% endif %} |
213 | | - <span class="busuanzi-value" id="busuanzi_value_page_pv"></span> |
| 201 | + <span class="post-meta-item"> |
| 202 | + <span class="post-meta-item-icon" |
| 203 | + {% if not theme.post_meta.item_text %} title="{{ __('post.views') }}" {% endif %}> |
| 204 | + <i class="fa fa-{{ theme.busuanzi_count.post_views_icon }}"></i> |
| 205 | + {% if theme.post_meta.item_text %} {{ __('post.views') + __('symbol.colon') }} {% endif %} |
| 206 | + <span class="busuanzi-value" id="busuanzi_value_page_pv"></span> |
| 207 | + </span> |
214 | 208 | </span> |
215 | 209 | {% endif %} |
216 | 210 |
|
217 | | - {% if config.symbols_count_time.symbols or config.symbols_count_time.time %} |
218 | | - <div class="post-symbolscount"> |
219 | | - {% if not theme.symbols_count_time.separated_meta %} |
220 | | - <span class="post-meta-divider">|</span> |
221 | | - {% endif %} |
222 | | - |
223 | | - {% if config.symbols_count_time.symbols %} |
224 | | - <span class="post-meta-item-icon"> |
225 | | - <i class="fa fa-file-word-o"></i> |
226 | | - </span> |
227 | | - {% if theme.symbols_count_time.item_text_post %} |
228 | | - <span class="post-meta-item-text">{{ __('symbols_count_time.count') + __('symbol.colon') }}</span> |
229 | | - {% endif %} |
230 | | - <span title="{{ __('symbols_count_time.count') }}">{# |
231 | | - #}{{ symbolsCount(post) }}{# |
232 | | - #}</span> |
233 | | - {% endif %} |
234 | | - |
235 | | - {% if config.symbols_count_time.symbols and config.symbols_count_time.time %} |
236 | | - <span class="post-meta-divider">|</span> |
| 211 | + {% if theme.symbols_count_time.separated_meta %}<br/>{% endif %} |
| 212 | + {% if config.symbols_count_time.symbols %} |
| 213 | + <span class="post-meta-item"> |
| 214 | + <span class="post-meta-item-icon"> |
| 215 | + <i class="fa fa-file-word-o"></i> |
| 216 | + </span> |
| 217 | + {% if theme.symbols_count_time.item_text_post %} |
| 218 | + <span class="post-meta-item-text">{{ __('symbols_count_time.count') + __('symbol.colon') }}</span> |
237 | 219 | {% endif %} |
| 220 | + <span title="{{ __('symbols_count_time.count') }}">{# |
| 221 | + #}{{ symbolsCount(post) }}{# |
| 222 | + #}</span> |
| 223 | + </span> |
| 224 | + {% endif %} |
238 | 225 |
|
239 | | - {% if config.symbols_count_time.time %} |
240 | | - <span class="post-meta-item-icon"> |
241 | | - <i class="fa fa-clock-o"></i> |
242 | | - </span> |
243 | | - {% if theme.symbols_count_time.item_text_post %} |
244 | | - <span class="post-meta-item-text">{{ __('symbols_count_time.time') }} ≈</span> |
245 | | - {% endif %} |
246 | | - <span title="{{ __('symbols_count_time.time') }}">{# |
247 | | - #}{{ symbolsTime(post, theme.symbols_count_time.awl, theme.symbols_count_time.wpm, __('symbols_count_time.time_minutes')) }}{# |
248 | | - #}</span> |
| 226 | + {% if config.symbols_count_time.time %} |
| 227 | + <span class="post-meta-item"> |
| 228 | + <span class="post-meta-item-icon"> |
| 229 | + <i class="fa fa-clock-o"></i> |
| 230 | + </span> |
| 231 | + {% if theme.symbols_count_time.item_text_post %} |
| 232 | + <span class="post-meta-item-text">{{ __('symbols_count_time.time') }} ≈</span> |
249 | 233 | {% endif %} |
250 | | - </div> |
| 234 | + <span title="{{ __('symbols_count_time.time') }}">{# |
| 235 | + #}{{ symbolsTime(post, theme.symbols_count_time.awl, theme.symbols_count_time.wpm, __('symbols_count_time.time_minutes')) }}{# |
| 236 | + #}</span> |
| 237 | + </span> |
251 | 238 | {% endif %} |
252 | 239 |
|
253 | 240 | {% if post.description and (not theme.excerpt_description or not is_index) %} |
|
0 commit comments