From 29ae8d71a3504e3bb94542ddc5a8f40d8e747a5b Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Wed, 9 Oct 2024 10:55:46 +0100 Subject: [PATCH] Toc ad image (#269) --- src/css/toc-ad.css | 4 ++++ src/img/nodes-24.png | Bin 0 -> 7209 bytes src/partials/toc-ad.hbs | 5 +++++ 3 files changed, 9 insertions(+) create mode 100644 src/img/nodes-24.png diff --git a/src/css/toc-ad.css b/src/css/toc-ad.css index 0a19479b..7c8609e0 100644 --- a/src/css/toc-ad.css +++ b/src/css/toc-ad.css @@ -18,6 +18,10 @@ background-color: transparent !important; } +.toc .toc-ad .toc-ad-image { + width: 192px; +} + .toc .toc-ad .toc-ad-icon { display: block; content: ""; diff --git a/src/img/nodes-24.png b/src/img/nodes-24.png new file mode 100644 index 0000000000000000000000000000000000000000..1c68f8308dce483a5bf281ad53b95fb3d1be33a6 GIT binary patch literal 7209 zcmY*;by!qg*ZvGKbV!$glyr-LbhmU!k1&9ANJzIdN_TgIl0)~<-7u6OAuu!|eE7c4 z_k6$KI@dbu-s{}!UVH89I)Cj5bv1b$ObSc@0Dz;YAfx#dyPlj69rX0>UPh~Z3P4v) zc_~2kIMvUmMTn)oB1Bac!1{#I0jNL%0P=MU z0igWDdG{3mn!=MmRsR!_bAkV-n2Yo;yDJy@U(ENntS-q<<|$w}DHyl{09b^79SBIz zBzsabu+i3c(^pjye(z|{X>Q>Nw&e7*cluie5b+d#g7%hf=Cq#nb`Gw>o}zUBVF*9r zziBQy+W%18Y(?qxRn=*w9bGJG1vt4mx#`3(X=!OiTr42Mnlf_#ls~OR>8#z{oP@c! zJUl!&J@_~sU97lxgoK2+xOusFc{!dK9IjptZswjG4zBe775QHs8B5pqE;deXHjWOo ze|62ljvw7b>FEA8`q%!uPd6LL|8;V3{b#JF0lEHu;o{-s=K5FrsZ``|R`{)pjpbA4 zzxrZ4BL89jf4P79h;aRF{{L*|zmxta`!uQ;rU=)+$0mkJZnB960FW;!%1CN^0*|vW z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e-X+1H>gL%u<$VogLoya_^hVO&6ulKJQC zpFY04m-ORzY4r=KHlP!Hmg(yMHO!F%4PR0_w%a z4h5n&Q@)r2H2A%j6AVJe4zvP9DEs|O`pc5Z7V$FDGq}D^zl4dmu@ipIV&vum(SFlF z-N{*e6F#D0E{c1==tacWWJN_>u(C@?vdKTahJ~ z-)EO+k$%)N%bvEZ+{{StQ{l?uck^83#mK8MiLW$@{oVVGumpA`4G%zF&R8BJjtAt_ zemWmD(m?{Z2@1Km7`e9R+24@qRTp@?l}f&4%K2s<$$R0_J8VQ02PDDRw8wSy+UL*j zGw}~fzThiG*}O`Nt7ywroHo=z+7*6n%8PG8F6D_|L?iUN`IjjH(sR|_%~7QL?Svnu zD*8cT8Pa?ms5RtyDdf^@+a=9**F$b~H`;E`RNK|ki*9&h85jvt8&C>M+xT=Yr|(|i zc=TV^cprDKU7&JropZA73PBz64~0F2;GDceYY z_GrI$buX$a%7GGMXeV|ZS^_k-G_4t@8ec^F8v5mbyrhVh%)VD-i2vVPln9ik-zlZ* a5xEi@Ke72+|KCeNfTFCLOtq9*(Ek7i<$XK= literal 0 HcmV?d00001 diff --git a/src/partials/toc-ad.hbs b/src/partials/toc-ad.hbs index c4ba1241..f3a7a055 100644 --- a/src/partials/toc-ad.hbs +++ b/src/partials/toc-ad.hbs @@ -15,13 +15,18 @@ {{/if}} + + {{#unless page.attributes.ad-image}} {{#with page.attributes.ad-icon}} {{/with}} + {{/unless}} + {{#unless page.attributes.ad-icon}} {{#with page.attributes.ad-image}} {{{ page.attributes.ad-title }}} {{/with}} + {{/unless}}

{{{page.attributes.ad-title}}}