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