Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move index.html outside of static directory since static files aren't…

… available in the application's file system
  • Loading branch information...
commit 86f01c1c7ba4b3b9a594460e4ebdbfc536854e25 1 parent 67bc923
Shawn Smith authored
Showing with 34 additions and 1 deletion.
  1. +33 −0 index.html
  2. +1 −1  kanjihub/kanjihub.go
33 index.html
View
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Kanji Hub</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="">
+ <meta name="author" content="">
+ <!-- styles -->
+ <link rel="stylesheet" href="/public/dist/style.css">
+ <!-- fav and touch icons -->
+ <!--<link rel="shortcut icon" href="/img/icons/favicon.ico">-->
+ <!--<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/img/icons/apple-touch-icon-144-precomposed.png">-->
+ <!--<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/img/icons/apple-touch-icon-114-precomposed.png">-->
+ <!--<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/img/icons/apple-touch-icon-72-precomposed.png">-->
+ <!--<link rel="apple-touch-icon-precomposed" href="/img/icons/apple-touch-icon-57-precomposed.png">-->
+ </head>
+ <body>
+
+ <div id="main-navbar" class="navbar navbar-fixed-top">
+ </div>
+
+ <div id="main-container" class="container-fluid">
+ </div><!--/#main-container -->
+
+ <!-- development mode -->
+ <script data-main="/public/js/main" src="/public/extern/require/require.js"></script>
+
+ <!-- compiled production mode -->
+ <!--<script data-main="dist/main.built" src="/extern/require/require.js"></script>-->
+
+ </body>
+</html>
2  kanjihub/kanjihub.go
View
@@ -31,7 +31,7 @@ func init() {
}
func HomeHandler(w http.ResponseWriter, r *http.Request) {
- b, err := ioutil.ReadFile("frontend/public/index.html")
+ b, err := ioutil.ReadFile("index.html")
if err != nil {
http.Error(w, err.Error(), http.StatusNotFound)
return
Please sign in to comment.
Something went wrong with that request. Please try again.