|
9 | 9 | {%- include snippets/assign.html -%}
|
10 | 10 | {%- assign _pageview = __return -%}
|
11 | 11 |
|
12 |
| -<div class="article-info clearfix"> |
| 12 | +<div class="article__info clearfix"> |
13 | 13 | {%- if page -%}
|
14 | 14 | <meta itemprop="author" itemscope itemtype="https://schema.org/Person">
|
15 | 15 | {%- if page.author -%}
|
|
20 | 20 | </meta>
|
21 | 21 | {%- endif -%}
|
22 | 22 | {%- if cur_page.tags[0] -%}
|
23 |
| - <ul class="article-info__left-col menu"> |
| 23 | + <ul class="left-col menu"> |
24 | 24 | {%- if site.paths.all -%}
|
25 | 25 | {%- assign all_path = site.paths.all -%}
|
26 | 26 | {%- else -%}
|
|
36 | 36 | {%- endfor -%}
|
37 | 37 | </ul>
|
38 | 38 | {%- endif -%}
|
39 |
| - |
40 |
| - {%- if (_pageview or post) and cur_page.date -%} |
41 |
| - <ul class="article-info__right-col menu"> |
| 39 | + {%- if (_pageview or post) or cur_page.date -%} |
| 40 | + <ul class="right-col menu"> |
42 | 41 | {%- if _pageview or post -%}
|
43 |
| - {%- if site.leancloud.app_id and site.leancloud.app_key and site.leancloud.app_class -%} |
| 42 | + {%- if site.pageview.provider -%} |
44 | 43 | {%- assign __locale = site.data.locale.VIEWS } -%}
|
45 | 44 | {%- include snippets/locale-to-string.html -%}
|
46 | 45 | <li class="pageview">
|
47 | 46 | <span class="js-pageview" data-page-key="{{ cur_page.key }}">0</span> {{ __return }}
|
48 | 47 | </li>
|
49 | 48 | {%- endif -%}
|
50 | 49 | {%- endif -%}
|
51 |
| - <li class="publish-date"> |
52 |
| - {%- assign __locale = site.data.locale.ARTICLE_DATE_FORMAT } -%} |
53 |
| - {%- include snippets/locale-to-string.html -%} |
54 |
| - {%- if post -%} |
55 |
| - <span>{{ cur_page.date | date: __return }}</span> |
56 |
| - {%- elsif page -%} |
57 |
| - <time datetime="{{ page.date | date_to_xmlschema }}" |
58 |
| - itemprop="datePublished">{{ cur_page.date | date: __return }} |
59 |
| - </time> |
60 |
| - {%- endif -%} |
61 |
| - </li> |
| 50 | + {%- if cur_page.date -%} |
| 51 | + <li class="publish-date"> |
| 52 | + {%- assign __locale = site.data.locale.ARTICLE_DATE_FORMAT } -%} |
| 53 | + {%- include snippets/locale-to-string.html -%} |
| 54 | + {%- if post -%} |
| 55 | + <span>{{ cur_page.date | date: __return }}</span> |
| 56 | + {%- elsif page -%} |
| 57 | + <time datetime="{{ page.date | date_to_xmlschema }}" |
| 58 | + itemprop="datePublished">{{ cur_page.date | date: __return }} |
| 59 | + </time> |
| 60 | + {%- endif -%} |
| 61 | + </li> |
| 62 | + {%- endif -%} |
62 | 63 | </ul>
|
63 | 64 | {%- endif -%}
|
64 | 65 | </div>
|
0 commit comments