Skip to content

Commit b656170

Browse files
committed
Update Tsumego Daily widget documentation and styling
1 parent 1e189de commit b656170

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

widgets/tsumego-daily/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ Simple widget for displaying daily tsumego (go problem) from goproblems.com webs
2222
{{ $difficulty := printf "%d %s" $diffVal $diffUnit }}
2323
2424
<div style="text-align: center;">
25-
<h3 style="font-size: 1.4rem; margin: 0 0 4px 0;">
25+
<h3 style="font-size: 1.4rem; margin: 0 0 4px 0">
2626
Medium Problem of the Day
2727
</h3>
28-
<div style="margin-bottom: 6px; font-size: 0.85rem; color: #888;">
28+
<div style="margin-bottom: 6px; font-size: 0.85rem">
2929
{{ $difficulty }} {{ $genre }}
3030
</div>
3131
<a href="{{ $problemUrl }}" target="_blank">
@@ -37,3 +37,8 @@ Simple widget for displaying daily tsumego (go problem) from goproblems.com webs
3737
{{ end }}
3838
{{ end }}
3939
```
40+
41+
## Configuration
42+
43+
- `cache: 6h` – reasonable since the problem updates daily.
44+
- Change `{{ $targetCategory := "medium" }}` to `begubber`, `easy` or `hard`, to select a different difficulty.

0 commit comments

Comments
 (0)