This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user