From 45271b5298d4a5dd91df97a1d3f3c726bd9398bc Mon Sep 17 00:00:00 2001 From: Jordi Bares Date: Sun, 31 Mar 2019 22:48:17 +0100 Subject: [PATCH] Add footer functionality --- .DS_Store | Bin 0 -> 8196 bytes assets/book.scss | 14 +++++++++++++- exampleSite/config.yml | 8 +++++++- layouts/.DS_Store | Bin 0 -> 6148 bytes layouts/docs/baseof.html | 1 + layouts/partials/.DS_Store | Bin 0 -> 6148 bytes layouts/partials/docs/footer.html | 15 +++++++++++++++ layouts/partials/docs/html-head.html | 19 +++++++++++++++++++ static/custom.css | 5 +++++ 9 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 .DS_Store create mode 100644 layouts/.DS_Store create mode 100644 layouts/partials/.DS_Store create mode 100644 layouts/partials/docs/footer.html create mode 100644 static/custom.css diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0a66c9fe67990cb4d83de2b04a85be2097737d2a GIT binary patch literal 8196 zcmeHMT}&KR6g~$i%uI_6wG?Li!v=zo7Fs}s{$O4HD%dt9T_}{&ZfAFrk*6Y$UXW7+&?oT9x{vdrZSn2D@)0R1vP`7ov zj;~venc>csVUo$%u;m!;RF|7|43FO@E)*<|oKUyV&9&a!7;T$xjLx+*A82ok9%yfw zpO>Y|x|Rp}FHFwN&Rv>+?214FgSQEk@y%(U^+r86<9BnzgsNse^OQ+;R?h4pYj4D&+c7g0<;5)(yK3&)+kF3_ z2YZ%E?72Ma#?#O<9INaYpx2rej#n_;AkhtfXxYI{Ktpj^E4j()P-# zQZ1tGTvp|~NNTM#l1*BVW-Wh)$Jkx1DPsmr<%DanD294nlDVd~TGP%lO?Sqm){rDV zT;HH6gC3i)9vC(@Dazm@w9TqVQ(zNsX;ri#TThy{YRJN^tzFTEa{@{ASTK0FL(xW3 z?&Ksb(JRNsU^v#PY3EtwLUuzS68h)BuQtOw$m_ZR<*GPK?V+kTpMc+ zxFLZC`{+38gE4wk((oia3zy+Jcm>{oYj7RjgPZUPd3<6`*1%t<3T)vG3>-HJca{!3gbA4=P-pPUc_-s<226V9A3hw@G?G+FW`&# zDlXz%_%>d{cko@jf$!r7_$hvgOJaTn%UnJY%r_AD19kE#8$7NB=Wj>ZNbgal@4un! zw_5~H@7`9iySAaJwY{TrWk2(F@K!2u{s@9_;w%$`Z{aF7vOU)#JCt4PF?xu2XHH9u zJZg!sjz(%E;)}`&qebc>^%9XSxi^#I{?-_U%7U2eb2p<#kzJed&XZRKVLc|g*=d9a-J8?JG zV*~ENz1W0p*iQUAgdNz6N3jq4iGzbUgu^(3qr^djbI`&JdYHu=aq)3{f|&R;J`-^9 zC43F9;_G?L>(67}oB7Pk#WRlWI^#6H%+}Q|;nfBrP$*(mvHZVx{qO%9IHNFBh(L(I zMk9blJ@K9{in`uAndRD1su!rT!t54=agyKWE;Z-TVUt`UMLB literal 0 HcmV?d00001 diff --git a/assets/book.scss b/assets/book.scss index 13cdbd8..c2689b9 100644 --- a/assets/book.scss +++ b/assets/book.scss @@ -145,6 +145,18 @@ ul.pagination { } } +.book-footer { + display: flex; + margin-top: $padding-16; + font-size: $font-size-14; + align-items: baseline; + + img { + width: $font-size-14; + vertical-align: bottom; + } +} + .book-posts { min-width: $body-min-width; max-width: $sm-breakpoint; @@ -205,4 +217,4 @@ aside nav, .book-toc nav { padding: $padding-16 * 2 $padding-16; } -} +} \ No newline at end of file diff --git a/exampleSite/config.yml b/exampleSite/config.yml index d450485..3e36c8c 100644 --- a/exampleSite/config.yml +++ b/exampleSite/config.yml @@ -46,4 +46,10 @@ params: # Configure the date format used on the pages # - In git information # - In blog posts - BookDateFormat: "Jan 2, 2006" \ No newline at end of file + BookDateFormat: "Jan 2, 2006" + + # (Optional, default false) Show or hide site footer + BookShowFooter: false + + # Copyright notice for footer + Copyright: ["© 2019 Alex Shpak"] diff --git a/layouts/.DS_Store b/layouts/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c1f243e7fdb09d0f7a7b26544908d318ccd5ece1 GIT binary patch literal 6148 zcmeHKF;2uV5S)b+k!Y@@^cVPnbvjqA2<1~${%At;MjUGhSL=Z8#?;9Tqq9oOZLd4#nbj#!IBbYNAFd zAO)5R+~#uU_5YE+(f=<=T1f#Z@UIlG?(lTj^GU6?t{&&Lw$PvHo^zqQaUK*7QI3gG ij=Au1d>=`fSA5R>+Hg(`I^#hn>Sw@pkx7BSR^S_!@EV%{ literal 0 HcmV?d00001 diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 9ea09fa..57c4bec 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -19,6 +19,7 @@ {{ partial "docs/mobile-header" . }} {{ template "main" . }} {{ partial "docs/git-footer" . }} + {{ partial "docs/footer" . }} {{ template "toc" . }} diff --git a/layouts/partials/.DS_Store b/layouts/partials/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..b1bc858e925d93fb375ed4bdb59c7154b9b72c92 GIT binary patch literal 6148 zcmeH~F>b>!3`IX%4*|M(?5HIN=naG*JwYxI#2y292)gU&`J}kS%^VoPCqO=tGGY4< zmI=TPfAbG80@%@=*n3!+F&{8v!Gzm5@b5#RJ8QCa#;1cJMgVePIgIO=CCK6hvL;(6D>TdL!Lrq2 z4DoujlO?aK$=2E1VL5zQ-r0PLp;>Q-6(%&R0R<@_1y%}t_I&j7|Cj!3{$I5yl>$=W z%@nZVcsd^VQhB!idp)n8v+C +{{ if .Site.Params.BookShowFooter }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 5d6f1c1..7b412f7 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -2,11 +2,30 @@ {{- template "title" . }} | {{ .Site.Title -}} + + + + + + {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} + + + + + + + + +{{ if .RSSLink }} + + +{{ end }} + {{ "