mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-05 08:42:42 +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 data #}
|
||||||
<meta property="og:title" content="{{ title }}">
|
<meta property="og:title" content="{{ title }}">
|
||||||
{% metagen
|
{% include "metagen.njk" %}
|
||||||
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
|
|
||||||
%}
|
|
||||||
|
|
||||||
{# CSS #}
|
{# CSS #}
|
||||||
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
|
<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 data #}
|
||||||
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
|
<meta property="og:title" content="{% if title %}{{ title }}{% else %}{{ sitemeta.siteName }}{% endif %}">
|
||||||
{% metagen
|
{% include "metagen.njk" %}
|
||||||
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
|
|
||||||
%}
|
|
||||||
|
|
||||||
{# CSS #}
|
{# CSS #}
|
||||||
<link rel="stylesheet" href="{{'/assets/css/index.css' | url | safe}}">
|
<link rel="stylesheet" href="{{'/assets/css/index.css' | url | safe}}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user