~sircmpwn/gmni-devel

Remove the details field. It can sometimes come across as an ad. v1 PROPOSED

Sandra Snan: 1
 Remove the details field. It can sometimes come across as an ad.

 1 files changed, 0 insertions(+), 29 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/gmni-devel/patches/46797/mbox | git am -3
Learn more about email & git

[PATCH] Remove the details field. It can sometimes come across as an ad. Export this patch

---
 main.go | 29 -----------------------------
 1 file changed, 29 deletions(-)

diff --git a/main.go b/main.go
index c96b8a1..bb2d91d 100644
--- a/main.go
+++ b/main.go
@@ -200,26 +200,6 @@ var gemtextPage = template.Must(template.
	</ul>
	{{- end }}
</article>
<details>
	<summary>
		Proxied content from <a href="{{.URL.String | safeURL}}">{{.URL.String}}</a>
		{{if .External}}
		(external content)
		{{end}}
	</summary>
	<p>Gemini request details:
	<dl>
		<dt>Original URL</dt>
		<dd><a href="{{.URL.String | safeURL}}">{{.URL.String}}</a></dd>
		<dt>Status code</dt>
		<dd>{{.Resp.Status}}</dd>
		<dt>Meta</dt>
		<dd>{{.Resp.Meta}}</dd>
		<dt>Proxied by</dt>
		<dd><a href="https://sr.ht/~sircmpwn/kineto">kineto</a></dd>
	</dl>
	<p>Be advised that no attempt was made to verify the remote SSL certificate.
</details>
`))

var inputPage = template.Must(template.
@@ -305,15 +285,6 @@ pre {
	overflow-x: auto;
}

details:not([open]) summary,
details:not([open]) summary a {
	color: gray;
}

details summary a:before {
	display: none;
}

dl dt {
	font-weight: bold;
}
-- 
2.39.2