Skip to content

Commit

Permalink
Correct config variable for enabling latest_posts on about page (#2243)
Browse files Browse the repository at this point in the history
I noticed disabling latest_posts in `_config.yml` didn't work because
the variable in the liquid template was seemingly incorrect. This should
fix that.

---------

Co-authored-by: Jake Nabasny <[email protected]>
  • Loading branch information
2 people authored and ngmarchant committed Jun 21, 2024
1 parent 71f0912 commit 5504360
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion _layouts/about.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ layout: default
{% endif %}

<!-- Latest posts -->
{% if page.latest_posts %}
{% if site.latest_posts.enabled %}
<h2>
<a href="{{ '/blog/' | relative_url }}" style="color: inherit">latest posts</a>
</h2>
Expand Down
1 change: 0 additions & 1 deletion _pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ profile:
# <p>Your City, State 12345</p>

news: true # includes a list of news items
latest_posts: false # includes a list of the newest posts
selected_papers: false # includes a list of papers marked as "selected={true}"
social: false # includes social icons at the bottom of the page
---
Expand Down

0 comments on commit 5504360

Please sign in to comment.