Development

Add PayPal Donations to Jekyll Site

donations:
  paypal:
    text:           Donate      # Button text
    id:             7334HG9754  # PayPal button ID
{% if site.donations.paypal %}
  <form class="paypalform" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="{{ site.donations.paypal.id | default: 'UNCONFIGURED' }}">
    <button class="donations uk-button uk-button-primary" name="submit">
      <span>{{ site.donations.paypal.text | default: 'Donations' }}</span>
    </button>
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
  </form>
{% endif %}

Related Posts

Hugo

The Ultimate Guide to Choosing and Customizing Hugo Themes

Unleashing the power of Hugo static generator for your website.

Hugo

Unlock the Potential of Your Hugo Blog

Delve deeper into the world of Hugo blog themes and how to get started fast.