mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-12 16:47:24 +01:00
Temporary fix for val.town change
They [deprecated their `run` API](https://docs.val.town/api/run/) so I've hardcoded some stats here until I can fix this.
This commit is contained in:
parent
3662aa2883
commit
20d404b521
2 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
{{ $donations := getJSON "https://api.val.town/v1/run/byjp.donations" }}
|
{{/* $donations := getJSON "https://api.val.town/v1/run/byjp.donations" */}}
|
||||||
|
{{/* Having to hard-code for now, as I need to redesign the val.town val, as their API has changed! */}}
|
||||||
|
{{ $donations := dict "totalGBP" 101.36 "currencyCount" 2 }}
|
||||||
<p>Friends have donated <strong>£{{ div (math.Round (mul $donations.totalGBP 100)) 100 }}</strong> (in {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank <em>you</em>!</em></p>
|
<p>Friends have donated <strong>£{{ div (math.Round (mul $donations.totalGBP 100)) 100 }}</strong> (in {{ $donations.currencyCount }} currencies) to worthy causes in thanks. Thank <em>you</em>!</em></p>
|
||||||
<style>
|
<style>
|
||||||
.donate input[type=number] {
|
.donate input[type=number] {
|
||||||
|
|
4
todo.md
4
todo.md
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
Things I might work on within my personal blog's software.
|
Things I might work on within my personal blog's software.
|
||||||
|
|
||||||
|
### Bugs
|
||||||
|
|
||||||
|
- [ ] Fix val.town donations link ([deprecation notice](https://docs.val.town/api/run/))
|
||||||
|
|
||||||
### Ideas
|
### Ideas
|
||||||
|
|
||||||
- [ ] Complete Twitter import
|
- [ ] Complete Twitter import
|
||||||
|
|
Loading…
Reference in a new issue