Skip to content

Commit 71789fe

Browse files
committed
Adding code sample licence notice to post footer
1 parent 9e0bbbe commit 71789fe

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ rss: agileobjects
3636
contact_icon: true
3737

3838
# Projects
39+
ao_github: 'https://github.com/agileobjects/agileobjects.github.io'
3940
am_nuget: 'https://www.nuget.org/packages/AgileObjects.AgileMapper'
4041
am_github: 'https://github.com/agileobjects/AgileMapper'
4142
am_docs: 'https://agilemapper.readthedocs.io'

_includes/footer.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<footer id="colophon" class="site-footer">
22
<p class="site-info inner">
3-
<a href="#">{{ site.name }}</a> &copy; {{ site.time | date: '%Y' }}.
4-
Powered by <a target="_blank" href="https://jekyllrb.com/">Jekyll</a>.
3+
<span class="no-wrap"><a href="#">{{ site.name }}</a> &copy; {{ site.time | date: '%Y' }}.</span>
4+
{% if page.layout == 'post' %}
5+
<span class="no-wrap">Code samples have <a href="{{ site.ao_github }}/blob/master/LICENSE">MIT license</a>.</span>
6+
{% endif %}
7+
<span class="no-wrap">Powered by <a target="_blank" href="https://jekyllrb.com/">Jekyll</a>.</span>
58
</p>
69
<a id="back-to-top" class="back-to-top" href="#page">
710
<span class="icon-arrow-up" aria-hidden="true"></span>

_sass/_general.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ p > img[src*="#center"] {
135135
margin: 0 auto;
136136
}
137137

138+
.no-wrap {
139+
white-space: nowrap;
140+
}
141+
138142
/* Text meant only for screen readers */
139143
.screen-reader-text,
140144
.site-logo + .site-identity .site-title,

0 commit comments

Comments
 (0)