diff --git a/.gitignore b/.gitignore index bfb5f45..c5c5d53 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ !README.md !LICENSE -!/templates/*.html +!/templates/** # !Makefile diff --git a/main.go b/main.go index 8731e61..f515ba4 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,7 @@ func main() { log.Fatal(err) } - pages, err := template.ParseFiles("templates/home.html") + pages, err := template.ParseFiles("templates/home.html", "templates/nojs/home.html") if err != nil { log.Fatal(err) } diff --git a/readme.md b/readme.md index 18b15c2..bf71309 100644 --- a/readme.md +++ b/readme.md @@ -21,6 +21,7 @@ goals: - use a memory cache and batch commit to database to keep performance - [x] delete content endpoints - [ ] paste page +- [ ] return a page for nojs clients, such as on delete or upload - [ ] max total storage usage - [ ] normalize mime types (like html) - [ ] filter mime types config diff --git a/templates/home.html b/templates/home.html index b803401..edd137e 100644 --- a/templates/home.html +++ b/templates/home.html @@ -8,6 +8,9 @@

minibin

simple file and paste hosting service

+
diff --git a/templates/nojs/home.html b/templates/nojs/home.html new file mode 100644 index 0000000..b803401 --- /dev/null +++ b/templates/nojs/home.html @@ -0,0 +1,34 @@ + + + + + + minibin + + +

minibin

+

simple file and paste hosting service

+ + + + + + +
+ +
+ + + + +
+ +