mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-04 22:22:41 +00:00
Move the metagen shortcode block to its own template
This commit is contained in:
parent
98a9f9aa8d
commit
d3d12bcc4c
@ -7,16 +7,7 @@
|
||||
|
||||
{# Meta data #}
|
||||
<meta property="og:title" content="{{ title }}">
|
||||
{% metagen
|
||||
desc=desc or metadata.desc,
|
||||
url=url + page.url,
|
||||
locale=sitemeta.siteLocale,
|
||||
site_name=sitemeta.siteName,
|
||||
img=image,
|
||||
img_alt=alt,
|
||||
twitter_card_type=type,
|
||||
twitter_handle=twitter
|
||||
%}
|
||||
{% include "metagen.njk" %}
|
||||
|
||||
{# CSS #}
|
||||
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
|
||||
|
11
src/_includes/metagen.njk
Normal file
11
src/_includes/metagen.njk
Normal file
@ -0,0 +1,11 @@
|
||||
{% metagen
|
||||
desc=desc or metadata.desc,
|
||||
url=url + page.url,
|
||||
locale=sitemeta.siteLocale,
|
||||
site_name=sitemeta.siteName,
|
||||
img=image,
|
||||
img_alt=alt,
|
||||
twitter_card_type=type,
|
||||
twitter_handle=twitter,
|
||||
generator=eleventy.generator
|
||||
%}
|
@ -7,16 +7,7 @@
|
||||
|
||||
{# Meta data #}
|
||||
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
|
||||
{% metagen
|
||||
desc=desc or metadata.desc,
|
||||
url=url + page.url,
|
||||
locale=sitemeta.siteLocale,
|
||||
site_name=sitemeta.siteName,
|
||||
img=image,
|
||||
img_alt=alt,
|
||||
twitter_card_type=type,
|
||||
twitter_handle=twitter
|
||||
%}
|
||||
{% include "metagen.njk" %}
|
||||
|
||||
{# CSS #}
|
||||
<link rel="stylesheet" href="{{'/assets/css/index.css' | url | safe}}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user