bugfix
All checks were successful
release-tag / release-image (push) Successful in 2m20s

This commit is contained in:
2025-05-11 16:56:08 +02:00
parent 7493ca278e
commit dce90ca88b

View File

@@ -174,8 +174,8 @@ func main() {
/* */
for a, b := range articles {
articles[a].Counter = getTick(b.Slug)
for a, b := range Xarticles {
Xarticles[a].Counter = getTick(b.Slug)
}
/* */
@@ -183,7 +183,7 @@ func main() {
if err := tplList.ExecuteTemplate(w, "layout", article.ListPage{
Title: "Startseite",
Description: "Alle Artikel im Überblick",
Articles: articles,
Articles: Xarticles,
}); err != nil {
http.Error(w, err.Error(), 500)
}
@@ -191,7 +191,7 @@ func main() {
mux.HandleFunc("/post/", func(w http.ResponseWriter, r *http.Request) {
slug := strings.TrimPrefix(r.URL.Path, "/post/")
for _, a := range articles {
for _, a := range Xarticles {
if a.Slug == slug {
IncTick(slug)
t := getTick(slug)