Commit b881cd8d4a
b881cd8d4aedc7f460f6c3fba0078b42fdbc7b6c
parent: 740d7f8b78
Unsigned
Alicia Sykes <alicia@omg.lol> · 2026-03-28 11:30 UTC
Performance optimizations, and small fixes
Layout: unified · split
web/src/layouts/Layout.astro
+27 −4
| @@ -75,8 +75,28 @@ const makeSearchLd = () => { |
| 75 | 75 | <!-- Page info, viewport, Astro credit --> |
| 76 | 76 | <meta charset="UTF-8" /> |
| 77 | 77 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 78 | | <meta name="generator" content={Astro.generator} /> |
| 78 | <meta name="generator" content={`Built by an actual human, in Astro. ${Astro.generator}`} /> |
| 79 | 79 | <meta name="robots" content="index, follow" /> |
| 80 | <link |
| 81 | rel="canonical" |
| 82 | href={`https://awesome-privacy.xyz${Astro.url.pathname}`} |
| 83 | /> |
| 84 | |
| 85 | <!-- Preload critical fonts --> |
| 86 | <link |
| 87 | rel="preload" |
| 88 | as="font" |
| 89 | href="/fonts/Rubik/Rubik-Regular.woff2" |
| 90 | type="font/woff2" |
| 91 | crossorigin |
| 92 | /> |
| 93 | <link |
| 94 | rel="preload" |
| 95 | as="font" |
| 96 | href="/fonts/Lekton/Lekton-Bold.woff2" |
| 97 | type="font/woff2" |
| 98 | crossorigin |
| 99 | /> |
| 80 | 100 | |
| 81 | 101 | <!-- Icons and colors --> |
| 82 | 102 | <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> |
| @@ -86,14 +106,17 @@ const makeSearchLd = () => { |
| 86 | 106 | <!-- Social media meta tags (Open Graphh + Twitter) --> |
| 87 | 107 | <meta property="og:site_name" content="Awesome Privacy" /> |
| 88 | 108 | <meta property="og:type" content="website" /> |
| 89 | | <meta property="og:url" content="https://awesome-privacy.xyz" /> |
| 109 | <meta |
| 110 | property="og:url" |
| 111 | content={`https://awesome-privacy.xyz${Astro.url.pathname}`} |
| 112 | /> |
| 90 | 113 | <meta property="og:title" content={title} /> |
| 91 | 114 | <meta property="og:description" content={description} /> |
| 92 | 115 | <meta |
| 93 | 116 | property="og:image" |
| 94 | 117 | content="https://awesome-privacy.xyz/banner.png" |
| 95 | 118 | /> |
| 96 | | <meta name="twitter:card" content="summary" /> |
| 119 | <meta name="twitter:card" content="summary_large_image" /> |
| 97 | 120 | <meta name="twitter:url" content="https://awesome-privacy.xyz" /> |
| 98 | 121 | <meta name="twitter:title" content={title} /> |
| 99 | 122 | <meta name="twitter:description" content={description} /> |
| @@ -139,7 +162,7 @@ const makeSearchLd = () => { |
| 139 | 162 | <script |
| 140 | 163 | is:inline |
| 141 | 164 | type="application/ld+json" |
| 142 | | set:html={JSON.stringify(makeSearchLd)} |
| 165 | set:html={JSON.stringify(makeSearchLd())} |
| 143 | 166 | /> |
| 144 | 167 | </head> |
| 145 | 168 | <body> |
web/src/pages/[...section].astro
+2 −2
| @@ -88,13 +88,13 @@ const makeCarasolData = () => { |
| 88 | 88 | services.map((service, index) => ({ |
| 89 | 89 | "@type": "ListItem", |
| 90 | 90 | "position": index + 1, |
| 91 | | "url": `https://awesomeprivacy.com/${slugify(categoryName)}/${slugify(title)}/${slugify(service.name)}`, |
| 91 | "url": `https://awesome-privacy.xyz/${slugify(categoryName)}/${slugify(title)}/${slugify(service.name)}`, |
| 92 | 92 | "item": { |
| 93 | 93 | "@type": "Service", |
| 94 | 94 | "name": service.name, |
| 95 | 95 | "description": service.description, |
| 96 | 96 | "image": service.icon, |
| 97 | | "url": `https://awesomeprivacy.com/${slugify(categoryName)}/${slugify(title)}/${slugify(service.name)}` |
| 97 | "url": `https://awesome-privacy.xyz/${slugify(categoryName)}/${slugify(title)}/${slugify(service.name)}` |
| 98 | 98 | } |
| 99 | 99 | })), |
| 100 | 100 | ] |
web/src/pages/[category].astro
+2 −2
| @@ -44,11 +44,11 @@ const makeCarasolData = () => { |
| 44 | 44 | sections.map((section, index) => ({ |
| 45 | 45 | '@type': 'ListItem', |
| 46 | 46 | position: index + 1, |
| 47 | | url: `https://awesomeprivacy.com/${slugify(title)}/${slugify(section.name)}`, |
| 47 | url: `https://awesome-privacy.xyz/${slugify(title)}/${slugify(section.name)}`, |
| 48 | 48 | item: { |
| 49 | 49 | '@type': 'Service', |
| 50 | 50 | name: section.name, |
| 51 | | url: `https://awesomeprivacy.com/${slugify(title)}/${slugify(section.name)}`, |
| 51 | url: `https://awesome-privacy.xyz/${slugify(title)}/${slugify(section.name)}`, |
| 52 | 52 | }, |
| 53 | 53 | })), |
| 54 | 54 | ], |
web/src/styles/typography.css
+9
| @@ -6,6 +6,7 @@ |
| 6 | 6 | font-display: swap; |
| 7 | 7 | src: |
| 8 | 8 | local('Rubik'), |
| 9 | url('/fonts/Rubik/Rubik-Regular.woff2') format('woff2'), |
| 9 | 10 | url('/fonts/Rubik/Rubik-Regular.ttf') format('truetype'); |
| 10 | 11 | } |
| 11 | 12 | @font-face { |
| @@ -15,6 +16,7 @@ |
| 15 | 16 | font-display: swap; |
| 16 | 17 | src: |
| 17 | 18 | local('Rubik Italic'), |
| 19 | url('/fonts/Rubik/Rubik-Italic.woff2') format('woff2'), |
| 18 | 20 | url('/fonts/Rubik/Rubik-Italic.ttf') format('truetype'); |
| 19 | 21 | } |
| 20 | 22 | @font-face { |
| @@ -24,6 +26,7 @@ |
| 24 | 26 | font-display: swap; |
| 25 | 27 | src: |
| 26 | 28 | local('Rubik Medium'), |
| 29 | url('/fonts/Rubik/Rubik-Medium.woff2') format('woff2'), |
| 27 | 30 | url('/fonts/Rubik/Rubik-Medium.ttf') format('truetype'); |
| 28 | 31 | } |
| 29 | 32 | @font-face { |
| @@ -33,6 +36,7 @@ |
| 33 | 36 | font-display: swap; |
| 34 | 37 | src: |
| 35 | 38 | local('Rubik Medium Italic'), |
| 39 | url('/fonts/Rubik/Rubik-MediumItalic.woff2') format('woff2'), |
| 36 | 40 | url('/fonts/Rubik/Rubik-MediumItalic.ttf') format('truetype'); |
| 37 | 41 | } |
| 38 | 42 | @font-face { |
| @@ -42,6 +46,7 @@ |
| 42 | 46 | font-display: swap; |
| 43 | 47 | src: |
| 44 | 48 | local('Rubik SemiBold'), |
| 49 | url('/fonts/Rubik/Rubik-SemiBold.woff2') format('woff2'), |
| 45 | 50 | url('/fonts/Rubik/Rubik-SemiBold.ttf') format('truetype'); |
| 46 | 51 | } |
| 47 | 52 | @font-face { |
| @@ -51,6 +56,7 @@ |
| 51 | 56 | font-display: swap; |
| 52 | 57 | src: |
| 53 | 58 | local('Rubik SemiBold Italic'), |
| 59 | url('/fonts/Rubik/Rubik-Italic-VariableFont_wght.woff2') format('woff2'), |
| 54 | 60 | url('/fonts/Rubik/Rubik-Italic-VariableFont_wght.ttf') format('truetype'); |
| 55 | 61 | } |
| 56 | 62 | |
| @@ -62,6 +68,8 @@ |
| 62 | 68 | font-display: swap; |
| 63 | 69 | src: |
| 64 | 70 | local('Libre Franklin ExtraBold'), |
| 71 | url('/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.woff2') |
| 72 | format('woff2'), |
| 65 | 73 | url('/fonts/Libre_Franklin/LibreFranklin-VariableFont_wght.ttf') |
| 66 | 74 | format('truetype'); |
| 67 | 75 | } |
| @@ -74,6 +82,7 @@ |
| 74 | 82 | font-display: swap; |
| 75 | 83 | src: |
| 76 | 84 | local('Lekton Bold'), |
| 85 | url('/fonts/Lekton/Lekton-Bold.woff2') format('woff2'), |
| 77 | 86 | url('/fonts/Lekton/Lekton-Bold.ttf') format('truetype'); |
| 78 | 87 | } |
| 79 | 88 | |