Skip to content

Commit

Permalink
added group link option for event lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Stone committed Nov 2, 2023
1 parent 2fcb569 commit 0f7e0d4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
6 changes: 6 additions & 0 deletions _includes/_events/events-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
{% if include.title %}
<div class="list-title">
<h1 id="{{ include.title | slugify }}" class="list-title">{{ include.title }}</h1>

{% if include.group-linktext %}
<a class="group-link" href="{{ include.group-linkurl }}">
{{ include.group-linktext }}
</a>
{% endif %}
<hr>
</div>
{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions _includes/_events/seriesevents-list-past.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
{% if include.title %}
<div class="list-title">
<h1 class="list-title">{{ include.title }}</h1>

{% if include.group-linktext %}
<a class="group-link" href="{{ include.group-linkurl }}">
{{ include.group-linktext }}
</a>
{% endif %}
<hr>
</div>
{% endif %}
Expand Down
6 changes: 6 additions & 0 deletions _includes/_events/seriesevents-list-upcoming.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
{% if include.title %}
<div class="list-title">
<h1 class="list-title">{{ include.title }}</h1>

{% if include.group-linktext %}
<a class="group-link" href="{{ include.group-linkurl }}">
{{ include.group-linktext }}
</a>
{% endif %}
<hr>
</div>
{% endif %}
Expand Down
8 changes: 1 addition & 7 deletions resources/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,14 @@ Events organized by the IDEAS Productivity project are organized into several se
{% include series-teaser %}
{% endcomment %}

{% include text-biglink.html
blurb = "explore events by the series"
url = "/resources/series"
pushleft = "false"
%}

<!-- Event List -->

{% include _events/events-list.html
title = "Upcoming events"
group-linktext = "explore by series"
group-linkurl = "//resources/series"
group-linkurl = "/resources/series"
%}

{% include _events/events-list.html past=true
title = "Past events"
group-linktext = "explore by series"
Expand Down

0 comments on commit 0f7e0d4

Please sign in to comment.