From b766eefe7cfaf334aeb607171250a2b4b9eaabf0 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 24 Jan 2023 13:12:46 +0100 Subject: Add gemini CTA to HTTP pages --- src/http/tpl/follow.html | 2 ++ src/http/tpl/gemini-cta.html | 12 ++++++++++++ src/http/tpl/index.html | 2 ++ src/http/tpl/post.html | 2 ++ src/http/tpl/posts.html | 2 ++ 5 files changed, 20 insertions(+) create mode 100644 src/http/tpl/gemini-cta.html (limited to 'src/http/tpl') diff --git a/src/http/tpl/follow.html b/src/http/tpl/follow.html index 132706b..88fee46 100644 --- a/src/http/tpl/follow.html +++ b/src/http/tpl/follow.html @@ -145,6 +145,8 @@ emailSubscribe.onclick = async () => { +{{ template "gemini-cta.html" . }} + {{ end }} {{ template "base.html" . }} diff --git a/src/http/tpl/gemini-cta.html b/src/http/tpl/gemini-cta.html new file mode 100644 index 0000000..06e3a22 --- /dev/null +++ b/src/http/tpl/gemini-cta.html @@ -0,0 +1,12 @@ +
+ +

+ This site can also be accessed via the gemini protocol: + + {{ BlogGeminiURL "/" }} + +

+

+ What is gemini? +

+ diff --git a/src/http/tpl/index.html b/src/http/tpl/index.html index fdaf43f..0e5b58e 100644 --- a/src/http/tpl/index.html +++ b/src/http/tpl/index.html @@ -50,6 +50,8 @@
  • Radio alHara is another great internet radio station.
  • + {{ template "gemini-cta.html" . }} + {{ end }} {{ template "base.html" . }} diff --git a/src/http/tpl/post.html b/src/http/tpl/post.html index efef203..db69302 100644 --- a/src/http/tpl/post.html +++ b/src/http/tpl/post.html @@ -38,6 +38,8 @@

    {{ end }} +{{ template "gemini-cta.html" . }} + {{ end }} {{ template "base.html" . }} diff --git a/src/http/tpl/posts.html b/src/http/tpl/posts.html index e6d226b..0701459 100644 --- a/src/http/tpl/posts.html +++ b/src/http/tpl/posts.html @@ -30,6 +30,8 @@

    {{ end }} + {{ template "gemini-cta.html" . }} + {{ end }} {{ template "base.html" . }} -- cgit v1.2.3