diff --git a/main.go b/main.go index a953109..b43616e 100644 --- a/main.go +++ b/main.go @@ -107,9 +107,12 @@ Options:`) Close() // Default page - aboutFile, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/aboutpage.md")) + defaultPage, _ := ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/aboutpage.md")) p := WikiData{"help", "", []string{}, []string{}, false, "zzz"} - p.save(string(aboutFile)) + p.save(string(defaultPage)) + defaultPage, _ = ioutil.ReadFile(path.Join(RuntimeArgs.SourcePath, "templates/privacypolicy.md")) + p = WikiData{"privacypolicy", "", []string{}, []string{}, false, "zzz"} + p.save(string(defaultPage)) if len(RuntimeArgs.RestoreDataset) > 0 { fmt.Println("Restoring data from '" + RuntimeArgs.RestoreDataset + "' folder...") diff --git a/templates/index.tmpl b/templates/index.tmpl index b24638c..6814a9c 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -124,7 +124,16 @@
  • View
  • List
  • -
  • Help
  • + + + + diff --git a/templates/list.tmpl b/templates/list.tmpl index eae054a..1993621 100644 --- a/templates/list.tmpl +++ b/templates/list.tmpl @@ -36,7 +36,13 @@ span { cursor: pointer; }
  • Edit
  • View
  • List
  • -
  • Help
  • + diff --git a/templates/view.tmpl b/templates/view.tmpl index e28a50e..f8687a8 100644 --- a/templates/view.tmpl +++ b/templates/view.tmpl @@ -103,7 +103,13 @@ a.deleteable {
  • List
  • -
  • Help
  • +