From 8b8177e5c8fe52d756f533ad23c1bf4db98e905c Mon Sep 17 00:00:00 2001
From: Shangzhi Huang
` + +You can *add* custom metadata to the `
` of your layouts by creating a file `_includes/custom-head.html` in your source directory. For example, to add favicons: 1. Head over to [https://realfavicongenerator.net/](https://realfavicongenerator.net/) to add your own favicons. -2. [Customize](#customization) default `_includes/favicons.html` in your source directory and insert the given code snippet. +2. [Customize](#customization) default `_includes/custom-head.html` in your source directory and insert the given code snippet. ### Enabling comments (via Disqus) diff --git a/_includes/custom-head.html b/_includes/custom-head.html new file mode 100644 index 0000000000..8559a67ffa --- /dev/null +++ b/_includes/custom-head.html @@ -0,0 +1,6 @@ +{% comment %} + Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons: + + 1. Head over to https://realfavicongenerator.net/ to add your own favicons. + 2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet. +{% endcomment %} diff --git a/_includes/favicons.html b/_includes/favicons.html deleted file mode 100644 index e821726aca..0000000000 --- a/_includes/favicons.html +++ /dev/null @@ -1,6 +0,0 @@ -{% comment %} - Placeholder to allow defining custom favicons - - 1. Head over to https://realfavicongenerator.net/ to add your own favicons. - 2. Customize default _includes/favicons.html in your source directory and insert the given code snippet. -{% endcomment %} diff --git a/_includes/head.html b/_includes/head.html index 1c424432f4..9ee139f2a9 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,11 +2,13 @@ - {%- include favicons.html -%} {%- seo -%} {%- feed_meta -%} {%- if jekyll.environment == 'production' and site.google_analytics -%} {%- include google-analytics.html -%} {%- endif -%} + + {%- include custom-head.html -%} +