From 463f4365a5944697e2595f286981fc5954b26ee2 Mon Sep 17 00:00:00 2001 From: VerzatileDev <47317248+VerzatileDev@users.noreply.github.com> Date: Sun, 14 Jan 2024 23:59:31 +0200 Subject: [PATCH 1/5] Back To Top True/False In the following Update back to top feature under each page's footer can now be changed to not be included by using the following command " back_to_top: false ", where as it is by default controlled globally, the default value in config has now moved to the Default.html itself so that in the feature different templates can be used. --- _config.yml | 4 +--- _includes/components/footer.html | 8 ++++---- _layouts/default.html | 1 + index.md | 1 + 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_config.yml b/_config.yml index a38c180..3c46c64 100644 --- a/_config.yml +++ b/_config.yml @@ -9,11 +9,9 @@ github_base_url: "https://github.com/VerzatileDevOrg/Programming_HandBook" aux_links: Contribute to the Github Repository: https://github.com/VerzatileDevOrg/Programming_HandBook -back_to_top: true # Works through Footer.html - plugins: - jekyll-last-modified-at # Optional. The default date format, used if none is specified in the tag. last-modified-at: - date-format: '%d/%m/%Y' + date-format: '%d/%m/%Y' \ No newline at end of file diff --git a/_includes/components/footer.html b/_includes/components/footer.html index e9629bc..81af327 100644 --- a/_includes/components/footer.html +++ b/_includes/components/footer.html @@ -1,10 +1,10 @@
- Back to Top -
+ {% if page.back_to_top != false %} ++ Back to Top +
{% endif %}