From 5be8bce461f38e67ff0634ec7108ea30d6129481 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Tue, 16 Jun 2026 10:47:30 +0200 Subject: [PATCH] feat: add anime_recommendations component template --- .../components/anime_recommendations.gohtml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 templates/components/anime_recommendations.gohtml diff --git a/templates/components/anime_recommendations.gohtml b/templates/components/anime_recommendations.gohtml new file mode 100644 index 0000000..8131af6 --- /dev/null +++ b/templates/components/anime_recommendations.gohtml @@ -0,0 +1,57 @@ +{{define "anime_recommendations"}} +{{if .Items}} +
+

Recommendations

+
+ {{range (slice .Items 0 (min (len .Items) 8))}} + +
+ {{.Entry.Title}} +
+ {{.Entry.Title}} +
+ {{end}} +
+
+{{end}} +{{end}} + +{{define "anime_recommendations_loading"}} +
+
+

Recommendations

+
+ {{range (seq 8)}} +
+
+
+
+ {{end}} +
+
+
+{{end}} + +{{define "anime_recommendations_initial_loading"}} +
+
+

Recommendations

+
+ {{range (seq 8)}} +
+
+
+
+ {{end}} +
+
+
+{{end}}