Update 'README.md'

typo, wording
master
Domeniko Gentner 4 years ago
parent 2602a91a9b
commit 0ba324a373
  1. 16
      README.md

@ -32,7 +32,11 @@ Next, you will need to install the configuration files below:
{ {
"bearer": "bearer token of your twitter app", "bearer": "bearer token of your twitter app",
"twitter-handle": "twitter handle", "twitter-handle": "twitter handle",
"output-location": "/hugo/project/directory/data/latest_tweet.json" "output-location": "/hugo/project/directory/data/latest_tweet.json",
"exclude": [
"dontincludethishastag",
"politics"
]
} }
``` ```
@ -76,7 +80,10 @@ I build the template using a [partial template](https://gohugo.io/templates/part
<div class="level mb-0"> <div class="level mb-0">
<span class="level-left"> <span class="level-left">
<a target="_blank" rel="nofollow noreferrer noopener" href="https://twitter.com/{{.user.name}}/status/{{.id_str}}">{{ slicestr .created_at 0 20 }}</a> <a target="_blank"
rel="nofollow noreferrer noopener"
href="https://twitter.com/{{.user.name}}/status/{{.id_str}}">{{ slicestr .created_at 0 20 }}
</a>
</span> </span>
<span class="level-right"> <span class="level-right">
via {{ .source | safeHTML }} via {{ .source | safeHTML }}
@ -112,14 +119,13 @@ The important bit is this go template instruction:
{{ end }} {{ end }}
``` ```
Between these you can simple call the keys from the json, so `name` in dict `user` becomes simple `{{ .user.name }}`. Between these you can call the keys from the json, so `name` in dict `user` becomes simply `{{ .user.name }}`.
Neato, isn't it? If you want to know how it looks like, head over to my [website](https://tuxstash.de/) and scroll down Neato, isn't it? If you want to know how it looks like, head over to my [website](https://tuxstash.de/) and scroll down
to the footer. to the footer.
## Excluding hashtags ## Excluding hashtags
Sometimes you do not want a tweet to decorate the hard work you call your web home. You can add the following to `twitter.json` Sometimes you do not want a tweet to decorate the hard work you call your web home. You can edit the following in `twitter.json` to exclude certain hashtags:
to exclude certain hashtags:
``` ```
"exclude": [ "exclude": [

Loading…
Cancel
Save