[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