Skip to content

Commit 79d32e9

Browse files
mriggerclaude
andcommitted
Add live bugs found counter to homepage and refresh bugs page
- New bug-counter shortcode reads data/bugs.json at build time and displays the count (matching export.py filter) linked to /bugs/ - Regenerated bugs.html via export.py to sync counts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b67c5fb commit 79d32e9

3 files changed

Lines changed: 1182 additions & 1155 deletions

File tree

content/home/welcome.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ Core Areas:
6666
* Systems
6767
* Programming Languages
6868
* CS for Nature Conservation 🆕
69-
69+
7070
<!-- {{< figure src="group-photos/group-2025-1.jpg">}} -->
7171

72+
{{< bug-counter >}}
7273

7374
[{{<icon name="twitter" pack="fab" >}}](https://twitter.com/test_nus)
7475
[{{<icon name="github" pack="fab" >}}](https://github.com/nus-test/)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{{ $count := 0 }}
2+
{{ range site.Data.bugs }}
3+
{{ $res := .resolution }}
4+
{{ if or (eq $res "confirmed") (eq $res "fixed") (eq $res "open") (eq $res nil) }}
5+
{{ $count = add $count 1 }}
6+
{{ end }}
7+
{{ end }}
8+
<a href="/bugs/" style="text-decoration: none;">
9+
<div style="
10+
display: inline-block;
11+
margin: 1rem 0;
12+
padding: 0.75rem 1.5rem;
13+
background: linear-gradient(135deg, #2c3e50, #3d5166);
14+
color: white;
15+
border-radius: 8px;
16+
font-size: 1.15rem;
17+
font-weight: 600;
18+
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
19+
transition: transform 0.15s, box-shadow 0.15s;
20+
"
21+
onmouseover="this.style.transform='translateY(-2px)';this.style.boxShadow='0 4px 14px rgba(0,0,0,0.25)'"
22+
onmouseout="this.style.transform='';this.style.boxShadow='0 2px 8px rgba(0,0,0,0.2)'">
23+
🐛 <strong>{{ $count }}</strong> Bugs Found &rarr;
24+
</div>
25+
</a>

0 commit comments

Comments
 (0)