Fix Web Monetization option not showing on Customize page

This commit is contained in:
Matt Baer 2021-05-25 10:17:57 -04:00
parent 73e0b72878
commit ddc7087d1e

View file

@ -157,12 +157,12 @@ textarea.section.norm {
</div>
</div>
{{if .Monetization}}
{{if .UserPage.StaticPage.AppCfg.Monetization}}
<div class="option">
<h2>Web Monetization</h2>
<div class="section">
<p class="explain">Web Monetization enables you to receive micropayments from readers that have a <a href="https://coil.com">Coil membership</a>. Add your payment pointer to enable Web Monetization on your blog.</p>
<input type="text" name="monetization_pointer" style="width:100%" value="{{.MonetizationPointer}}" placeholder="$wallet.example.com/alice" />
<input type="text" name="monetization_pointer" style="width:100%" value="{{.Collection.Monetization}}" placeholder="$wallet.example.com/alice" />
</div>
</div>
{{end}}