From a9f70d786426092c234eafcc08dc4ddac823f4ec Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 10 Apr 2022 17:18:07 -0500 Subject: [PATCH] Fix index.html title & ensure OpenGraph display on Index without title - Also added OpenGraph title fallback --- _layouts/default.html | 6 +++--- index.html | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index ffa3b63..9973426 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -20,11 +20,11 @@ layout: compress - {% if page.title and page._preview_description or page._preview_image -%} + {% if page._preview_description or page._preview_image and page.title or page.name == "index.html" -%} - - + + {% if page._preview_description -%} diff --git a/index.html b/index.html index 731b1dc..ce73830 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,6 @@ --- layout: posts tag: home -title: My personal website, project portfolio and blog. _preview_description: Xevion.dev is my personal website where I keep a portfolio of projects, put posts that interest me, and generally a playground for anything that doesn't fit anywhere else. _preview_image: /assets/img/index-cover.png ---