diff --git a/.gitignore b/.gitignore
index 7adb2e4..2e02529 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,8 @@
books/
+cover/
img/
trantor
.*.swp
+upload/upload
+upload/books
+upload/cover
diff --git a/book.html b/book.html
new file mode 100644
index 0000000..eaffd3b
--- /dev/null
+++ b/book.html
@@ -0,0 +1,10 @@
+
{{.Title}}
+{{.Description}}
+
+
+ - Author: {{range .Author}}{{.}}, {{end}}
+ - Publisher: {{.Publisher}}
+ - Tags: {{range .Subject}}{{.}}, {{end}}
+ - Date: {{.Date}}
+ - Lang: {{range .Lang}}{{.}} {{end}}
+
diff --git a/database.go b/database.go
index 0ec10f8..ce41a3d 100644
--- a/database.go
+++ b/database.go
@@ -1,9 +1,23 @@
package main
type Book struct {
- Title []string
- Creator []string
- Subject []string
- Lang []string
- Path string
+ Title string
+ Author []string
+ Contributor string
+ Publisher string
+ Description string
+ Subject []string
+ Date string
+ Lang []string
+ Type string
+ Format string
+ Source string
+ Relation string
+ Coverage string
+ Rights string
+ Meta string
+ Path string
+ Cover string
+ CoverSmall string
+ Keywords []string
}
diff --git a/foot.html b/foot.html
new file mode 100644
index 0000000..301b859
--- /dev/null
+++ b/foot.html
@@ -0,0 +1,5 @@
+
+