aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-31 12:29:24 -0600
committernytpu <alex@nytpu.com>2021-05-31 12:29:24 -0600
commit0d2454ac3997742a060e78deae7d4066a93bd50a (patch)
tree9404e9225c5af247d0f818e71b48a6acb3349650
parentAdd -e flag to place a stylesheet externally rather than loading it inline (diff)
downloadkineto-master.tar.bz2
kineto-master.zip
Add a header recommending that the visitor use GeminiHEADmaster
This patch adds a <header> element that says a proxied page is best viewed through Gemini, and includes a link to the project Gemini FAQ[a], to nytpu's Why Gemini article[b], and to the Gemini quickstart[c]. This patch is useful for users that believe the <details> block at the bottom of the page is too subtle, and wish to direct more traffic to their Gemini capsule as opposed to the web proxy. [a]: https://gemini.circumlunar.space/docs/faq.gmi [b]: https://nytpu.com/why-gemini.gmi [c]: "chttps://geminiquickst.art/
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index c600985..77c35c5 100644
--- a/main.go
+++ b/main.go
@@ -135,6 +135,17 @@ var gemtextPage = template.Must(template.
</style>
{{- end }}
{{- end }}
+<header>
+ <p>
+ This site is significiantly improved by visting through the
+ <a href="https://gemini.circumlunar.space/docs/faq.gmi" target="_blank">Gemini Protocol.</a>
+ </p>
+ <p>
+ <a href="https://nytpu.com/why-gemini.gmi" target="_blank">Why use Gemini?</a> &mdash;
+ <a href="https://geminiquickst.art/" target="_blank">See the Gemini Quickstart to get started!</a>
+ </p>
+ <hr>
+</header>
<title>{{.Title}}</title>
<article{{if .Lang}} lang="{{.Lang}}"{{end}}>
{{ $ctx := . -}}