Card-Fix für Counter und Berechnungs-Fix
All checks were successful
release-tag / release-image (push) Successful in 2m8s
All checks were successful
release-tag / release-image (push) Successful in 2m8s
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user