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_flexible_include'
gem "kramdown-syntax-coderay", "~> 1.0"
gem "jekyll-last-modified-at"
end

View File

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

View File

@ -1,7 +1,9 @@
<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>
|
<a href="/credits">
Credits</a>
|
<span>Last Modified {{ page.last_modified_at | date: '%e %b %Y' }}</span>
</footer>

View File

@ -1,31 +1,27 @@
// Padding to keep the keep the content to the right of the header
footer {
max-width: 560px;
margin-left: 240px;
padding-left: 30px;
padding-bottom: 10vh;
max-width: 560px;
margin-left: 240px;
padding-left: 30px;
padding-bottom: 10vh;
display: flex;
flex-direction: row;
display: flex;
flex-direction: row;
justify-content: center;
gap: 0.5em;
a {
text-decoration: none;
}
}
@media only screen and (max-width: $horizontal_breakpoint),
only screen and (max-height: $vertical_breakpoint) {
footer {
padding-top: 10px;
padding-left: 20px;
padding-right: 20px;
margin: auto;
justify-content: center;
gap: 0.5em;
a {
text-decoration: none;
}
}
@media
only screen and (max-width: $horizontal_breakpoint),
only screen and (max-height: $vertical_breakpoint)
{
footer {
padding-top: 10px;
padding-left: 20px;
padding-right: 20px;
margin: auto;
justify-content: center;
}
}
}