Skip to content

Commit 4db80e2

Browse files
committed
Adds new page for highlighting messages from leadership
- Adds a new page that shows the posts specifically from posts with the category leadership - Adds this new page to the top navbar menu and news sidebar menu
1 parent ca2abf3 commit 4db80e2

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

_data/menus/news.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
link: /news/
55
- name: Newsletters
66
link: /newsletters/
7+
- name: Messages from Leadership
8+
link: /news/leadership/
79
- name: Archive
810
link: /archive/
911
- name: Search

_data/navigation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@
101101
link: newsletters
102102
- name: News and Updates
103103
link: news
104+
- name: Messages from Leadership
105+
link: news/leadership
104106
- name: News Archive
105107
link: archive
106108
- name: Resources

pages/posts/leadership.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
layout: page
3+
title: Statements from Leadership
4+
description: Messages from the Steering Committee and Executive Director
5+
permalink: /news/leadership/
6+
menubar: news
7+
---
8+
9+
{% include scrolltop.html %}
10+
{% assign leadership = site.posts | where: "category", "leadership" %}
11+
{% for post in leadership %}{% assign currentDate = post.date | date: "%Y" %}{% if currentDate != myDate %}{% unless forloop.first %}</ul>{% endunless %}
12+
<h1 style="margin-top:20px; margin-bottom:10px">{{ currentDate }}</h1>
13+
<ul>{% assign myDate = currentDate %}{% endif %}
14+
<li><a href="{{ site.baseurl }}{{ post.url }}"><span>{{ post.date | date: "%B %-d, %Y" }}</span> - {{ post.title }}</a></li>
15+
{% if forloop.last %}</ul>{% endif %}
16+
{% endfor %}

0 commit comments

Comments
 (0)