Skip to content

Commit 1d75868

Browse files
committed
Show 'last modified at' in footer.
1 parent 3af49ee commit 1d75868

File tree

6 files changed

+26
-3
lines changed

6 files changed

+26
-3
lines changed

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
source 'https://rubygems.org'
22
gem 'jemoji'
33
gem 'jekyll-sitemap'
4+
5+
group :jekyll_plugins do
6+
gem "jekyll-last-modified-at"
7+
end
8+
9+
gem "webrick", "~> 1.8"

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ GEM
3939
rouge (~> 3.0)
4040
safe_yaml (~> 1.0)
4141
terminal-table (~> 2.0)
42+
jekyll-last-modified-at (1.3.2)
43+
jekyll (>= 3.7, < 5.0)
4244
jekyll-sass-converter (2.1.0)
4345
sassc (> 2.0.1, < 3.0)
4446
jekyll-sitemap (1.4.0)
@@ -80,14 +82,17 @@ GEM
8082
tzinfo (2.0.4)
8183
concurrent-ruby (~> 1.0)
8284
unicode-display_width (1.7.0)
85+
webrick (1.8.1)
8386
zeitwerk (2.4.2)
8487

8588
PLATFORMS
8689
ruby
8790

8891
DEPENDENCIES
92+
jekyll-last-modified-at
8993
jekyll-sitemap
9094
jemoji
95+
webrick (~> 1.8)
9196

9297
BUNDLED WITH
9398
2.2.26

_config.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ permalink: pretty
4545
plugins:
4646
- jemoji
4747
- jekyll-sitemap
48+
- jekyll-last-modified-at
4849

4950
#
5051
# !! Danger zone !!
@@ -78,8 +79,9 @@ t:
7879
en:
7980
description: "IO bus for model railroad accessories control"
8081
keywords: io,bus,mtb,module,uni,ttl,protocol
81-
footer: "<a href='https://github.com/kmzbrnoI/mtb-web'>This page</a> was created by <a href='http://apophis.cz/'>Jan Horáček</a> using <a href='http://jekyllrb.com'>Jekyll</a> with style <a href='https://github.com/ttskch/jekyll-ttskch-theme'>TtskchTheme</a>."
8282
cz:
8383
description: "IO sběrnice pro řízení příslušenství modelových kolejišť"
8484
keywords: io,sběrnice,mtb,modul,uni,ttl,protokol
85-
footer: "<a href='https://github.com/kmzbrnoI/mtb-web'>Tuto stránku</a> vytvořil <a href='http://apophis.cz/'>Jan Horáček</a> za použití nástroje <a href='http://jekyllrb.com'>Jekyll</a> a stylu <a href='https://github.com/ttskch/jekyll-ttskch-theme'>TtskchTheme</a>."
85+
86+
last-modified-at:
87+
date-format: '%%y-%b-%d'

_includes/footer_cz.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Poslední úprava stránky: {{ page.last_modified_at | date: "%-d.%-m.%Y" }}.
2+
Build: {{ site.time | date: "%-d.%-m.%Y" }} <br>
3+
<a href='https://github.com/kmzbrnoI/mtb-web'>Repozitář s webem</a>.
4+
Vytvořeno pomocí <a href='http://jekyllrb.com'>Jekyll</a> a stylu
5+
<a href='https://github.com/ttskch/jekyll-ttskch-theme'>TtskchTheme</a>.

_includes/footer_en.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Page last modified: {{ page.last_modified_at | date: "%-d.%-m.%Y" }}.
2+
Build: {{ site.time | date: "%-d.%-m.%Y" }} <br>
3+
<a href='https://github.com/kmzbrnoI/mtb-web'>Repository</a>.
4+
Created using <a href='http://jekyllrb.com'>Jekyll</a> and style
5+
<a href='https://github.com/ttskch/jekyll-ttskch-theme'>TtskchTheme</a>.

_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h1 class="clearfix">
9494

9595
<footer class="site-footer">
9696
<div class="inner">
97-
<span>{{ site.t[page.lang]['footer'] }}</span>
97+
{% include footer_{{page.lang}}.html %}
9898
</div>
9999
</footer>
100100

0 commit comments

Comments
 (0)