R.T. Hinkel

SendOwl shortcode for Hugo

Dev

Apr 13, 2021


This is a simple HUGO shortcode to quickly insert a customizable SendOwl link into a post in markdown.

sendowl.html

10
11
12
13
14
15
<a href="{{ .Get "link" }}">
    <h2 id="sendowl">{{ .Get "text" }}</h2>
</a>
<script type="text/javascript" 
    src="https://transactions.sendowl.com/assets/sendowl.js">
</script>

You can insert it like this:

10
 {{< sendowl link="[Link from SendOwl product]" text="Buy Now"> >}}

Pretty easy and simple!


HUGO, ECommerce, SendOwl, HTML, Shortcode, Dev

Last modified: May 11, 2021


Related Posts


Comments