|
| 1 | +{{> head}} |
| 2 | +{{> navbar}} |
| 3 | +<main class="posts"> |
| 4 | + <div class="hero hero--noimage"> |
| 5 | + <header class="hero__content {{#checkIf @config.custom.alignHero '==' "center" }}hero__content--centered{{/checkIf}}"> |
| 6 | + <div class="wrapper"> |
| 7 | + <h1> |
| 8 | + {{ translate 'postPrefix.title' }} |
| 9 | + </h1> |
| 10 | + <p class="page__desc"> |
| 11 | + {{ translate "postPrefix.description" }} |
| 12 | + </p> |
| 13 | + </div> |
| 14 | + </header> |
| 15 | + </div> |
| 16 | + <div class="wrapper feed"> |
| 17 | + {{#each posts}} |
| 18 | + <article class="feed__item {{#checkIf @config.custom.alignFeed '==' "center" }}feed__item--centered{{/checkIf}}"> |
| 19 | + {{#if @config.custom.feedFeaturedImage}} |
| 20 | + {{#featuredImage}} |
| 21 | + {{#if url}} |
| 22 | + <figure class="feed__image"> |
| 23 | + <img |
| 24 | + src="{{url}}" |
| 25 | + {{#if @config.site.responsiveImages}} |
| 26 | + {{responsiveImageAttributes 'featuredImage' srcset.feed sizes.feed}} |
| 27 | + {{/if}} |
| 28 | + {{ lazyload "lazy" }} |
| 29 | + height="{{height}}" |
| 30 | + width="{{width}}" |
| 31 | + alt="{{alt}}"> |
| 32 | + </figure> |
| 33 | + {{/if}} |
| 34 | + {{/featuredImage}} |
| 35 | + {{/if}} |
| 36 | + <div class="feed__content"> |
| 37 | + <header> |
| 38 | + {{#checkIfAny @config.custom.feedAvatar @config.custom.feedAuthor @config.custom.feedDate}} |
| 39 | + <div class="feed__meta"> |
| 40 | + {{#author}} |
| 41 | + {{#if @config.custom.feedAvatar}} |
| 42 | + {{#if avatar}} |
| 43 | + {{#if @config.custom.feedAuthor}} |
| 44 | + <img |
| 45 | + src="{{avatarImage.url}}" |
| 46 | + {{ lazyload "lazy" }} |
| 47 | + height="{{avatarImage.height}}" |
| 48 | + width="{{avatarImage.width}}" |
| 49 | + class="feed__author-thumb" |
| 50 | + alt=""> |
| 51 | + {{else}} |
| 52 | + <a href="{{url}}" class="feed__author-link"> |
| 53 | + <img |
| 54 | + src="{{avatarImage.url}}" |
| 55 | + {{ lazyload "lazy" }} |
| 56 | + height="{{avatarImage.height}}" |
| 57 | + width="{{avatarImage.width}}" |
| 58 | + class="feed__author-thumb" |
| 59 | + alt="{{avatarImage.alt}}"> |
| 60 | + </a> |
| 61 | + {{/if}} |
| 62 | + {{/if}} |
| 63 | + {{/if}} |
| 64 | + {{#if @config.custom.feedAuthor}} |
| 65 | + <a href="{{url}}" class="feed__author">{{name}}</a> |
| 66 | + {{/if}} |
| 67 | + {{/author}} |
| 68 | + |
| 69 | + {{#if @config.custom.feedDate}} |
| 70 | + {{#checkIf @config.custom.feedDateType '==' "published" }} |
| 71 | + <time datetime="{{date createdAt 'YYYY-MM-DDTHH:mm'}}" class="feed__date"> |
| 72 | + {{#checkIf @config.custom.formatDate '!=' 'custom'}} |
| 73 | + {{date createdAt @config.custom.formatDate}} |
| 74 | + {{else}} |
| 75 | + {{date createdAt @config.custom.formatDateCustom}} |
| 76 | + {{/checkIf}} |
| 77 | + </time> |
| 78 | + {{/checkIf}} |
| 79 | + {{#checkIf @config.custom.feedDateType '==' "modified" }} |
| 80 | + <time datetime="{{date modifiedAt 'YYYY-MM-DDTHH:mm'}}" class="feed__date"> |
| 81 | + {{#checkIf @config.custom.formatDate '!=' 'custom'}} |
| 82 | + {{date modifiedAt @config.custom.formatDate}} |
| 83 | + {{else}} |
| 84 | + {{date modifiedAt @config.custom.formatDateCustom}} |
| 85 | + {{/checkIf}} |
| 86 | + </time> |
| 87 | + {{/checkIf}} |
| 88 | + {{/if}} |
| 89 | + </div> |
| 90 | + {{/checkIfAny}} |
| 91 | + <h2 class="feed__title"> |
| 92 | + <a href="{{url}}"> |
| 93 | + {{title}} |
| 94 | + </a> |
| 95 | + </h2> |
| 96 | + </header> |
| 97 | + {{#if hasCustomExcerpt}} |
| 98 | + {{{ excerpt }}} |
| 99 | + {{else}} |
| 100 | + <p>{{{ excerpt }}}</p> |
| 101 | + {{/if}} |
| 102 | + {{#if @config.custom.feedtReadMore}} |
| 103 | + <a href="{{url}}" class="readmore feed__readmore"> |
| 104 | + {{ translate 'post.readMore' }}</a> |
| 105 | + {{/if}} |
| 106 | + </div> |
| 107 | + </article> |
| 108 | + {{/each}} |
| 109 | + {{> pagination}} |
| 110 | + </div> |
| 111 | +</main> |
| 112 | +{{> footer}} |
0 commit comments