diff options
author | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-11-11 16:31:04 +0100 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@iot.bzh> | 2016-11-11 16:31:04 +0100 |
commit | 5848a1052714da051ff8361dd880004e8cdc75ce (patch) | |
tree | d5aab63fadb4dfff0d01c39fc9c4738fda4c6314 | |
parent | 80d9194c56e4cecc3a00acd71033ca7ff35064cf (diff) |
webdocs: add rendering date in footer
Change-Id: Id73d13cefdcea8687cdc94754354522e34ba266d
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
-rw-r--r-- | site/_includes/footer_contents.html | 12 | ||||
-rw-r--r-- | site/_plugins/render_time.rb | 18 | ||||
-rw-r--r-- | site/static/styles/scss/webdocs.scss | 7 |
3 files changed, 32 insertions, 5 deletions
diff --git a/site/_includes/footer_contents.html b/site/_includes/footer_contents.html index 6b913e6..fe3b9da 100644 --- a/site/_includes/footer_contents.html +++ b/site/_includes/footer_contents.html @@ -57,7 +57,11 @@ <p style="padding-top:20px"> <a href="https://twitter.com/{{ site.twitter.hashtag }}" class="twitter-follow-button" data-show-count="false">Follow @{{ site.twitter.hashtag }}</a></p> </div> </div> -<p class="copyright_text"> - Copyright © 2016 Automotive Grade Linux Documentation, Licensed under the <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/> - Automotive Grade Linux and feather logos are <a target="_blank" href="http://www.linuxfoundation.org">trademarks</a> of The Linux Foundation. -</p> +<div class="row"> + <div class="col-sm-9"> + <p class="copyright_text">Copyright © 2016 Automotive Grade Linux Documentation, Licensed under the <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/> Automotive Grade Linux and feather logos are <a target="_blank" href="http://www.linuxfoundation.org">trademarks</a> of The Linux Foundation.</p> + </div> + <div class="col-sm-3"> + <small class="stats">{% render_time Page rendered at: %}</small> + </div> +</div> diff --git a/site/_plugins/render_time.rb b/site/_plugins/render_time.rb new file mode 100644 index 0000000..afd0fb4 --- /dev/null +++ b/site/_plugins/render_time.rb @@ -0,0 +1,18 @@ +# Check doc at http://jekyllrb.com/docs/plugins/#tags +# use in page with <p>{% render_time page rendered at: %}</p> + +module Jekyll + class RenderTimeTag < Liquid::Tag + + def initialize(tag_name, text, tokens) + super + @text = text + end + + def render(context) + "#{@text} #{Time.now}" + end + end +end + +Liquid::Template.register_tag('render_time', Jekyll::RenderTimeTag) diff --git a/site/static/styles/scss/webdocs.scss b/site/static/styles/scss/webdocs.scss index edea001..ccd8572 100644 --- a/site/static/styles/scss/webdocs.scss +++ b/site/static/styles/scss/webdocs.scss @@ -98,7 +98,12 @@ footer ul.nav li > a:hover { background-color: $gray-20; } footer .copyright_text { - margin-top: 25px; + //margin-top: 25px; + color: grey; +} + +footer .stats { + color: grey; } .page { |