We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91d53f commit d39dd5dCopy full SHA for d39dd5d
src/partials/toc-ad.hbs
@@ -15,13 +15,18 @@
15
{{/if}}
16
17
<a href="{{{page.attributes.ad-link}}}" target="_blank">
18
+
19
+ {{#unless page.attributes.ad-image}}
20
{{#with page.attributes.ad-icon}}
21
<i class="toc-ad-icon toc-ad-icon--{{{this}}}"></i>
22
{{/with}}
23
+ {{/unless}}
24
25
+ {{#unless page.attributes.ad-icon}}
26
{{#with page.attributes.ad-image}}
27
<img class="toc-ad-image" src="{{{this}}}" alt="{{{ page.attributes.ad-title }}}">
28
29
30
31
<h2 class="toc-ad-title">
32
{{{page.attributes.ad-title}}}
0 commit comments