Skip to content

Commit 036fb18

Browse files
committed
add watermark partial
1 parent f1dc0e6 commit 036fb18

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/partials/watermark.hbs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{#with page.attributes.watermark}}
2+
<div id="watermark">{{this}}</div>
3+
{{/with}}
4+
{{#if page.attributes.show-preview-banner}}
5+
<div class="article-banner">
6+
<i class="fas fa-cog"></i>
7+
<h2>{{#with page.attributes.watermark}}<tt>{{this}}</tt>
8+
{{else}}Preview{{/with}}</h2>
9+
<p>You are viewing a preview version of the documentation.</p>
10+
<p>Visit the <a href="{{ site.url }}/doctor/tree.html">preview landing page</a> for more details.</p>
11+
</div>
12+
{{/if}}

0 commit comments

Comments
 (0)