diff --git a/conf.example.toml b/conf.example.toml index 98cc612..afe9c25 100644 --- a/conf.example.toml +++ b/conf.example.toml @@ -10,10 +10,10 @@ base = "base.tmpl.html" [static] dir = "/var/www/gonotes/static" +# These are not for changing! +root = "/static/" assets = [ { path = "css/bootstrap.min.css", url = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" }, { path = "css/tiny-mde.min.css", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.css" }, { path = "js/tiny-mde.min.js", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.js" }, - { path = "icons/pencil-square.svg", url = "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/pencil-square.svg" }, ] -# These are not for changing! diff --git a/templates/list.tmpl.html b/templates/list.tmpl.html index f705d90..908d784 100644 --- a/templates/list.tmpl.html +++ b/templates/list.tmpl.html @@ -1,12 +1,10 @@ {{define "title"}}All Notes{{end}} {{define "main"}} -
+
+ {{end}} diff --git a/templates/view.tmpl.html b/templates/view.tmpl.html index 2176027..f52712a 100644 --- a/templates/view.tmpl.html +++ b/templates/view.tmpl.html @@ -3,9 +3,9 @@
{{.note.BodyRendered}}
-
- Edit - Delete +
+ Edit + Delete
{{end}}