From 82e73254d97515a1f03a7a110ed4f3c866abdd66 Mon Sep 17 00:00:00 2001 From: "Jake Nabasny, PhD" Date: Sun, 3 Mar 2024 11:28:58 -0500 Subject: [PATCH] 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 --- _layouts/about.liquid | 2 +- _pages/about.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/_layouts/about.liquid b/_layouts/about.liquid index dc669b6bd88a..094bc3379bb2 100644 --- a/_layouts/about.liquid +++ b/_layouts/about.liquid @@ -49,7 +49,7 @@ layout: default {% endif %} - {% if page.latest_posts %} + {% if site.latest_posts.enabled %}

latest posts

diff --git a/_pages/about.md b/_pages/about.md index 120688fb20b6..774030620487 100644 --- a/_pages/about.md +++ b/_pages/about.md @@ -14,7 +14,6 @@ profile:

Your City, State 12345

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