Add page modified time

This commit is contained in:
Tom 2024-08-02 10:56:01 +01:00
parent 07c9141d7e
commit 5b35cf51df
4 changed files with 26 additions and 26 deletions

View File

@ -9,5 +9,6 @@ group :jekyll_plugins do
gem 'jekyll-redirect-from' gem 'jekyll-redirect-from'
gem 'jekyll_flexible_include' gem 'jekyll_flexible_include'
gem "kramdown-syntax-coderay", "~> 1.0" gem "kramdown-syntax-coderay", "~> 1.0"
gem "jekyll-last-modified-at"
end end

View File

@ -33,6 +33,7 @@ plugins:
- jekyll-redirect-from - jekyll-redirect-from
- flexible_include - flexible_include
- kramdown-syntax-coderay - kramdown-syntax-coderay
- jekyll-last-modified-at
feed: feed:

View File

@ -1,7 +1,9 @@
<footer> <footer>
<a href="https://github.com/TomHodson/tomhodson.github.com/blob/main/{{page.path}}?plain=1"> <p><a href="https://github.com/TomHodson/tomhodson.github.com/blob/main/{{page.path}}?plain=1">
Page Source</a> Page Source</a>
| |
<a href="/credits"> <a href="/credits">
Credits</a> Credits</a>
|
<span>Last Modified {{ page.last_modified_at | date: '%e %b %Y' }}</span>
</footer> </footer>

View File

@ -1,4 +1,3 @@
// Padding to keep the keep the content to the right of the header // Padding to keep the keep the content to the right of the header
footer { footer {
max-width: 560px; max-width: 560px;
@ -14,13 +13,10 @@ footer {
a { a {
text-decoration: none; text-decoration: none;
} }
} }
@media @media only screen and (max-width: $horizontal_breakpoint),
only screen and (max-width: $horizontal_breakpoint), only screen and (max-height: $vertical_breakpoint) {
only screen and (max-height: $vertical_breakpoint)
{
footer { footer {
padding-top: 10px; padding-top: 10px;
padding-left: 20px; padding-left: 20px;