1.0.2 • Published 3 years ago

hexo-sponsor-button v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

hexo-sponsor-button

This simple hexo plugin allow you to integrate in your post a "donate me" button.

At now it only support ko-fi, since I need it. If you need a specific platform, please, open an issue.

Usage

Simply, add in your post .md file the "sponsor" tag:

{% sponsor %}

This allows my plugin to render the button instead.

Configuration

You need to add to your _config.yml these lines:

funding:
  service: ko-fi # At now, ko-fi, patreon, opencollective, liberapay, custom are supported
  username: 'name' # Your service username

To customize even more, here's all available parameters:

funding:
  service: ko-fi # string (required) The funding service, if 'custom', url is required
  url: 'https://example.com/' # string (required if service='custom'), your custom url
  icon_name: 'name' # string (required if service='custom'), the icon displayed for your service, it's take from simple-icons's pack
  username: 'name' # string (required) Your ko-fi username
  enable: true|false # bool (default: true) Specifies if enable this plugin
  text: '' # string (default: undefined) If specified, overrides the default "Support Me on {service}" string
  icon_size: '#px' # string (default: '24px') Specifies the icon size (width = height)
  icon_color: '#rrggbb' # string (default: '#000000') Specifies the icon color
  border_radius: '#px' # string (default: undefined) If provided, make the container's borders rounded
  background_color: '#rrggbb' # string (default: undefined) Specifies the container's background color
  container_padding: '#px' # string (default: '8px') Specifies the internal content padding. Use this in combination with border_radius to achieve a decent result

License

This project is under the MIT license.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago