support multiple files in footer-extra and head-extra
This commit is contained in:
parent
c677c7e114
commit
b660fef759
@ -10,6 +10,7 @@ One of the major changes in this version is that a lot of time was spent on reth
|
|||||||
- Added `share-title` YAML option to give control over the search engine/social media title
|
- Added `share-title` YAML option to give control over the search engine/social media title
|
||||||
- Added `head-extra` YAML option which is similar to `footer-extra` but is used to include custom HTML code in a page's `<head>` tag
|
- Added `head-extra` YAML option which is similar to `footer-extra` but is used to include custom HTML code in a page's `<head>` tag
|
||||||
- Added `full-width` YAML option to allow having full-width pages
|
- Added `full-width` YAML option to allow having full-width pages
|
||||||
|
- Improved the `footer-extra` YAML option to support multiple files instead of only a single file
|
||||||
- Upgraded jQuery to version 3.5.1 to fix a couple security vulnerabilities with the previous version
|
- Upgraded jQuery to version 3.5.1 to fix a couple security vulnerabilities with the previous version
|
||||||
- Added automatic navbar color detection (#702)
|
- Added automatic navbar color detection (#702)
|
||||||
- Changed navbar and footer background colour to be slightly darker, for better contrast with the default white page background
|
- Changed navbar and footer background colour to be slightly darker, for better contrast with the default white page background
|
||||||
@ -17,7 +18,6 @@ One of the major changes in this version is that a lot of time was spent on reth
|
|||||||
- Renamed internal css/js files from "main" to "beautifuljekyll" to make it easier for users to troubleshoot
|
- Renamed internal css/js files from "main" to "beautifuljekyll" to make it easier for users to troubleshoot
|
||||||
- Added alt text to all images for better accessibility
|
- Added alt text to all images for better accessibility
|
||||||
|
|
||||||
|
|
||||||
## v4.1.0 (2020-08-08)
|
## v4.1.0 (2020-08-08)
|
||||||
|
|
||||||
- Added Open Graph `site_name` meta field to pages automatically
|
- Added Open Graph `site_name` meta field to pages automatically
|
||||||
|
@ -171,7 +171,7 @@ These are advanced parameters that are only useful for people who need very fine
|
|||||||
|
|
||||||
Parameter | Description
|
Parameter | Description
|
||||||
----------- | -----------
|
----------- | -----------
|
||||||
footer-extra | If you want to include extra information in the footer (below the social media icons), create an HTML file in the `_includes/` folder (for example `_includes/myinfo.html`) and set `footer-extra` to the name of the file (for example `footer-extra: myinfo.html`)
|
footer-extra | If you want to include extra content below the social media icons in the footer, create an HTML file in the `_includes/` folder (for example `_includes/myinfo.html`) and set `footer-extra` to the name of the file (for example `footer-extra: myinfo.html`). Accepts a single file or a list of files.
|
||||||
head-extra | Works in a similar way to `footer-extra`, but used if you have any HTML code that needs to be included in the `<head>` tag of the page.
|
head-extra | Works in a similar way to `footer-extra`, but used if you have any HTML code that needs to be included in the `<head>` tag of the page.
|
||||||
language | HTML language code to be set on the page's <html> element.
|
language | HTML language code to be set on the page's <html> element.
|
||||||
full-width | By default, page content is constrained to a standard width. Use `full-width: true` to allow the content to span the entire width of the window.
|
full-width | By default, page content is constrained to a standard width. Use `full-width: true` to allow the content to span the entire width of the window.
|
||||||
|
@ -5,7 +5,9 @@
|
|||||||
{% include social-networks-links.html %}
|
{% include social-networks-links.html %}
|
||||||
{% if page.footer-extra %}
|
{% if page.footer-extra %}
|
||||||
<div class="footer-custom-content">
|
<div class="footer-custom-content">
|
||||||
{% include {{ page.footer-extra }} %}
|
{% for file in page.footer-extra %}
|
||||||
|
{% include {{ file }} %}
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="copyright text-muted">
|
<p class="copyright text-muted">
|
||||||
|
@ -141,7 +141,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.head-extra %}
|
{% if page.head-extra %}
|
||||||
{% include {{ page.head-extra }} %}
|
{% for file in page.head-extra %}
|
||||||
|
{% include {{ file }} %}
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user