Skip to content

Commit

Permalink
add watermark partial
Browse files Browse the repository at this point in the history
  • Loading branch information
osfameron committed Jan 10, 2025
1 parent f1dc0e6 commit 036fb18
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/partials/watermark.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{#with page.attributes.watermark}}
<div id="watermark">{{this}}</div>
{{/with}}
{{#if page.attributes.show-preview-banner}}
<div class="article-banner">
<i class="fas fa-cog"></i>
<h2>{{#with page.attributes.watermark}}<tt>{{this}}</tt>
{{else}}Preview{{/with}}</h2>
<p>You are viewing a preview version of the documentation.</p>
<p>Visit the <a href="{{ site.url }}/doctor/tree.html">preview landing page</a> for more details.</p>
</div>
{{/if}}

0 comments on commit 036fb18

Please sign in to comment.