Skip to content

Commit

Permalink
Add last-modified-at at the end of the page
Browse files Browse the repository at this point in the history
  • Loading branch information
raphendyr committed Aug 31, 2020
1 parent 0fafeed commit 97b27a1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
gem 'jekyll-last-modified-at', group: :jekyll_plugins
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
theme: jekyll-theme-cayman
title: A+ LMS
description: The extendable learning management system

plugins:
- jekyll-last-modified-at
5 changes: 5 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ <h2 class="project-tagline">{{ site.description | default: site.github.project_t

{{ content }}

<div class="last-modified-info">
This page was last updated on
<time datetime="{{ page.last_modified_at | date: '%Y-%m-%d' }}">{{ page.last_modified_at | date: '%d %B %Y' }}</time>
</div>

<footer class="site-footer">
<nav class="footer-map">
{% assign nav_groups = site.html_pages | group_by: 'nav-group' | sort: 'name' %}
Expand Down
7 changes: 7 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ $hr-border-color: #eff0f1;
margin-top: 0;
margin-bottom: 0.6em;
}

// Last modified info
.last-modified-info {
font-size: 80%;
font-style: italic;
text-align: right;
}
}

// transparency fix
Expand Down

0 comments on commit 97b27a1

Please sign in to comment.