hugo-tranquilpeak-theme icon indicating copy to clipboard operation
hugo-tranquilpeak-theme copied to clipboard

Add Support for Buy Me A Coffee Widget

Open xiaoyunyang opened this issue 4 years ago • 1 comments

Buy me a coffee provides a widget that you can simply add to a plain html website as a script.

<script data-name="BMC-Widget" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="xiaoyunyang" data-description="Support me on Buy me a coffee!" data-message="Thank you for visiting. You can now buy me a coffee!" data-color="#FF813F" data-position="right" data-x_margin="18" data-y_margin="18"></script>

bmc

However, it is not so easy using to add this widget to a Hugo-generated website.

Please provide a way in this theme to support Buy me a Coffee widget integration!

xiaoyunyang avatar Jun 03 '20 20:06 xiaoyunyang

You can include a custom script as described here. https://stackoverflow.com/questions/33163202/how-to-include-simple-javascript-within-hugo

maskaravivek avatar Nov 30 '20 23:11 maskaravivek