diff --git a/render.go b/render.go index 822a9ce..85bdd3a 100644 --- a/render.go +++ b/render.go @@ -11,17 +11,17 @@ import ( // EditHyphaPage returns HTML page of hypha editor. func EditHyphaPage(name, textMime, content, tags string) string { - keys := map[string]string{ - "Title": fmt.Sprintf(cfg.TitleEditTemplate, name), - "Header": renderFromString(name, "Hypha/edit/header.html"), - "Sidebar": renderFromString("", "Hypha/edit/sidebar.html"), - } page := map[string]string{ "Text": content, "TextMime": textMime, "Name": name, "Tags": tags, } + keys := map[string]string{ + "Title": fmt.Sprintf(cfg.TitleEditTemplate, name), + "Header": renderFromString(name, "Hypha/edit/header.html"), + "Sidebar": renderFromMap(page, "Hypha/edit/sidebar.html"), + } return renderBase(renderFromMap(page, "Hypha/edit/index.html"), keys) } diff --git a/w/m/Templates/default-dark/Hypha/edit/index.html/1.html b/w/m/Templates/default-dark/Hypha/edit/index.html/1.html index 49ab078..842b43b 100644 --- a/w/m/Templates/default-dark/Hypha/edit/index.html/1.html +++ b/w/m/Templates/default-dark/Hypha/edit/index.html/1.html @@ -1,36 +1,16 @@
diff --git a/w/m/Templates/default-dark/Hypha/edit/sidebar.html/1.html b/w/m/Templates/default-dark/Hypha/edit/sidebar.html/1.html new file mode 100644 index 0000000..3f257cf --- /dev/null +++ b/w/m/Templates/default-dark/Hypha/edit/sidebar.html/1.html @@ -0,0 +1,19 @@ +Good types are text/markdown and text/plain
Please make your comment helpful
+ + +Tags are separated by commas, whitespace is ignored
+ + +If this hypha has a file like that, the text above is meant to be a description of it
+ + + + +