Skip to content

Commit b660fef

Browse files
committed
support multiple files in footer-extra and head-extra
1 parent c677c7e commit b660fef

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ One of the major changes in this version is that a lot of time was spent on reth
1010
- Added `share-title` YAML option to give control over the search engine/social media title
1111
- 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
1212
- Added `full-width` YAML option to allow having full-width pages
13+
- Improved the `footer-extra` YAML option to support multiple files instead of only a single file
1314
- Upgraded jQuery to version 3.5.1 to fix a couple security vulnerabilities with the previous version
1415
- Added automatic navbar color detection (#702)
1516
- Changed navbar and footer background colour to be slightly darker, for better contrast with the default white page background
1617
- Changed the behaviour of `site-css` to include site-wide CSS file **before** page-specific files
1718
- Renamed internal css/js files from "main" to "beautifuljekyll" to make it easier for users to troubleshoot
1819
- Added alt text to all images for better accessibility
1920

20-
2121
## v4.1.0 (2020-08-08)
2222

2323
- Added Open Graph `site_name` meta field to pages automatically

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ These are advanced parameters that are only useful for people who need very fine
171171

172172
Parameter | Description
173173
----------- | -----------
174-
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`)
174+
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.
175175
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.
176176
language | HTML language code to be set on the page's &lt;html&gt; element.
177177
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.

_includes/footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
{% include social-networks-links.html %}
66
{% if page.footer-extra %}
77
<div class="footer-custom-content">
8-
{% include {{ page.footer-extra }} %}
8+
{% for file in page.footer-extra %}
9+
{% include {{ file }} %}
10+
{% endfor %}
911
</div>
1012
{% endif %}
1113
<p class="copyright text-muted">

_includes/head.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@
141141
{% endif %}
142142

143143
{% if page.head-extra %}
144-
{% include {{ page.head-extra }} %}
144+
{% for file in page.head-extra %}
145+
{% include {{ file }} %}
146+
{% endfor %}
145147
{% endif %}
146148

147149
</head>

0 commit comments

Comments
 (0)