add YAML option footer-extra

This commit is contained in:
Dean Attali 2020-04-28 21:24:45 +00:00
parent f012084123
commit bd1f95de23
4 changed files with 17 additions and 0 deletions

View File

@ -2,6 +2,8 @@
This file lists all non-trivial changes to Beautiful Jekyll. I often make small changes to documentation, to the demo site, or to the general look-and-feel. These and other minor changes will not be listed here. This file lists all non-trivial changes to Beautiful Jekyll. I often make small changes to documentation, to the demo site, or to the general look-and-feel. These and other minor changes will not be listed here.
**2020-04-28** Add YAML option `footer-extra` for including custom content in the footer
**2020-04-28** Fix issue: linking to a specific part of a page resulted in scrolling too far (#69) **2020-04-28** Fix issue: linking to a specific part of a page resulted in scrolling too far (#69)
**2020-04-28** Add YAML option `nav-short` to have navbar permanently collapsed **2020-04-28** Add YAML option `nav-short` to have navbar permanently collapsed

View File

@ -128,6 +128,7 @@ image | If you want to add a personalized image to your blog post that wil
readtime | If you want to show how many minutes it will take to read a post in the header, add `readtime: true`. readtime | If you want to show how many minutes it will take to read a post in the header, add `readtime: true`.
share-img | If you want to specify an image to use when sharing the page on Facebook or Twitter, then provide the image's full URL here. share-img | If you want to specify an image to use when sharing the page on Facebook or Twitter, then provide the image's full URL here.
social-share | If you don't want to show buttons to share a blog post on social media, use `social-share: false` (this feature is turned on by default). social-share | If you don't want to show buttons to share a blog post on social media, use `social-share: false` (this feature is turned on by default).
footer-extra | If you want to include extra information 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`)
nav-short | By default, the navigation bar gets shorter after scrolling down the page. If you want the navigation bar to always be short on a certain page, use `nav-short: true` nav-short | By default, the navigation bar gets shorter after scrolling down the page. If you want the navigation bar to always be short on a certain page, use `nav-short: true`
use-site-title | If you want to use the site title rather than page title as HTML document title (ie. browser tab title), use `use-site-title: true`. When set, the document title will take the format `Site Title - Site Description` (eg. `My website - A virtual proof that name is awesome!`). By default, it will use `Page Title` if it exists, or `Site Title` otherwise. use-site-title | If you want to use the site title rather than page title as HTML document title (ie. browser tab title), use `use-site-title: true`. When set, the document title will take the format `Site Title - Site Description` (eg. `My website - A virtual proof that name is awesome!`). By default, it will use `Page Title` if it exists, or `Site Title` otherwise.
language | HTML language code to be set on <html> element (see [W3Schools website](https://www.w3schools.com/tags/ref_language_codes.asp) for more info on this topic). Language can also be set site-wide in `_config.yml`. language | HTML language code to be set on <html> element (see [W3Schools website](https://www.w3schools.com/tags/ref_language_codes.asp) for more info on this topic). Language can also be set site-wide in `_config.yml`.

View File

@ -3,6 +3,11 @@
<div class="row"> <div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{% include social-networks-links.html %} {% include social-networks-links.html %}
{% if page.footer-extra %}
<div class="footer-custom-content">
{% include {{ page.footer-extra }} %}
</div>
{% endif %}
<p class="copyright text-muted"> <p class="copyright text-muted">
{% if site.author %} {% if site.author %}
{{ site.author }} {{ site.author }}

View File

@ -298,16 +298,22 @@ footer a {
footer .list-inline { footer .list-inline {
margin: 0; margin: 0;
padding: 0; padding: 0;
margin-bottom: 30px;
} }
footer .copyright { footer .copyright {
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
text-align: center; text-align: center;
margin-bottom: 0; margin-bottom: 0;
margin-top: 0;
} }
footer .theme-by { footer .theme-by {
text-align: center; text-align: center;
margin: 10px 0 0; margin: 10px 0 0;
} }
footer .footer-custom-content {
text-align: center;
margin-bottom: 15px;
}
@media only screen and (min-width: 768px) { @media only screen and (min-width: 768px) {
footer { footer {
@ -319,6 +325,9 @@ footer .theme-by {
footer .copyright { footer .copyright {
font-size: 16px; font-size: 16px;
} }
footer .footer-custom-content {
font-size: 16px;
}
} }
/* --- Post preview --- */ /* --- Post preview --- */