Skip to content

Commit 47e5586

Browse files
committed
Add last modified tag
1 parent ce3347d commit 47e5586

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
99
gem "jekyll", "~> 4.2"
1010
gem "jekyll-theme-slate"
1111
gem "webrick"
12+
gem "jekyll-last-modified-at"

_config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
theme: jekyll-theme-slate
22
# Google Analytics
3-
google_analytics: G-9BTS4G6VV4
3+
google_analytics: G-9BTS4G6VV4
4+
plugins:
5+
- jekyll-last-modified-at

_layouts/default.html

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
background: url("{{ site.baseurl }}/assets/images/icon-home.png") no-repeat 50% 50%;
2020
background-size: 90%;
2121
border: 3px solid white; border-radius: 50%; }
22+
23+
#lastmod { display: block; position: absolute; bottom: 10px; left: 10px; z-index: 10;
24+
color: gray; font-size: 0.9em; font-weight: bold; font-family: Courier New; }
2225
</style>
2326

2427

@@ -57,6 +60,8 @@ <h2 id="project_tagline">{{ site.description | default: site.github.project_tagl
5760
<a class="tar_download_link" href="{{ site.github.tar_url }}">Download this project as a tar.gz file</a>
5861
</section>
5962
{% endif %}
63+
64+
<div id="lastmod">Updated: {{ page.last_modified_at | date: '%Y. %B %d.' }}</div>
6065
</header>
6166
</div>
6267

0 commit comments

Comments
 (0)