tangled
alpha
login
or
join now
tulkdan.dev
/
Homelab
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
:sparkles: updated glance's startpage
tulkdan.dev
2 months ago
1799a039
6e10b89f
+32
-20
1 changed file
expand all
collapse all
unified
split
glance
glances
startpage.yml
+32
-20
glance/glances/startpage.yml
···
43
43
- symbol: NU
44
44
name: Nubank
45
45
46
46
-
- type: bookmarks
47
47
-
groups:
48
48
-
- title: General
49
49
-
links:
50
50
-
- title: Gmail
51
51
-
url: https://mail.google.com/mail/u/0/
52
52
-
- title: Proton mail
53
53
-
url: https://mail.proton.me
54
54
-
- title: Github
55
55
-
url: https://github.com/
56
56
-
- title: Social
57
57
-
links:
58
58
-
- title: Reddit
59
59
-
url: https://www.reddit.com/
60
60
-
- title: Bluesky
61
61
-
url: https://bsky.app
62
62
-
- title: Instagram
63
63
-
url: https://www.instagram.com/
64
64
-
- title: Mastodon
65
65
-
url: https://phany.social
46
46
+
- type: custom-api
47
47
+
title: Daily Go Problem
48
48
+
cache: 6h
49
49
+
url: https://www.goproblems.com/api/v2/problems/daily
50
50
+
template: |
51
51
+
{{ $targetCategory := "medium" }}
52
52
+
53
53
+
{{ range .JSON.Array "entries" }}
54
54
+
{{ if eq (.String "category") $targetCategory }}
55
55
+
{{ $id := .Int "id" }}
56
56
+
{{ $imageUrl := .String "imageUrl" }}
57
57
+
{{ $diffVal := .Int "difficulty.value" }}
58
58
+
{{ $diffUnit := .String "difficulty.unit" }}
59
59
+
{{ $genre := .String "genre" }}
60
60
+
{{ $problemUrl := printf "https://www.goproblems.com/problems/%d" $id }}
61
61
+
{{ $difficulty := printf "%d %s" $diffVal $diffUnit }}
62
62
+
63
63
+
<div style="text-align: center;">
64
64
+
<h3 style="font-size: 1.4rem; margin: 0 0 4px 0">
65
65
+
Medium Problem of the Day
66
66
+
</h3>
67
67
+
<div style="margin-bottom: 6px; font-size: 0.85rem">
68
68
+
{{ $difficulty }} {{ $genre }}
69
69
+
</div>
70
70
+
<a href="{{ $problemUrl }}" target="_blank">
71
71
+
<img src="{{ $imageUrl }}"
72
72
+
alt="Go Problem of the Day"
73
73
+
style="max-width:100%; height:auto; border-radius: 3px; display: inline">
74
74
+
</a>
75
75
+
</div>
76
76
+
{{ end }}
77
77
+
{{ end }}