|
| 1 | +{#- |
| 2 | + This file was automatically generated - do not edit |
| 3 | +-#} |
| 4 | +<article class="md-post md-post--excerpt"> |
| 5 | + <header class="md-post__header"> |
| 6 | + {% if post.authors %} |
| 7 | + <nav class="md-post__authors md-typeset"> |
| 8 | + {% for author in post.authors %} |
| 9 | + <span class="md-author"> |
| 10 | + <img src="{{ author.avatar | url }}" alt="{{ author.name }}"> |
| 11 | + </span> |
| 12 | + {% endfor %} |
| 13 | + </nav> |
| 14 | + {% endif %} |
| 15 | + <div class="md-post__meta md-meta"> |
| 16 | + <ul class="md-meta__list"> |
| 17 | + <li class="md-meta__item"> |
| 18 | + <time datetime="{{ post.config.date.created }}"> |
| 19 | + {{- post.config.date.created | date -}} |
| 20 | + </time> |
| 21 | + {#- Collapse whitespace -#} |
| 22 | + </li> |
| 23 | + {% if post.categories %} |
| 24 | + <li class="md-meta__item"> |
| 25 | + {{ lang.t("blog.categories.in") }} |
| 26 | + {% for category in post.categories %} |
| 27 | + <a href="{{ category.url | url }}" class="md-meta__link"> |
| 28 | + {{- category.title -}} |
| 29 | + </a> |
| 30 | + {%- if loop.revindex > 1 %}, {% endif -%} |
| 31 | + {% endfor -%} |
| 32 | + </li> |
| 33 | + {% endif %} |
| 34 | + {% if post.config.readtime %} |
| 35 | + {% set time = post.config.readtime %} |
| 36 | + <li class="md-meta__item"> |
| 37 | + {% if time == 1 %} |
| 38 | + {{ lang.t("readtime.one") }} |
| 39 | + {% else %} |
| 40 | + {{ lang.t("readtime.other") | replace("#", time) }} |
| 41 | + {% endif %} |
| 42 | + </li> |
| 43 | + {% endif %} |
| 44 | + {% if post.config.pin %} |
| 45 | + <span class="md-pin"></span> |
| 46 | + {% endif %} |
| 47 | + </ul> |
| 48 | + {% if post.config.draft %} |
| 49 | + <span class="md-draft"> |
| 50 | + {{ lang.t("blog.draft") }} |
| 51 | + </span> |
| 52 | + {% endif %} |
| 53 | + </div> |
| 54 | + </header> |
| 55 | + <div class="md-post__content md-typeset"> |
| 56 | + {{ post.content }} |
| 57 | + {% if post.more %} |
| 58 | + <nav class="md-post__action"> |
| 59 | + <a href="{{ post.url | url }}"> |
| 60 | + <span>{{ lang.t("blog.continue") }}</span> |
| 61 | + <span class="icon"><svg viewBox="0 0 13 10" xmlns="http://www.w3.org/2000/svg"><path d="M12.823 4.164L8.954.182a.592.592 0 0 0-.854 0 .635.635 0 0 0 0 .88l2.836 2.92H.604A.614.614 0 0 0 0 4.604c0 .344.27.622.604.622h10.332L8.1 8.146a.635.635 0 0 0 0 .88.594.594 0 0 0 .854 0l3.869-3.982a.635.635 0 0 0 0-.88z" fill-rule="nonzero" fill="currentColor" class="fill-main"></path></svg></span> |
| 62 | + </a> |
| 63 | + </nav> |
| 64 | + {% endif %} |
| 65 | + {% if post.config.pin %} |
| 66 | + <hr> |
| 67 | + {% endif %} |
| 68 | + </div> |
| 69 | +</article> |
0 commit comments