Correct config variable for enabling latest_posts on about page (#2243)

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 <jake@nabasny.com>
This commit is contained in:
Jake Nabasny, PhD 2024-03-03 11:28:58 -05:00 committed by GitHub
parent 4dd3d6f441
commit 82e73254d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -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>

View File

@ -14,7 +14,6 @@ profile:
<p>Your City, State 12345</p>
news: true # includes a list of news items
latest_posts: true # includes a list of the newest posts
selected_papers: true # includes a list of papers marked as "selected={true}"
social: true # includes social icons at the bottom of the page
---