From 1f589b8d00d65efcc8e560736594308e553524e3 Mon Sep 17 00:00:00 2001 From: Marvin Blum Date: Fri, 13 Dec 2019 19:25:31 +0100 Subject: [PATCH] HTML head. --- pages/landing_page.go | 4 +--- run_dev.cmd | 6 ++++++ template/landing_page.html | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 run_dev.cmd diff --git a/pages/landing_page.go b/pages/landing_page.go index ea39943..1f01407 100644 --- a/pages/landing_page.go +++ b/pages/landing_page.go @@ -7,9 +7,7 @@ import ( ) var landingPageI18n = map[string]map[string]string{ - "de": { - "test": "Hello World", - }, + "de": {}, } func LandingPageHandler(w http.ResponseWriter, r *http.Request) { diff --git a/run_dev.cmd b/run_dev.cmd new file mode 100644 index 0000000..0cb4389 --- /dev/null +++ b/run_dev.cmd @@ -0,0 +1,6 @@ +set SCHNITTFEST_HOST=localhost:8080 +set SCHNITTFEST_LOGLEVEL=debug +set SCHNITTFEST_ALLOWED_ORIGINS=* +set SCHNITTFEST_TLS_ENABLE=false + +go run main.go diff --git a/template/landing_page.html b/template/landing_page.html index 1a92b1e..ffa0ff4 100644 --- a/template/landing_page.html +++ b/template/landing_page.html @@ -1 +1,36 @@ -{{index .Vars "test"}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Schnittfest + + + +Hallo Welt! + + +