Sha256: 9dfb1faed5bb44e6372799fa56d8afa67cfab01fe7a2f58547764bbeddd91ad9
Contents?: true
Size: 1.48 KB
Versions: 4
Compression:
Stored size: 1.48 KB
Contents
<div class="news"> {%- if include.title == "true" %} <h2>Whats new?</h2> {%- endif %} {%- assign news = site.data.news | sort: "date"%} {%- assign count = 0 %} <ul class="list-unstyled mt-3"> {%- for new in news reversed%} <li> <span class="title mb-1">{{ new.name | escape }}</span> <p class="text-muted"><i class="far fa-calendar me-2"></i><time>{{ new.date | date_to_long_string }}</time>{% if new.linked_pr %}<b> - </b><i class="fa-solid fa-code-branch"></i><a href="{{ site.github.repository_url | append: '/pull/' | append: new.linked_pr }}">{{new.linked_pr }}</a>{% endif %}</p> {%- if new.description %} {%- assign word_count = new.description | split: " " | size %} {%- if include.truncate == "true" and word_count > 40 %} <p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}"> View description </a> </p> <div class="full-description collapse" id="collapse-{{count}}"> {{ new.description | markdownify }} </div> {%- else %} {{ new.description | markdownify }} {%- endif %} {%- endif %} </li> {%- assign count = count | plus: 1 %} {%- if include.limit and count == include.limit %} {%- break %} {%- endif %} {%- endfor %} </ul> {%- if include.caption == "true" %} <small>For more news please visit our <a href="/news">news page</a>.</small> {%- endif %} </div>
Version data entries
4 entries across 4 versions & 1 rubygems