From 5848a1052714da051ff8361dd880004e8cdc75ce Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Fri, 11 Nov 2016 16:31:04 +0100 Subject: webdocs: add rendering date in footer Change-Id: Id73d13cefdcea8687cdc94754354522e34ba266d Signed-off-by: Stephane Desneux --- site/_includes/footer_contents.html | 12 ++++++++---- site/_plugins/render_time.rb | 18 ++++++++++++++++++ site/static/styles/scss/webdocs.scss | 7 ++++++- 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 site/_plugins/render_time.rb (limited to 'site') 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 @@

- +
+
+ +
+
+ {% render_time Page rendered at: %} +
+
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

{% render_time page rendered at: %}

+ +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 { -- cgit 1.2.3-korg