style updoots
Jes Olson j3s@c3f.net
Wed, 22 Mar 2023 20:46:37 -0700
3 files changed,
8 insertions(+),
8 deletions(-)
M
files/feeds.tmpl.html
→
files/feeds.tmpl.html
@@ -60,12 +60,10 @@ <h3>feed details</h3>
{{ end }} {{ range .Data }} <pre> -{{ if .Title }}{{ .Title }}{{ else }}{{ .UpdateURL }}{{ end }} { - title = {{ .Title }} - desc = {{ .Description }} - url = {{ .UpdateURL }} - items = {{ len .Items }} -} +{{ .UpdateURL }} + title: {{ .Title | trimSpace }} + desc: {{ .Description | trimSpace }} + items: {{ len .Items }} </pre> {{ end }} {{ else }}
M
site.go
→
site.go
@@ -266,6 +266,7 @@ // handler should do tbh.
func (s *Site) renderPage(w http.ResponseWriter, r *http.Request, page string, data any) { funcMap := template.FuncMap{ "printDomain": s.printDomain, + "trimSpace": strings.TrimSpace, } tmplFiles := filepath.Join("files", "*.tmpl.html")@@ -366,8 +367,9 @@ "^(;,;)^ vawr",
"( -_•)╦̵̵̿╤─ - - -- - vore", "devouring feeds since 2023", "tfw new rss post (⊙ _ ⊙ )", - "hai! ( ˘͈ ᵕ ˘͈♡)", + "( ˘͈ ᵕ ˘͈♡) <3", "voreposting", + "vore dot website", } i := rand.Intn(len(phrases)) return phrases[i]