about summary refs log tree commit diff
path: root/bskyweb/templates
diff options
context:
space:
mode:
authorJaz Volpert <ericvolp12@gmail.com>2024-10-04 13:40:45 -0700
committerJaz Volpert <ericvolp12@gmail.com>2024-10-04 13:40:45 -0700
commitb0fe2c6c9af9a243b287b76371f2359af9942cba (patch)
tree0ea9290cd11dc0d8529586383f1fbfca92ac95d3 /bskyweb/templates
parent6382fe45356a1fd8696f7fa62a2d140fc833ac8a (diff)
downloadvoidsky-b0fe2c6c9af9a243b287b76371f2359af9942cba.tar.zst
Serve static assets from a CDN host if provided
Diffstat (limited to 'bskyweb/templates')
-rw-r--r--bskyweb/templates/base.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html
index 885d13d2a..5f0f1ca78 100644
--- a/bskyweb/templates/base.html
+++ b/bskyweb/templates/base.html
@@ -13,8 +13,8 @@
 
   <!-- Hello Humans! API docs at https://atproto.com -->
 
-  <link rel="preload" as="font" type="font/ttf" href="/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf">
-  <link rel="preload" as="font" type="font/ttf" href="/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf">
+  <link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf">
+  <link rel="preload" as="font" type="font/ttf" href="{{ staticCDNHost }}/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf">
 
   <style>
     /**
@@ -64,10 +64,10 @@
   </style>
 
   {% include "scripts.html" %}
-  <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png">
-  <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png">
-  <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png">
-  <link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#1185fe">
+  <link rel="apple-touch-icon" sizes="180x180" href="{{ staticCDNHost }}/static/apple-touch-icon.png">
+  <link rel="icon" type="image/png" sizes="32x32" href="{{ staticCDNHost }}/static/favicon-32x32.png">
+  <link rel="icon" type="image/png" sizes="16x16" href="{{ staticCDNHost }}/static/favicon-16x16.png">
+  <link rel="mask-icon" href="{{ staticCDNHost }}/static/safari-pinned-tab.svg" color="#1185fe">
   <meta name="theme-color">
   <meta name="application-name" content="Bluesky">
   <meta name="generator" content="bskyweb">