|
| 1 | +--- |
| 2 | +layout: page |
| 3 | +pagination: |
| 4 | + data: collections.geomPublished |
| 5 | + size: 10 |
| 6 | + reverse: true |
| 7 | +--- |
| 8 | + |
| 9 | +{% assign posts = pagination.items %} |
| 10 | + |
| 11 | +<!-- role="list" needed so that `list-style: none` in Safari doesn't remove the list semantics --> |
| 12 | +<ul class="posts-list list-unstyled" role="list"> |
| 13 | + {% for post in posts %} |
| 14 | + <li class="post-preview"> |
| 15 | + <article> |
| 16 | + |
| 17 | + {% capture excerpt_vzome %} |
| 18 | + {%- if post.data.description -%} |
| 19 | + {{ post.data.description | strip_html | xml_escape }} |
| 20 | + {%- else -%} |
| 21 | + {%- endif -%} |
| 22 | + {% endcapture %} |
| 23 | + {% assign excerpt_vzome=excerpt_vzome | strip %} |
| 24 | + |
| 25 | + {%- capture thumbnail -%} |
| 26 | + {% if post.data.thumbnail-img %} |
| 27 | + {{ post.data.thumbnail-img }} |
| 28 | + {% elsif post.data.cover-img %} |
| 29 | + {% if post.data.cover-img.first %} |
| 30 | + {{ post.data.cover-img[0].first.first }} |
| 31 | + {% else %} |
| 32 | + {{ post.data.cover-img }} |
| 33 | + {% endif %} |
| 34 | + {% elsif post.data.image %} |
| 35 | + {{ post.data.image }} |
| 36 | + {% else %} |
| 37 | + {% endif %} |
| 38 | + {% endcapture %} |
| 39 | + {% assign thumbnail=thumbnail | strip %} |
| 40 | + |
| 41 | + {% if site.feed_show_excerpt == false %} |
| 42 | + {% if thumbnail != "" %} |
| 43 | + <div class="post-image post-image-normal"> |
| 44 | + <a href="{{ post.url | relative_url }}" aria-label="Thumbnail"> |
| 45 | + <img src="{{ thumbnail | relative_url }}" alt="Post thumbnail"> |
| 46 | + </a> |
| 47 | + </div> |
| 48 | + {% endif %} |
| 49 | + {% endif %} |
| 50 | + |
| 51 | + <a href="{{ post.url | relative_url }}"> |
| 52 | + <h2 class="post-title">{{ post.data.title | strip_html }}</h2> |
| 53 | + |
| 54 | + {% if post.data.subtitle %} |
| 55 | + <h3 class="post-subtitle"> |
| 56 | + {{ post.data.subtitle | strip_html }} |
| 57 | + </h3> |
| 58 | + {% endif %} |
| 59 | + </a> |
| 60 | + |
| 61 | + <p class="post-meta"> |
| 62 | + {% assign date_format = site.date_format | default: "%B %-d, %Y" %} |
| 63 | + Posted on {{ post.date | date: date_format }} |
| 64 | + </p> |
| 65 | + |
| 66 | + {% if thumbnail != "" %} |
| 67 | + <div class="post-image post-image-small"> |
| 68 | + <a href="{{ post.data.url | relative_url }}" aria-label="Thumbnail"> |
| 69 | + <img src="{{ thumbnail | relative_url }}" alt="Post thumbnail"> |
| 70 | + </a> |
| 71 | + </div> |
| 72 | + {% endif %} |
| 73 | + |
| 74 | + {% unless site.feed_show_excerpt == false %} |
| 75 | + {% if thumbnail != "" %} |
| 76 | + <div class="post-image post-image-short"> |
| 77 | + <a href="{{ post.data.url | relative_url }}" aria-label="Thumbnail"> |
| 78 | + <img src="{{ thumbnail | relative_url }}" alt="Post thumbnail"> |
| 79 | + </a> |
| 80 | + </div> |
| 81 | + {% endif %} |
| 82 | + |
| 83 | + <div class="post-entry"> |
| 84 | + {% assign excerpt_length = site.excerpt_length | default: 50 %} |
| 85 | + {{ excerpt_vzome | strip_html | truncatewords: excerpt_length }} |
| 86 | + </div> |
| 87 | + {% endunless %} |
| 88 | + |
| 89 | + {% if site.feed_show_tags != false and post.data.tags.size > 0 %} |
| 90 | + <!-- <div class="blog-tags"> |
| 91 | + <span>Tags:</span> --> |
| 92 | + <!-- role="list" needed so that `list-style: none` in Safari doesn't remove the list semantics --> |
| 93 | + <!-- <ul class="d-inline list-inline" role="list"> |
| 94 | + {% for tag in post.data.tags %} |
| 95 | + <li class="list-inline-item"> |
| 96 | + <a href="{{ '/tags' | relative_url }}#{{- tag -}}">{{- tag -}}</a> |
| 97 | + </li> |
| 98 | + {% endfor %} |
| 99 | + </ul> |
| 100 | + </div> --> |
| 101 | + {% endif %} |
| 102 | + |
| 103 | + </article> |
| 104 | + </li> |
| 105 | + {% endfor %} |
| 106 | +</ul> |
| 107 | + |
| 108 | +{% if pagination.pages.length > 1 %} |
| 109 | +<ul class="pagination main-pager"> |
| 110 | + {% if pagination.href.previous %} |
| 111 | + <li class="page-item previous"> |
| 112 | + <a class="page-link" href="{{ pagination.href.previous | relative_url }}">← Newer Posts</a> |
| 113 | + </li> |
| 114 | + {% endif %} |
| 115 | + {% if pagination.href.next %} |
| 116 | + <li class="page-item next"> |
| 117 | + <a class="page-link" href="{{ pagination.href.next | relative_url }}">Older Posts →</a> |
| 118 | + </li> |
| 119 | + {% endif %} |
| 120 | +</ul> |
| 121 | +{% endif %} |
0 commit comments