Skip to content

Commit

Permalink
Merge pull request VerzatileDevOrg#41 from VerzatileDev/main
Browse files Browse the repository at this point in the history
[ADD] Back To Top (B), SINCE: Date
  • Loading branch information
JDSherbert authored Dec 17, 2023
2 parents aa45afd + 3b60da5 commit 5da1309
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ source 'https://rubygems.org'
gem "jekyll", "~> 4.3.2" # installed by `gem jekyll`
# gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2

gem "just-the-docs", "0.6.2" # pinned to the current release
gem "just-the-docs", "0.6.2" # pinned to the current Release
# gem "just-the-docs" # always download the latest release

gem 'jekyll-last-modified-at', '~> 1.1' # pinned to the current Release
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ GEM
webrick (~> 1.7)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-last-modified-at (1.3.0)
jekyll (>= 3.7, < 5.0)
posix-spawn (~> 0.3.9)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-seo-tag (2.8.0)
Expand All @@ -56,6 +59,7 @@ GEM
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
posix-spawn (0.3.15)
public_suffix (5.0.3)
rake (13.0.6)
rb-fsevent (0.11.2)
Expand All @@ -79,6 +83,7 @@ PLATFORMS

DEPENDENCIES
jekyll (~> 4.3.2)
jekyll-last-modified-at (~> 1.1)
just-the-docs (= 0.6.2)

BUNDLED WITH
Expand Down
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ 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'
21 changes: 17 additions & 4 deletions _includes/components/footer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<div class="footer">
<hr>
<hr>

{% if site.back_to_top %}
<p>
<strong>Noticed A Mistake?</strong>
Click <a href="{{ site.github_base_url }}/blob/main{{ page.dir }}{{ page.name | replace: '_', '-' }}" target="_blank">here</a> to contribute!
<a href="#top" id="back-to-top">Back to Top</a>
</p>
</div>
{% endif %}

{% if page.last_modified_at %}
<p>
<strong>SINCE:</strong> {{ page.last_modified_at | date: '%d/%m/%Y' }}
</p>
{% endif %}

<p>
<strong>Noticed A Mistake?</strong>
Click <a href="{{ site.github_base_url }}/blob/main{{ page.dir }}{{ page.name | replace: '_', '-' }}" target="_blank">here</a> to contribute!
</p>
</div>

0 comments on commit 5da1309

Please sign in to comment.