From 45bc42f5729cda46d0dcda798dcfcfe6d100a745 Mon Sep 17 00:00:00 2001 From: Alexis Hassler Date: Fri, 17 May 2019 16:28:52 +0200 Subject: [PATCH] Issue #4 Footer with (empty) analytics and powered-by --- _includes/analytics.html | 0 _includes/footer.html | 8 ++++- _includes/formatted_date.html | 61 ---------------------------------- _sass/footer.scss | 22 +++++++----- img/jekyll-tube-bw.png | Bin 0 -> 954 bytes 5 files changed, 20 insertions(+), 71 deletions(-) create mode 100644 _includes/analytics.html delete mode 100644 _includes/formatted_date.html create mode 100644 img/jekyll-tube-bw.png diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..e69de29 diff --git a/_includes/footer.html b/_includes/footer.html index 8c3de31..16aef29 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,11 +1,17 @@ diff --git a/_includes/formatted_date.html b/_includes/formatted_date.html deleted file mode 100644 index 317eeba..0000000 --- a/_includes/formatted_date.html +++ /dev/null @@ -1,61 +0,0 @@ -{% comment %} -See https://github.com/oncleben31/jekyll-date-basic-i18n/ -{% endcomment %} - -{% comment %} -This include allows to translate the days and months in the date by using strings in _data/locales/[lang].yml -This include can be called with three parameters: - - include.date: the date to be processed - - include.format: the date format. (If empty a default format will be used) - - include.lang: lang to use for translation. -{% endcomment %} - -{% comment %} -If the parameter date format is empty the default format set in _config.yml is used. -If there is no default in _config, "%b %-d, %Y" is used. -{% endcomment %} - -{% assign date_format_to_be_translated = include.format | default: site.date_format | default: "%-d %b %Y" %} - -{% comment %} -Init to have the indice of the day in the week (num_day) and the indice of the month in the year (num_mont) -Init the lang parameter depending if it's set in the include call, in the page or in the site settings -{% endcomment %} - -{% assign num_day = include.date | date: "%w" | plus: 0 %} -{% assign num_month = include.date | date: "%-m" | plus: -1 %} -{% assign lang = include.lang | default: page.lang | default: site.lang %} - -{% comment %} -Use translated abbreviated weekday if "%a" is used in the format and the translation is available in _data/locales/[lang].yml -{% endcomment %} - -{% if site.data.locales[lang].abbreviated_weekday[num_day] %} - {% assign date_format_to_be_translated = date_format_to_be_translated | replace: "%a", site.data.locales[lang].abbreviated_weekday[num_day] %} -{% endif %} - -{% comment %} -Use translated full weekday if "%A" is used in the format and the translation is available in _data/locales/[lang].yml -{% endcomment %} - -{% if site.data.locales[lang].full_weekday[num_day] %} - {% assign date_format_to_be_translated = date_format_to_be_translated | replace: "%A", site.data.locales[lang].full_weekday[num_day] %} -{% endif %} - -{% comment %} -Use translated abbreviated month if "%b" is used in the format and the translation is available in _data/locales/[lang].yml -{% endcomment %} - -{% if site.data.locales[lang].abbreviated_month[num_month] %} - {% assign date_format_to_be_translated = date_format_to_be_translated | replace: "%b", site.data.locales[lang].abbreviated_month[num_month] %} -{% endif %} - -{% comment %} -Use translated abbreviated weekday if "%B" is used in the format and the translation is available in _data/locales/[lang].yml -{% endcomment %} - -{% if site.data.locales[lang].full_month[num_month] %} - {% assign date_format_to_be_translated = date_format_to_be_translated | replace: "%B", site.data.locales[lang].full_month[num_month] %} -{% endif %} - -{{ include.date | date: date_format_to_be_translated }} diff --git a/_sass/footer.scss b/_sass/footer.scss index 93c6f59..8832709 100644 --- a/_sass/footer.scss +++ b/_sass/footer.scss @@ -6,24 +6,28 @@ body > footer { footer { display: grid; grid-template-columns: 20% 60% 20%; + font-size: 80%; + + * { + vertical-align: middle; + } + + a { + display: inline-block; + background-repeat: no-repeat; + color: #424242 + } #footer-center { align-self: center; justify-self: center; text-align: center; - font-size: 80%; } #footer-right { align-self: center; justify-self: end; - - a { - background-image: url(https://creativecommons.org/images/public/somerights20.png); - width: 88px; - height: 31px; - display: block; - background-repeat: no-repeat; - } + padding-right: 3px; + font-size: 80%; } } diff --git a/img/jekyll-tube-bw.png b/img/jekyll-tube-bw.png new file mode 100644 index 0000000000000000000000000000000000000000..e0c76d23dea7105fea44500fed1a1708dc8170c9 GIT binary patch literal 954 zcmV;r14aCaP)U2e>g(%s4a30b=xA>V?Ck8ow(T#f)#|V7>+3L0 z6Z7-)$Y!%^!^6Xi#bOcBXtcKqq3$waL&OwN3mG^&2R9o2oOS+TdfudA&?{qj4=cP0pxPI=RF-n zdwY8j1Yug1<-gwLzQ4a8vMhr!RvH-@iL~{Rb_t}@X%Iq|7-MKO8VCl1uq+FPVW3nh zz4~89@!{cN%kw-KhJkv$j%u}vg@pw~B9SKm{%*%t+k@!f;NVN!wsCZH1WG9sML{?m zMy*!+qut;grGQepe13io&N(QhAcP>5N}*6Fyy!$t-wJGRZ$lKtm}#05rfK5w@e$#0 z7>?s091ho}rlx-HsGIy6W-=LY&X-No#Qps}D5YpNn@A)QxVpM}-Elj&W9+)_*Of{I zGcz+Fguu3Kq*5uYuC9LHDFN!Y_X#1HySqE)c^ufZ6DrfC51W@BUHZBG?Qr_*4J zE#2PU!m=!s%VjXekW40_>-tM{0bdGiZf+`;Wj(7@DsUVJilP7j;_*0!hK7FWhJY^x z6h&DyO%o3f51^Dn(=^0lG2GnTw6%CTCeUiNmdoWb8jS`RW3X)-larI!-Q9hTEw+-`Q4}#TF@ej=%UAdS@U@Kc z`TWnit}p1ij#w;)+1c4zG#dR3K(*(W%gMd-82qT`6zBZY cP5Hs_FD1}0Ysn6E0000007*qoM6N<$f?lJ$AOHXW literal 0 HcmV?d00001