From bb64de09bd1fe09919cfbd5e0ee7602e9f090797 Mon Sep 17 00:00:00 2001 From: m15o Date: Sun, 26 Dec 2021 18:42:49 +0100 Subject: [PATCH] Making global feed discoverable --- assets/style.css | 1 + web/handler/common.go | 3 ++- web/handler/html.go | 12 ++++++++---- web/handler/html/common/status_form.html | 2 +- web/handler/html/index.html | 10 +++++++--- 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/assets/style.css b/assets/style.css index 3a60d19..0d06dc3 100644 --- a/assets/style.css +++ b/assets/style.css @@ -32,6 +32,7 @@ a { .status-content { margin: 0 1em 0.5em 1em; + word-break: break-all; } .status nav { diff --git a/web/handler/common.go b/web/handler/common.go index bee2441..45a3bf9 100644 --- a/web/handler/common.go +++ b/web/handler/common.go @@ -72,5 +72,6 @@ var TplCommonMap = map[string]string{ -{{ end }}`, +{{ end }} +`, } diff --git a/web/handler/html.go b/web/handler/html.go index 6444e95..bf1fa0a 100644 --- a/web/handler/html.go +++ b/web/handler/html.go @@ -149,7 +149,11 @@ var TplMap = map[string]string{ {{ template "status_form" .status }} {{ end }}`, - "index": `{{ define "content" }} + "index": `{{ define "head" }} + +{{ end }} + +{{ define "content" }}
{{ if .logged }} @@ -165,14 +169,14 @@ var TplMap = map[string]string{ status updater bookmarklet
status widget for your homepage

-

Subscribe via Atom

-


+


{{ else }}

Welcome!

status.cafe is a place to share your current status.

Register now!

{{ end }} -


+


+

Subscribe via Atom

Status stream

diff --git a/web/handler/html/common/status_form.html b/web/handler/html/common/status_form.html index 9c09298..ad1a416 100644 --- a/web/handler/html/common/status_form.html +++ b/web/handler/html/common/status_form.html @@ -20,4 +20,4 @@
-{{ end }} \ No newline at end of file +{{ end }} diff --git a/web/handler/html/index.html b/web/handler/html/index.html index 1d71a72..b275c5c 100644 --- a/web/handler/html/index.html +++ b/web/handler/html/index.html @@ -1,3 +1,7 @@ +{{ define "head" }} + +{{ end }} + {{ define "content" }}
@@ -14,14 +18,14 @@ status updater bookmarklet
status widget for your homepage

-

Subscribe via Atom

-


+


{{ else }}

Welcome!

status.cafe is a place to share your current status.

Register now!

{{ end }} -


+


+

Subscribe via Atom

Status stream