|
1 | 1 | <html lang="{{ page.lang | default: site.lang | default: "en_US" }}">
|
2 | 2 |
|
3 |
| -{% include head.html %} |
| 3 | + {% include head.html %} |
4 | 4 |
|
5 |
| -<body class="site"> |
| 5 | + <body class="site"> |
6 | 6 |
|
7 |
| -{% include header.html %} |
| 7 | + {% include header.html %} |
8 | 8 |
|
9 | 9 | {% if page.image %}
|
10 |
| - <div class="hero lazyload" data-bg="{{site.url}}/assets/img/posts/{{page.image}}.jpg"> |
| 10 | + <div class="hero lazyload" data-bg="{{site.url}}/assets/img/posts/{{page.image}}.jpg"> |
11 | 11 | {% else %}
|
12 |
| - <div class="hero dark-bg"> |
| 12 | + <div class="hero dark-bg"> |
13 | 13 | {% endif %}
|
14 |
| - <div class="hero__wrap"> |
15 |
| - |
16 |
| - <h1 class="hero__title">{{ page.title }}</h1> |
17 |
| - <h4 class="hero__category">{{ page.categories }}</h4> |
18 | 14 |
|
19 |
| - <ul class="hero__tag"> |
20 |
| - {% for tag in page.tags %} |
21 |
| - <li>{{ tag }}</li> |
22 |
| - {% endfor %} |
23 |
| - </ul> |
| 15 | + {% include post-metadata.html %} |
24 | 16 |
|
25 |
| - <p class="hero__meta"> |
26 |
| - <span> |
27 |
| - <time>{{ page.date | date_to_string }} </time> | |
28 |
| - </span> |
29 |
| - <span> |
30 |
| - {% assign words = content | number_of_words %} |
31 |
| - {% if words < 360 %} |
32 |
| - 1 min |
33 |
| - {% else %} |
34 |
| - {{ words | divided_by:180 }} mins |
35 |
| - {% endif %} read |
36 |
| - </span> |
37 |
| - </p> |
38 | 17 | </div>
|
39 |
| - </div> |
40 |
| - </div> |
41 |
| - |
42 |
| - <main class="site__content"> |
43 |
| - <div class="container"> |
44 |
| - <article class="post-content" itemprop="articleBody"> |
45 |
| - {{ content }} |
46 |
| - </article> |
| 18 | + </div> |
47 | 19 |
|
48 |
| - <div class="post-content controls__inner"> |
49 |
| - <div class="controls__item prev"> |
50 |
| - {% if page.previous.url %} |
51 |
| - <span>Previous</span> |
52 |
| - <a href="{{page.previous.url | relative_url }}"> |
53 |
| - <i class='fa fa-angle-left'></i> |
54 |
| - {{page.previous.title | strip_html | truncate: 30}} |
55 |
| - </a> |
56 |
| - {% endif %} |
57 |
| - </div> |
| 20 | + <main class="site__content"> |
| 21 | + <div class="container"> |
| 22 | + <article class="post-content" itemprop="articleBody"> |
| 23 | + {{ content }} |
| 24 | + </article> |
58 | 25 |
|
59 |
| - <div class="controls__item next"> |
60 |
| - {% if page.next.url %} |
61 |
| - <span>Next</span> |
62 |
| - <a href="{{page.next.url | relative_url }}"> |
63 |
| - {{page.next.title | strip_html | truncate: 30}} |
64 |
| - <i class='fa fa-angle-right'></i> |
65 |
| - </a> |
66 |
| - {% endif %} |
67 |
| - </div> |
68 |
| - </div> |
69 |
| - </div> |
| 26 | + {% include post-controls.html %} |
70 | 27 |
|
71 |
| - </main> |
| 28 | + </main> |
72 | 29 |
|
73 |
| - {% include footer.html %} |
| 30 | + {% include footer.html %} |
74 | 31 |
|
75 |
| -</body> |
| 32 | + </body> |
76 | 33 |
|
77 | 34 | </html>
|
0 commit comments