Skip to content

Commit

Permalink
Correct config variable for enabling latest_posts on about page (alsh…
Browse files Browse the repository at this point in the history
…edivat#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>
  • Loading branch information
2 people authored and siril-teja committed Jun 19, 2024
1 parent 8f2f286 commit 31904a0
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 @@ -13,7 +13,6 @@ profile:
<p>sirilteja.dukkipati@gmail.com</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
---
Expand Down

0 comments on commit 31904a0

Please sign in to comment.