about summary refs log tree commit diff
path: root/bskyweb
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-08-22 14:40:57 -0700
committerCaidan Williams <caidan@internet.dev>2025-08-22 14:40:57 -0700
commit560c503aa61d0c03b52549c31610845cd1ecd36c (patch)
tree3f4ae9405cd95ef13a6ddc8344a9a0a7ed7acf6e /bskyweb
parent5120c037d1be6310d1d7aa7552435b4ef3d01807 (diff)
downloadvoidsky-560c503aa61d0c03b52549c31610845cd1ecd36c.tar.zst
feat: add canonical URL to post template for better SEO
Diffstat (limited to 'bskyweb')
-rw-r--r--bskyweb/templates/post.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html
index f6f03c7ee..963af2065 100644
--- a/bskyweb/templates/post.html
+++ b/bskyweb/templates/post.html
@@ -14,6 +14,7 @@
   <meta property="profile:username" content="{{ profileView.Handle }}">
   {%- if requestURI %}
   <meta property="og:url" content="{{ requestURI }}">
+  <link rel="canonical" href="{{ requestURI }}" />
   {% endif -%}
   {%- if postView.Author.DisplayName %}
   <meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})">