Fixed video id issue
This commit is contained in:
parent
4764fb6f8a
commit
3cc5fc9d50
7
main.go
7
main.go
|
@ -23,11 +23,6 @@ type Index struct {
|
||||||
Nav bool
|
Nav bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type responseWriter struct {
|
|
||||||
http.ResponseWriter
|
|
||||||
status int
|
|
||||||
}
|
|
||||||
|
|
||||||
type GalleryItems struct {
|
type GalleryItems struct {
|
||||||
URL string
|
URL string
|
||||||
ID int
|
ID int
|
||||||
|
@ -91,7 +86,7 @@ var socialItems = []SocialItems{
|
||||||
}
|
}
|
||||||
|
|
||||||
var videoItems = []VideoItems{
|
var videoItems = []VideoItems{
|
||||||
{"/src/assets/videos/orange-cat.mp4", 2, "Orange Cat", "Cute little orange cat that my friend has!! Hes so cute lol.", "/src/assets/video_thumbnails/orange-cat.png"},
|
{"/src/assets/videos/orange-cat.mp4", 1, "Orange Cat", "Cute little orange cat that my friend has!! Hes so cute lol.", "/src/assets/video_thumbnails/orange-cat.png"},
|
||||||
}
|
}
|
||||||
|
|
||||||
func renderTemplate(w http.ResponseWriter, tmpl string, data *Index, nav bool) {
|
func renderTemplate(w http.ResponseWriter, tmpl string, data *Index, nav bool) {
|
||||||
|
|
Loading…
Reference in a new issue