Add static files handling

This commit is contained in:
mikgor 2018-10-25 20:31:50 +02:00
parent 2bf819f11a
commit 24ca2bd55f
3 changed files with 5 additions and 4 deletions

View File

@ -51,5 +51,6 @@ func Initialize() {
for k := range Pages {
http.HandleFunc(Pages[k].Path, Pages[k].HandlePage)
}
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
http.ListenAndServe(":8000", nil)
}

3
static/css/style.css Normal file
View File

@ -0,0 +1,3 @@
body {
font-family: 'Roboto', sans-serif;
}

View File

@ -4,12 +4,9 @@
<head>
<title>Elektromarket</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="static/css/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<<<<<<< HEAD
=======
<link rel="stylesheet" href="{% static 'scheduyapp/style.css' %}"/>
>>>>>>> 72deabcadad24618e6d3bd327848938f263a02c1
</head>
<body>
[logo]