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}}">
|
||||
|
|
|
@ -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…
Reference in New Issue