Skip to content

Commit e9fc29e

Browse files
authored
Trim link titles in next/previous buttons for 10 myths series (#60)
Adjust our purpose-built template for intra-series linking to recognize the 10 myths series and trim links from redundant text. Reviewed by @jabraham17 -- thanks! Before: <img width="1430" height="352" alt="image" src="https://github.com/user-attachments/assets/0368c169-e4fc-4dbd-9a9e-f85c717a849a" /> After: <img width="1402" height="218" alt="image" src="https://github.com/user-attachments/assets/d378eaf2-f176-49ed-a285-52e8b03d584c" />
2 parents 042171c + 1132e39 commit e9fc29e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{{ if and (strings.Contains .name "Advent of Code 2022, Day") (eq .series "Advent of Code 2022") }}
22
{{ strings.TrimPrefix "Advent of Code 2022," .name }}
3+
{{ else if and (strings.Contains .name "10 Myths About Scalable Parallel Programming Languages (Redux),") (eq .series "10 Myths About Scalable Parallel Programming Languages Redux") }}
4+
{{ strings.TrimPrefix "10 Myths About Scalable Parallel Programming Languages (Redux)," .name }}
35
{{ else }}
46
{{ .name }}
57
{{ end }}

0 commit comments

Comments
 (0)