add admin page, and spruce up posts and assets
This commit is contained in:
parent
98e0c3e89c
commit
76ff79f470
@ -217,6 +217,7 @@ func (a *api) blogHandler() http.Handler {
|
|||||||
|
|
||||||
mux.Handle("/static/", http.FileServer(http.FS(staticFS)))
|
mux.Handle("/static/", http.FileServer(http.FS(staticFS)))
|
||||||
mux.Handle("/follow", a.renderDumbTplHandler("follow.html"))
|
mux.Handle("/follow", a.renderDumbTplHandler("follow.html"))
|
||||||
|
mux.Handle("/admin", a.renderDumbTplHandler("admin.html"))
|
||||||
mux.Handle("/mailinglist/unsubscribe", a.renderDumbTplHandler("unsubscribe.html"))
|
mux.Handle("/mailinglist/unsubscribe", a.renderDumbTplHandler("unsubscribe.html"))
|
||||||
mux.Handle("/mailinglist/finalize", a.renderDumbTplHandler("finalize.html"))
|
mux.Handle("/mailinglist/finalize", a.renderDumbTplHandler("finalize.html"))
|
||||||
mux.Handle("/feed.xml", a.renderFeedHandler())
|
mux.Handle("/feed.xml", a.renderFeedHandler())
|
||||||
|
17
srv/src/http/tpl/admin.html
Normal file
17
srv/src/http/tpl/admin.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{{ define "body" }}
|
||||||
|
|
||||||
|
<h1>Admin</h1>
|
||||||
|
|
||||||
|
This is a directory of pages which are used for managing blog content. They are
|
||||||
|
mostly left open to inspection, but you will not able to change
|
||||||
|
anything without providing credentials.
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li><a href="{{ BlogURL "posts" }}">Posts</a></li>
|
||||||
|
<li><a href="{{ BlogURL "assets" }}">Assets</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ template "base.html" . }}
|
||||||
|
|
@ -1,5 +1,7 @@
|
|||||||
{{ define "body" }}
|
{{ define "body" }}
|
||||||
|
|
||||||
|
<h1>Assets</h1>
|
||||||
|
|
||||||
<h2>Upload Asset</h2>
|
<h2>Upload Asset</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@ -21,6 +23,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{{ if gt (len .Payload.IDs) 0 }}
|
||||||
|
|
||||||
<h2>Existing Assets</h2>
|
<h2>Existing Assets</h2>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
@ -44,4 +48,6 @@
|
|||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ template "base.html" . }}
|
{{ template "base.html" . }}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{{ define "body" }}
|
{{ define "body" }}
|
||||||
|
|
||||||
|
<h1>Posts</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="{{ BlogURL "posts/" }}?edit">
|
<a href="{{ BlogURL "posts/" }}?edit">
|
||||||
New Post
|
New Post
|
||||||
|
Loading…
Reference in New Issue
Block a user