Card-Fix für Counter und Berechnungs-Fix
All checks were successful
release-tag / release-image (push) Successful in 2m8s

This commit is contained in:
2025-05-11 11:07:25 +02:00
parent 08ef9c7132
commit 2e31bfdc77
3 changed files with 14 additions and 10 deletions

View File

@@ -101,14 +101,6 @@ func main() {
fmt.Println(err)
}
/* */
for a, b := range articles {
articles[a].Counter = getTick(b.Slug)
}
/* */
staticPages, err := article.LoadStatic(pagesDir)
if err != nil {
fmt.Println(err)
@@ -122,6 +114,15 @@ func main() {
http.NotFound(w, r)
return
}
/* */
for a, b := range articles {
articles[a].Counter = getTick(b.Slug)
}
/* */
if err := tplList.ExecuteTemplate(w, "layout", article.ListPage{
Title: "Startseite",
Description: "Alle Artikel im Überblick",