Use site metadata in templates
This commit is contained in:
parent
7623364218
commit
1c44d42bd2
|
@ -10,8 +10,8 @@
|
||||||
{% metagen
|
{% metagen
|
||||||
desc=desc or metadata.desc,
|
desc=desc or metadata.desc,
|
||||||
url=url + page.url,
|
url=url + page.url,
|
||||||
locale="en_MY",
|
locale=sitemeta.siteLocale,
|
||||||
site_name="Leilukin's Hub",
|
site_name=sitemeta.siteName,
|
||||||
img=image,
|
img=image,
|
||||||
img_alt=alt,
|
img_alt=alt,
|
||||||
twitter_card_type=type,
|
twitter_card_type=type,
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
|
||||||
<link rel="manifest" href="/assets/favicon/site.webmanifest">
|
<link rel="manifest" href="/assets/favicon/site.webmanifest">
|
||||||
|
|
||||||
<title>{{ title }} | Leilukin's Hub</title>
|
<title>{{ title }} | {{ sitemeta.siteName }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% renderTemplate "webc" %}
|
{% renderTemplate "webc" %}
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
|
||||||
{# Meta data #}
|
{# Meta data #}
|
||||||
<meta property="og:title" content="{% if title %}{{ title }}{% else %}Leilukin's Hub{% endif %}">
|
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
|
||||||
{% metagen
|
{% metagen
|
||||||
desc=desc or metadata.desc,
|
desc=desc or metadata.desc,
|
||||||
url=url + page.url,
|
url=url + page.url,
|
||||||
locale="en_MY",
|
locale=sitemeta.siteLocale,
|
||||||
site_name="Leilukin's Hub",
|
site_name=sitemeta.siteName,
|
||||||
img=image,
|
img=image,
|
||||||
img_alt=alt,
|
img_alt=alt,
|
||||||
twitter_card_type=type,
|
twitter_card_type=type,
|
||||||
|
@ -27,11 +27,11 @@
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
|
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png">
|
||||||
<link rel="manifest" href="/assets/favicon/site.webmanifest">
|
<link rel="manifest" href="/assets/favicon/site.webmanifest">
|
||||||
|
|
||||||
<title>{% if title %} {{ title }} | {% endif %} Leilukin's Hub</title>
|
<title>{% if title %} {{ title }} | {% endif %} {{ sitemeta.siteName }}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<img src="/assets/leilukin/Leilukins-Hub-website-banner.png" alt="Leilukin's Hub website banner">
|
<img src="/assets/leilukin/Leilukins-Hub-website-banner.png" alt="{{ sitemeta.siteName }} website banner">
|
||||||
<h1>{{ h1 }}</h1>
|
<h1>{{ h1 }}</h1>
|
||||||
|
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
layout: start/base
|
layout: start/base
|
||||||
tags: pages
|
tags: pages
|
||||||
desc: Welcome to Leilukin's personal website.
|
desc: Welcome to Leilukin's personal website.
|
||||||
h1: Welcome to Leilukin's Hub!
|
eleventyComputed:
|
||||||
|
h1: Welcome to {{ sitemeta.siteName | safe }}!
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="index__btn-wrapper">
|
<section class="index__btn-wrapper">
|
||||||
|
@ -11,7 +12,7 @@ h1: Welcome to Leilukin's Hub!
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<a href="/feed.xml" target="blank" title="Leilukin's Hub RSS Feed">
|
<a href="/feed.xml" target="blank" title="{{ sitemeta.siteName }} RSS Feed">
|
||||||
<img src="/assets/buttons/rss-button.gif" alt="RSS feed button">
|
<img src="/assets/buttons/rss-button.gif" alt="RSS feed button">
|
||||||
</a>
|
</a>
|
||||||
</footer>
|
</footer>
|
Loading…
Reference in New Issue