Set up index page Open Graph meta data

This commit is contained in:
Helen Chong 2024-04-11 21:04:06 +08:00
parent daf72d2736
commit f5c88ac5e9
2 changed files with 12 additions and 4 deletions

View File

@ -5,10 +5,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:url" content="https://leilukin.neocities.org/"> <meta property="og:title" content="{% if title %}{{ title }}{% else %}Leilukin's Hub{% endif %}">
<meta property="og:type" content="website"> {% metagen
<meta property="og:title" content="Leilukin's Hub"> desc=desc or metadata.desc,
<meta property="og:description" content="Welcome to Leilukin's personal website"> url=url + page.url,
locale="en_GB",
site_name="Leilukin's Hub",
img=image,
img_alt=alt,
twitter_card_type=type,
twitter_handle=twitter
%}
<link rel="stylesheet" href="{{'/assets/css/index.css' | url | safe}}"> <link rel="stylesheet" href="{{'/assets/css/index.css' | url | safe}}">

View File

@ -1,5 +1,6 @@
--- ---
layout: layouts/start layout: layouts/start
desc: Welcome to Leilukin's personal website.
h1: Welcome to Leilukin's Hub! h1: Welcome to Leilukin's Hub!
--- ---