Add static files handling
This commit is contained in:
parent
2bf819f11a
commit
24ca2bd55f
@ -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
3
static/css/style.css
Normal file
@ -0,0 +1,3 @@
|
||||
body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user