diff --git a/_includes/donate.html b/_includes/donate.html index b1d3891..3161836 100644 --- a/_includes/donate.html +++ b/_includes/donate.html @@ -12,7 +12,10 @@ and I decided to make it open source because I thought it could be useful to many people.

If you liked the project, please consider making a small donation, it really helps :)

- Donate with PayPal + + + + diff --git a/_sass/_colors.scss b/_sass/_colors.scss index 973f11a..88283e5 100644 --- a/_sass/_colors.scss +++ b/_sass/_colors.scss @@ -5,4 +5,5 @@ $blackColor: #2d3436; $veryBlackColor: #202426; $greenDark: #00372c; $yellowColor: #fdcb6e; -$orangeColor: #e17055; \ No newline at end of file +$orangeColor: #e17055; +$pinkColor: #e84393; \ No newline at end of file diff --git a/_sass/_donate.scss b/_sass/_donate.scss index 16f1e7a..5992208 100644 --- a/_sass/_donate.scss +++ b/_sass/_donate.scss @@ -25,7 +25,6 @@ .btn { font-weight: 700; font-size: 1.2em; - background-color: $orangeColor; color: white !important; padding: 10px 25px 10px 25px; border-radius: 40px; @@ -35,4 +34,9 @@ font-size: 1.3em; } } + + .mbtn { + height: 60px; + display: inline; + } } \ No newline at end of file diff --git a/assets/images/githubsponsor.png b/assets/images/githubsponsor.png new file mode 100644 index 0000000..2a4d314 Binary files /dev/null and b/assets/images/githubsponsor.png differ diff --git a/assets/images/paypal.png b/assets/images/paypal.png new file mode 100644 index 0000000..23e9e9f Binary files /dev/null and b/assets/images/paypal.png differ diff --git a/docs/matches.md b/docs/matches.md index 3859e36..89474ba 100644 --- a/docs/matches.md +++ b/docs/matches.md @@ -303,4 +303,27 @@ found in the [official chrono documentation](https://docs.rs/chrono/0.3.1/chrono params: format: "%H:%M" ``` -{% endraw %} \ No newline at end of file +{% endraw %} + +### Random Extension + +Introduced in version 0.4.1, the **Random Extension** can be used to write non-deterministic replacement texts. Said in other words, you can now specify a set of possible expansions for a match, useful to avoid repetitions. + +You can use this feature by declaring a variable of type `random` and then passing a number of `choices` as a parameter: + +{% raw %} +```yaml + - trigger: ":quote" + replace: "{{output}}" + vars: + - name: output + type: random + params: + choices: + - "Every moment is a fresh beginning." + - "Everything you can imagine is real." + - "Whatever you do, do it well." +``` +{% endraw %} + +In this case, typing `:quote` will expand randomly to one of the tree quotes. \ No newline at end of file diff --git a/install/win.md b/install/win.md index 8b5ce80..e99115a 100644 --- a/install/win.md +++ b/install/win.md @@ -2,7 +2,7 @@ title: Install on Windows layout: docs --- -The easiest way to install espanso on Windows is by using the official installer. +The easiest way to install espanso on Windows is by using the official installer. **Note: espanso currently supports Windows 10 only**. ### Using the Installer