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 00000000..1c68f830 Binary files /dev/null and b/src/img/nodes-24.png differ 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}}}