Skip to content

Commit 82e7325

Browse files
authored
Correct config variable for enabling latest_posts on about page (cotes2020#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 <[email protected]>
1 parent 4dd3d6f commit 82e7325

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

_layouts/about.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ layout: default
4949
{% endif %}
5050

5151
<!-- Latest posts -->
52-
{% if page.latest_posts %}
52+
{% if site.latest_posts.enabled %}
5353
<h2>
5454
<a href="{{ '/blog/' | relative_url }}" style="color: inherit">latest posts</a>
5555
</h2>

_pages/about.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ profile:
1414
<p>Your City, State 12345</p>
1515
1616
news: true # includes a list of news items
17-
latest_posts: true # includes a list of the newest posts
1817
selected_papers: true # includes a list of papers marked as "selected={true}"
1918
social: true # includes social icons at the bottom of the page
2019
---

0 commit comments

Comments
 (0)