Skip to content

Commit

Permalink
look in talks for project-relevant links too
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 14, 2022
1 parent e7f7b27 commit 4c63880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/project.html
Expand Up @@ -22,7 +22,8 @@ <h1>{{ page.title | markdown(inline=true) | safe }}, {{ page.description }}</h1>
{{ page.content | safe }}

{% set posts = get_section(path="posts/_index.md") -%}
{% set updates = posts.pages | filter(attribute="extra.project", value=page.title) -%}
{% set talks = get_section(path="talks/_index.md") -%}
{% set updates = posts.pages | concat(with=talks.pages) | filter(attribute="extra.project", value=page.title) -%}
{%- if updates %}
<h2>Updates</h2>
<dl>
Expand Down

0 comments on commit 4c63880

Please sign in to comment.