fixed meta url
This commit is contained in:
parent
712ee9d966
commit
cf53bab1a8
10 changed files with 36 additions and 31 deletions
1
.prettierignore
Normal file
1
.prettierignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
src/assets/helperfiles/*
|
||||||
|
|
@ -1,11 +1,12 @@
|
||||||
const package = require('../../package.json');
|
const package = require('../../package.json');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
pkv: package.version || 'v1',
|
||||||
|
url: process.env.URL || 'http://localhost:8080',
|
||||||
siteName: 'Eleventy Excellent',
|
siteName: 'Eleventy Excellent',
|
||||||
siteDescription:
|
siteDescription:
|
||||||
"Eleventy starter based on the workflow suggested by Andy Bell's https://buildexcellentwebsit.es/.",
|
"Eleventy starter based on the workflow suggested by Andy Bell's https://buildexcellentwebsit.es/.",
|
||||||
siteType: 'Person', // schema
|
siteType: 'Person', // schema
|
||||||
siteURL: 'https://eleventy-excellent.netlify.app',
|
|
||||||
locale: 'en_EN',
|
locale: 'en_EN',
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
skipContent: 'Skip to content',
|
skipContent: 'Skip to content',
|
||||||
|
|
@ -33,7 +34,5 @@ module.exports = {
|
||||||
},
|
},
|
||||||
menu: {
|
menu: {
|
||||||
closedText: 'Menu'
|
closedText: 'Menu'
|
||||||
},
|
}
|
||||||
env: process.env.ELEVENTY_ENV === 'production',
|
|
||||||
pkv: package.version || 'v1'
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
<!-- Disable automatic detection and formatting of possible phone numbers -->
|
<!-- Disable automatic detection and formatting of possible phone numbers -->
|
||||||
<meta name="format-detection" content="telephone=no" />
|
<meta name="format-detection" content="telephone=no" />
|
||||||
<!-- Helps prevent duplicate content issues -->
|
<!-- Helps prevent duplicate content issues -->
|
||||||
<link rel="canonical" href="{{ meta.siteURL }}{{ page.url }}" />
|
<link rel="canonical" href="{{ meta.url }}{{ page.url }}" />
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{% if seo.title %} {{ seo.title }}
|
{% if seo.title %} {{ seo.title }}
|
||||||
|
|
@ -47,7 +47,7 @@
|
||||||
<meta name="generator" content="Eleventy" />
|
<meta name="generator" content="Eleventy" />
|
||||||
|
|
||||||
<!-- Facebook Open Graph meta -->
|
<!-- Facebook Open Graph meta -->
|
||||||
<meta property="og:url" content="{{ meta.siteURL }}{{ page.url }}" />
|
<meta property="og:url" content="{{ meta.url }}{{ page.url }}" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta
|
<meta
|
||||||
property="og:title"
|
property="og:title"
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
<meta
|
<meta
|
||||||
property="og:image"
|
property="og:image"
|
||||||
content="{% if meta.env == 'production' %}{{
|
content="{% if meta.env == 'production' %}{{
|
||||||
meta.siteURL
|
meta.url
|
||||||
}}{% endif %}{% if featured_image %}{{ featured_image | replace('./src', '') }}{% else %}{{
|
}}{% endif %}{% if featured_image %}{{ featured_image | replace('./src', '') }}{% else %}{{
|
||||||
meta.meta_data.opengraph_default
|
meta.meta_data.opengraph_default
|
||||||
}}{% endif %}"
|
}}{% endif %}"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@graph": [
|
"@graph": [
|
||||||
{
|
{
|
||||||
"@type": "WebSite",
|
"@type": "WebSite",
|
||||||
"@id": "{{ meta.siteURL }}#website",
|
"@id": "{{ meta.url }}#website",
|
||||||
"url": "{{ meta.siteURL }}",
|
"url": "{{ meta.url }}",
|
||||||
"name": "{{ meta.siteName }}",
|
"name": "{{ meta.siteName }}",
|
||||||
"description": "{{ meta[locale].metaDescription }}",
|
"description": "{{ meta[locale].metaDescription }}",
|
||||||
"inLanguage": "{{ meta[locale].localeCode }}"
|
"inLanguage": "{{ meta[locale].localeCode }}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"@type": "WebPage"
|
"@type": "WebPage"
|
||||||
},
|
},
|
||||||
"isPartOf": {
|
"isPartOf": {
|
||||||
"@id": "{{ meta.siteURL }}#website"
|
"@id": "{{ meta.url }}#website"
|
||||||
},
|
},
|
||||||
"@id": "{{ url }}",
|
"@id": "{{ url }}",
|
||||||
"headline": "{{ title or meta.siteName }}",
|
"headline": "{{ title or meta.siteName }}",
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
"publisher": {
|
"publisher": {
|
||||||
"@type": "{{ meta.siteType }}",
|
"@type": "{{ meta.siteType }}",
|
||||||
"name": "{{ meta.authorName }}",
|
"name": "{{ meta.authorName }}",
|
||||||
"url": "{{ meta.siteURL }}"
|
"url": "{{ meta.url }}"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"@type": "Person",
|
"@type": "Person",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"@type": "WebPage"
|
"@type": "WebPage"
|
||||||
},
|
},
|
||||||
"isPartOf": {
|
"isPartOf": {
|
||||||
"@id": "{{ meta.siteURL }}#website"
|
"@id": "{{ meta.url }}#website"
|
||||||
},
|
},
|
||||||
"headline": "{{ title or meta.siteName }}",
|
"headline": "{{ title or meta.siteName }}",
|
||||||
"description": "{{ seo.description or meta.siteDescription }}",
|
"description": "{{ seo.description or meta.siteDescription }}",
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
"publisher": {
|
"publisher": {
|
||||||
"@type": "{{ meta.siteType }}",
|
"@type": "{{ meta.siteType }}",
|
||||||
"name": "{{ meta.authorName }}",
|
"name": "{{ meta.authorName }}",
|
||||||
"url": "{{ meta.siteURL }}"
|
"url": "{{ meta.url }}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
{% endfor %} {% endif %}
|
{% endfor %} {% endif %}
|
||||||
|
|
||||||
<!-- include base schema -->
|
<!-- include base schema -->
|
||||||
{%- include "schemas/base-schema.njk" %}
|
{% include "schemas/base-schema.njk" %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,12 @@ eleventyExcludeFromCollections: true
|
||||||
excludeFromSitemap: true
|
excludeFromSitemap: true
|
||||||
---
|
---
|
||||||
|
|
||||||
/* TEAM */ Developer: {{ meta.author }} Contact: {{ meta.authorEmail }} Site:
|
/* TEAM */
|
||||||
{{ meta.siteURL }} {% if meta.meta_data.twitterCreator %}Twitter:
|
Developer: {{ meta.author }}
|
||||||
{{ meta.meta_data.twitterCreator }}{% endif %} /* SITE */ Doctype: HTML5
|
Contact: {{ meta.authorEmail }}
|
||||||
|
Site: {{ meta.authorWebsite }}
|
||||||
|
{% if meta.meta_data.twitterCreator %}
|
||||||
|
Twitter: {{ meta.meta_data.twitterCreator }}{% endif %}
|
||||||
|
|
||||||
|
/* SITE */
|
||||||
|
Doctype: HTML5
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,4 @@ excludeFromSitemap: true
|
||||||
---
|
---
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow: /404.html
|
Disallow: /404.html
|
||||||
Disallow: /google35901daa0ceb7399.html
|
Sitemap: {{ meta.url }}/sitemap.xml
|
||||||
Sitemap: {{ meta.siteURL }}/sitemap.xml
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ excludeFromSitemap: true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<url>
|
<url>
|
||||||
<loc>{{ meta.siteURL }}{{ page.url }}</loc>
|
<loc>{{ meta.url }}{{ page.url }}</loc>
|
||||||
<lastmod>{{ lastmod | toIsoString }}</lastmod>
|
<lastmod>{{ lastmod | toIsoString }}</lastmod>
|
||||||
</url>
|
</url>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue