diff --git a/media.go b/media.go index b8a2de9..ed3437f 100644 --- a/media.go +++ b/media.go @@ -222,15 +222,27 @@ func (ch *CaddyHugo) serveMediaPage(w http.ResponseWriter, r *http.Request) (int io.WriteString(w, ` -
-
+
`) io.WriteString(w, UploadPage("media")) - io.WriteString(w, "
") + + io.WriteString(w, `
+
+ `) if ch.Media != nil { media, err := ch.Media.Walk() if err != nil { diff --git a/templates.go b/templates.go index 9718915..e346ba7 100644 --- a/templates.go +++ b/templates.go @@ -137,6 +137,11 @@ var EditPage = ` width: 100%; border: none; } +a { + text-decoration: underline; + text-decoration-style: dotted; + cursor: pointer; +} @@ -145,10 +150,16 @@ var EditPage = `
-
- last saved ${ lastSaved.from(now) }, saving - saved - , ${connectionError} +
@@ -156,6 +167,21 @@ var EditPage = `