Add favicon
This commit is contained in:
parent
20382430fc
commit
f0eccb8fab
|
|
@ -1,6 +1,8 @@
|
||||||
module.exports = config => {
|
module.exports = config => {
|
||||||
config.setUseGitIgnore(false);
|
config.setUseGitIgnore(false);
|
||||||
|
|
||||||
|
config.addPassthroughCopy('./src/images/');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
markdownTemplateEngine: 'njk',
|
markdownTemplateEngine: 'njk',
|
||||||
dataTemplateEngine: 'njk',
|
dataTemplateEngine: 'njk',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{% set pageTitle = title + ' - ' + site.name %}
|
{% set pageTitle = site.name %}
|
||||||
|
|
||||||
{# We don't want any duplication. This is likely for the home page. #}
|
{# We don't want any duplication. This is likely for the home page. #}
|
||||||
{% if site.name === title %}
|
{% if site.name === title %}
|
||||||
|
|
@ -27,16 +27,4 @@
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="{{ currentUrl }}" />
|
<meta property="og:url" content="{{ currentUrl }}" />
|
||||||
|
|
||||||
{% if socialImage %}
|
<link rel="icon" href="/images/meta/favicon.ico" type="image/x-icon" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
|
||||||
<meta property="og:image" content="{{ socialImage }}" />
|
|
||||||
<meta name="twitter:image" content="{{ socialImage }}" />
|
|
||||||
<meta property="og:image:alt" content="Page image for {{ site.name }}" />
|
|
||||||
<meta name="twitter:image:alt" content="Page image for {{ site.name }}" />
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if metaDesc %}
|
|
||||||
<meta name="description" content="{{ metaDesc }}" />
|
|
||||||
<meta name="twitter:description" content="{{ metaDesc }}" />
|
|
||||||
<meta property="og:description" content="{{ metaDesc }}" />
|
|
||||||
{% endif %}
|
|
||||||
BIN
src/images/meta/favicon.ico
Normal file
BIN
src/images/meta/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in a new issue