From f5c88ac5e9903b96e6abfa40c4a68d7a3c607732 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 11 Apr 2024 21:04:06 +0800 Subject: [PATCH] Set up index page Open Graph meta data --- src/_includes/layouts/start.njk | 15 +++++++++++---- src/index.njk | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/_includes/layouts/start.njk b/src/_includes/layouts/start.njk index b481d826..0156fdcd 100644 --- a/src/_includes/layouts/start.njk +++ b/src/_includes/layouts/start.njk @@ -5,10 +5,17 @@ - - - - + + {% metagen + desc=desc or metadata.desc, + url=url + page.url, + locale="en_GB", + site_name="Leilukin's Hub", + img=image, + img_alt=alt, + twitter_card_type=type, + twitter_handle=twitter + %} diff --git a/src/index.njk b/src/index.njk index 5907b140..3d58f8ae 100644 --- a/src/index.njk +++ b/src/index.njk @@ -1,5 +1,6 @@ --- layout: layouts/start +desc: Welcome to Leilukin's personal website. h1: Welcome to Leilukin's Hub! ---