Skip to content

Commit d7ec140

Browse files
Christophe DelordChristophe Delord
authored andcommitted
add donation buttons
1 parent 5cb6ff2 commit d7ec140

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
github: CDSoft
2+
liberapay: LuaX
3+
ko_fi: CDSoft

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ invited to contribute financially to its development.
5050

5151
These prices are per month and per tools (see [`PRICING`](PRICING)).
5252

53-
- donate with Liberapay: <https://liberapay.com/LuaX/donate>
54-
- donate with GitHub Sponsor: <https://github.com/sponsors/CDSoft>
53+
<a href='https://liberapay.com/LuaX/donate' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://liberapay.com/assets/widgets/donate.svg' border='0' alt='Donate using Liberapay' /></a>
54+
<a href='https://ko-fi.com/K3K11CD108' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi6.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
55+
<a href='https://github.com/sponsors/CDSoft' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86' border='0' alt='Donate using Github' /></a>
5556

5657
Feel free to promote Ypp!
5758

doc/ypp.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ users are cordially invited to contribute financially to its development.
5858

5959
These prices are per month and per tools (see [`PRICING`](PRICING)).
6060

61-
- donate with Liberapay: <https://liberapay.com/LuaX/donate>
62-
- donate with GitHub Sponsor: <https://github.com/sponsors/CDSoft>
61+
@@[[ donate = function(url) return function(img) return function(alt)
62+
return ("<a href='%s' target='_blank'><img height='36' style='border:0px;height:36px;' src='%s' border='0' alt='%s' /></a>"):format(url, img, alt)
63+
end end end]]
64+
65+
@donate "https://liberapay.com/LuaX/donate" "https://liberapay.com/assets/widgets/donate.svg" "Donate using Liberapay"
66+
@donate "https://ko-fi.com/K3K11CD108" "https://storage.ko-fi.com/cdn/kofi6.png?v=6" "Buy Me a Coffee at ko-fi.com"
67+
@donate "https://github.com/sponsors/CDSoft" "https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86" "Donate using Github"
6368

6469
Feel free to promote Ypp!
6570

0 commit comments

Comments
 (0)