Changeset View
Changeset View
Standalone View
Standalone View
announcements.html
--- | --- | ||||
layout: page | layout: page | ||||
use-site-title: true | use-site-title: true | ||||
--- | --- | ||||
<div class="posts-list"> | <div class="posts-list"> | ||||
{% assign english_posts = site.posts | where: "lang", "en" %} | {% assign english_posts = site.posts | where: "lang", "en" %} | ||||
{% for post in english_posts %} | {% for post in english_posts %} | ||||
<article class="post-preview"> | <article class="post-preview"> | ||||
<a href="{{ post.url }}"> | <a href="{{ post.url }}"> | ||||
<h2 class="post-title">{{ post.title }}</h2> | <h2 class="post-title">{{ post.title }}</h2> | ||||
{% if post.subtitle %} | {% if post.subtitle %} | ||||
<h3 class="post-subtitle"> | <h3 class="post-subtitle">{{ post.subtitle }}</h3> | ||||
{{ post.subtitle }} | |||||
</h3> | |||||
{% endif %} | {% endif %} | ||||
</a> | </a> | ||||
<p class="post-meta"> | <p class="post-meta"> | ||||
Posted on {{ post.date | date: "%B %-d, %Y" }} | Posted on {{ post.date | date: "%B %-d, %Y" }} | ||||
</p> | </p> | ||||
<div class="post-entry-container"> | <div class="post-entry-container"> | ||||
{% if post.image %} | {% if post.image %} | ||||
<div class="post-image"> | <div class="post-image"> | ||||
<a href="{{ post.url }}"> | <a href="{{ post.url }}"> | ||||
<img src="{{ post.image }}"> | <img src="{{ post.image }}"> | ||||
</a> | </a> | ||||
</div> | </div> | ||||
{% endif %} | {% endif %} | ||||
<div class="post-entry"> | <div class="post-entry"> | ||||
{{ post.excerpt | strip_html | xml_escape | truncatewords: site.excerpt_length }} | {{ post.excerpt | strip_html | xml_escape | truncatewords: site.excerpt_length }} | ||||
{% assign excerpt_word_count = post.excerpt | number_of_words %} | {% assign excerpt_word_count = post.excerpt | number_of_words %} | ||||
{% if post.content != post.excerpt or excerpt_word_count > site.excerpt_length %} | {% if post.content != post.excerpt or excerpt_word_count > site.excerpt_length %} | ||||
<a href="{{ post.url }}" class="post-read-more">[Read More]</a> | <a href="{{ post.url }}" class="post-read-more">[Read More]</a> | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
{% if post.tags.size > 0 %} | |||||
<div class="announcement-tags"> | |||||
Tags: | |||||
{% if site.link-tags %} | |||||
{% for tag in post.tags %} | |||||
<a href="{{ site.baseurl }}/tags#{{- tag -}}">{{- tag -}}</a> | |||||
{% endfor %} | |||||
{% else %} | |||||
{{ post.tags | join: ", " }} | |||||
{% endif %} | |||||
</div> | |||||
{% endif %} | |||||
</article> | </article> | ||||
{% endfor %} | {% endfor %} | ||||
</div> | </div> | ||||
{% if paginator.total_pages > 1 %} | {% if paginator.total_pages > 1 %} | ||||
<ul class="pager main-pager"> | <ul class="pager main-pager"> | ||||
{% if paginator.previous_page %} | {% if paginator.previous_page %} | ||||
<li class="previous"> | <li class="previous"> | ||||
Show All 10 Lines |