aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/tips-and-tricks.md
diff options
context:
space:
mode:
authorluixal <luixal@gmail.com>2021-02-23 20:17:51 +0100
committerluixal <luixal@gmail.com>2021-02-23 20:17:51 +0100
commit9542de6eb25bfa20b376920b607db864c9e20a7a (patch)
tree4e62e815bb69eeac1f7f2456fce60f259ceb322f /docs/tips-and-tricks.md
parentb6782c92b5ee91c4d6ac19ee01768363d4f0dc8b (diff)
downloadhomer-9542de6eb25bfa20b376920b607db864c9e20a7a.tar.gz
homer-9542de6eb25bfa20b376920b607db864c9e20a7a.tar.zst
homer-9542de6eb25bfa20b376920b607db864c9e20a7a.zip
Fixes identations and link docs.
Diffstat (limited to 'docs/tips-and-tricks.md')
-rw-r--r--docs/tips-and-tricks.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/tips-and-tricks.md b/docs/tips-and-tricks.md
index 63eeeaf..94167fb 100644
--- a/docs/tips-and-tricks.md
+++ b/docs/tips-and-tricks.md
@@ -145,9 +145,9 @@ Now, you can do that using the `mapping` field in your `message` configuration.
145```yml 145```yml
146message: 146message:
147 url: https://api.chucknorris.io/jokes/random 147 url: https://api.chucknorris.io/jokes/random
148 mapping: 148 mapping:
149 title: 'id' 149 title: 'id'
150 content: 'value' 150 content: 'value'
151``` 151```
152 152
153As you would see, using the ID as a title doesn't seem nice, that's why when a field is empty it would keep the default values, like this: 153As you would see, using the ID as a title doesn't seem nice, that's why when a field is empty it would keep the default values, like this:
@@ -155,8 +155,8 @@ As you would see, using the ID as a title doesn't seem nice, that's why when a f
155```yml 155```yml
156message: 156message:
157 url: https://api.chucknorris.io/jokes/random 157 url: https://api.chucknorris.io/jokes/random
158 mapping: 158 mapping:
159 content: 'value' 159 content: 'value'
160 title: "Chuck Norris Facts!" 160 title: "Chuck Norris Facts!"
161``` 161```
162 162
@@ -165,8 +165,8 @@ and even an error message in case the `url` didn't respond or threw an error:
165```yml 165```yml
166message: 166message:
167 url: https://api.chucknorris.io/jokes/random 167 url: https://api.chucknorris.io/jokes/random
168 mapping: 168 mapping:
169 content: 'value' 169 content: 'value'
170 title: "Chuck Norris Facts!" 170 title: "Chuck Norris Facts!"
171 content: "Message could not be loaded" 171 content: "Message could not be loaded"
172``` 172```