Skip to content

Commit b00d3c9

Browse files
committed
Add a “build <hash> on <date>” footer
1 parent 5ce5b10 commit b00d3c9

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
source 'https://rubygems.org'
22
gem 'github-pages', group: :jekyll_plugins
33
gem 'jekyll-redirect-from'
4+
gem 'jekyll-github-metadata'

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ kramdown:
8383
# Extensions
8484
plugins:
8585
- jekyll-redirect-from # enable "refirect_from" in front matter
86+
- jekyll-github-metadata # add 'site.github' github metadata
8687

8788
sass:
8889
style: compressed

_layouts/default.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ <h1>
111111
<div id="footer" class="col-sm-9 noselect">
112112
<hr/>
113113
<p id="copyright">
114-
&copy; {{ site.copyright.owner }} {{ site.copyright.year }}
114+
&copy; {{ site.copyright.owner }} {{ site.copyright.year }}<br/>
115+
build <a href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}" title>{{ site.github.build_revision | truncate: 8, "" }}</a> on {{ site.time | date: '%Y-%m-%d' }}
115116
</p>
116117
</div> <!-- /#footer -->
117118
</div> <!-- /.row -->

css/styles.scss

+5
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,11 @@ a.decorated {
483483
font-size: 13px;
484484
font-weight: 300;
485485
color: $color-subtle;
486+
487+
// No color highlight for the "build <hash>" link in the footer.
488+
a {
489+
color: $color-subtle;
490+
}
486491
}
487492
}
488493

0 commit comments

Comments
 (0)