about summary refs log tree commit diff
path: root/bskyweb/templates
diff options
context:
space:
mode:
authordevin ivy <devinivy@gmail.com>2024-06-24 21:06:53 -0400
committerGitHub <noreply@github.com>2024-06-24 21:06:53 -0400
commit682f31ec9df290a63ec5b91c5943399da675b96f (patch)
tree10f7c90ac0595c347ce746cb1f98faca02580126 /bskyweb/templates
parent6cda6412502c9af9ca07194d598ed37e880df23d (diff)
downloadvoidsky-682f31ec9df290a63ec5b91c5943399da675b96f.tar.zst
Add og meta tags to starter pack detail (#4585)
* add og meta tags to starter pack detail

* tidy

* bskyweb: add starter pack title to og meta

* bskyweb build

* go version to 1.22

* tidy
Diffstat (limited to 'bskyweb/templates')
-rw-r--r--bskyweb/templates/starterpack.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/bskyweb/templates/starterpack.html b/bskyweb/templates/starterpack.html
new file mode 100644
index 000000000..80cbfc80a
--- /dev/null
+++ b/bskyweb/templates/starterpack.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+
+{% block html_head_extra -%}
+  <meta name="apple-itunes-app" content="app-id=xyz.blueskyweb.app, app-clip-bundle-id=xyz.blueskyweb.app.AppClip, app-clip-display=card">
+  {%- if requestURI %}
+  <meta property="og:url" content="{{ requestURI }}">
+  {% endif -%}
+  {%- if imgThumbUrl %}
+  <meta property="og:image" content="{{ imgThumbUrl }}">
+  <meta property="twitter:image" content="{{ imgThumbUrl }}">
+  {%- else -%}
+  <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" />
+  <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png"  />
+  {% endif -%}
+  <meta name="twitter:card" content="summary_large_image" />
+  {%- if title %}
+  <meta property="og:title" content="{{ title }}" />
+  <meta name="twitter:title" content="{{ title }}" />
+  {%- else -%}
+  <meta property="og:title" content="Bluesky" />
+  <meta name="twitter:title" content="Bluesky" />
+  {% endif -%}
+  <meta name="description" content="Join the conversation" />
+  <meta name="og:description" content="Join the conversation" />
+  <meta name="twitter:description" content="Join the conversation" />
+{%- endblock %}