Add metagen shortcode to generate Open Graph metadata
This commit is contained in:
parent
425b37b7a5
commit
55ce73a294
|
@ -5,12 +5,18 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
{# Open Graph #}
|
{# Meta data #}
|
||||||
<meta property="og:url" content="https://leilukin.neocities.org/{{ meta_url }}">
|
<meta property="og:title" content="{{ title }}">
|
||||||
<meta property="og:type" content="website">
|
{% metagen
|
||||||
<meta property="og:site_name" content="Leilukin's Hub">
|
desc=desc or metadata.desc,
|
||||||
<meta property="og:title" content="{{ title }} | Leilukin's Hub">
|
url=url + page.url,
|
||||||
<meta property="og:description" content="{{ meta_description }}">
|
locale="en_MY",
|
||||||
|
site_name="Leilukin's Hub",
|
||||||
|
img=image,
|
||||||
|
img_alt=alt,
|
||||||
|
twitter_card_type=type,
|
||||||
|
twitter_handle=twitter
|
||||||
|
%}
|
||||||
|
|
||||||
{# CSS #}
|
{# CSS #}
|
||||||
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
|
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
|
||||||
|
|
Loading…
Reference in New Issue