Non-official site for The Life Series Minecraft hardcore survival multiplayer series housing every video www.life-series.online
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add open graph for home page (#8)

authored by

Ghustvn and committed by
GitHub
b8734bca 26a5e41a

+46 -2
+2 -1
astro.config.mjs
··· 2 2 import { defineConfig } from 'astro/config'; 3 3 import sitemap from '@astrojs/sitemap'; 4 4 import tailwindcss from '@tailwindcss/vite'; 5 + import og from 'astro-og'; 5 6 6 7 export default defineConfig({ 7 8 site: 'https://www.life-series.online', 8 9 trailingSlash: 'never', 9 - integrations: [sitemap()], 10 + integrations: [sitemap(), og()], 10 11 experimental: { 11 12 contentIntellisense: true, 12 13 },
+1
package.json
··· 15 15 "@tailwindcss/vite": "^4.1.11", 16 16 "astro": "^5.12.3", 17 17 "astro-capo": "^0.0.1", 18 + "astro-og": "^0.3.0", 18 19 "astro-seo": "^0.8.4", 19 20 "sharp": "^0.34.3", 20 21 "tailwindcss": "^4.1.11",
+18
pnpm-lock.yaml
··· 23 23 astro-capo: 24 24 specifier: ^0.0.1 25 25 version: 0.0.1(astro@5.12.3(@types/node@24.0.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.44.2)(typescript@5.8.3)(yaml@2.8.0)) 26 + astro-og: 27 + specifier: ^0.3.0 28 + version: 0.3.0(astro@5.12.3(@types/node@24.0.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.44.2)(typescript@5.8.3)(yaml@2.8.0)) 26 29 astro-seo: 27 30 specifier: ^0.8.4 28 31 version: 0.8.4(prettier-plugin-astro@0.14.1)(prettier@3.6.2)(typescript@5.8.3) ··· 891 894 peerDependencies: 892 895 astro: '>= 2.8' 893 896 897 + astro-og@0.3.0: 898 + resolution: {integrity: sha512-qC3/EbNg863hBH3e8a7HkomAzU2ZoDcRNey1H1iXVXoLmRbLvCj8ZDrz0gJOZ3H1oWAAJWsagUnFy+d33rSdxA==} 899 + peerDependencies: 900 + astro: '>=5.0.0' 901 + 894 902 astro-seo@0.8.4: 895 903 resolution: {integrity: sha512-Ou1vzQSXAxa0K8rtNtXNvSpYqOGEgMhh0immMxJeXmbVZac3UKCNWAoXWyOQDFYsZvBugCRSg0N1phBqPMVgCw==} 896 904 ··· 1618 1626 resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} 1619 1627 engines: {node: ^10 || ^12 || >=14} 1620 1628 1629 + preact@10.26.5: 1630 + resolution: {integrity: sha512-fmpDkgfGU6JYux9teDWLhj9mKN55tyepwYbxHgQuIxbWQzgFg5vk7Mrrtfx7xRxq798ynkY4DDDxZr235Kk+4w==} 1631 + 1621 1632 prettier-plugin-astro@0.14.1: 1622 1633 resolution: {integrity: sha512-RiBETaaP9veVstE4vUwSIcdATj6dKmXljouXc/DDNwBSPTp8FRkLGDSGFClKsAFeeg+13SB0Z1JZvbD76bigJw==} 1623 1634 engines: {node: ^14.15.0 || >=16.0.0} ··· 3023 3034 astro: 5.12.3(@types/node@24.0.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.44.2)(typescript@5.8.3)(yaml@2.8.0) 3024 3035 ultrahtml: 1.6.0 3025 3036 3037 + astro-og@0.3.0(astro@5.12.3(@types/node@24.0.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.44.2)(typescript@5.8.3)(yaml@2.8.0)): 3038 + dependencies: 3039 + astro: 5.12.3(@types/node@24.0.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.44.2)(typescript@5.8.3)(yaml@2.8.0) 3040 + preact: 10.26.5 3041 + 3026 3042 astro-seo@0.8.4(prettier-plugin-astro@0.14.1)(prettier@3.6.2)(typescript@5.8.3): 3027 3043 dependencies: 3028 3044 '@astrojs/check': 0.5.10(prettier-plugin-astro@0.14.1)(prettier@3.6.2)(typescript@5.8.3) ··· 4028 4044 nanoid: 3.3.11 4029 4045 picocolors: 1.1.1 4030 4046 source-map-js: 1.2.1 4047 + 4048 + preact@10.26.5: {} 4031 4049 4032 4050 prettier-plugin-astro@0.14.1: 4033 4051 dependencies:
src/assets/images/og/index.png

This is a binary file and will not be displayed.

+25 -1
src/pages/index.astro
··· 4 4 import { SEO } from 'astro-seo'; 5 5 import BaseLayout from '@/layouts/BaseLayout.astro'; 6 6 import { getSeasonImage } from '@/utils/images'; 7 + import ogIndexImage from '@/assets/images/og/index.png'; 7 8 8 9 const seasons = await getCollection('seasons'); 9 10 --- ··· 11 12 <BaseLayout title="Home"> 12 13 <SEO 13 14 slot="seo" 14 - description="The non-official site for The Life Series Minecraft hardcore survival multiplayer series." 15 + description="Non-official site. Watch all The Life Series member point of views from all seasons." 16 + openGraph={{ 17 + basic: { 18 + title: 'The Life Series Minecraft hardcore survival multiplayer series.', 19 + type: 'website', 20 + image: ogIndexImage.src, 21 + }, 22 + optional: { 23 + description: 24 + 'Non-official site. Watch all The Life Series member point of views from all seasons.', 25 + siteName: 'The Life Series', 26 + }, 27 + }} 28 + twitter={{ 29 + card: 'summary', 30 + site: '@ghustvn', 31 + creator: '@ghustvn', 32 + title: 'The Life Series Minecraft hardcore survival multiplayer series.', 33 + description: 34 + 'Non-official site. Watch all The Life Series member point of views from all seasons.', 35 + image: ogIndexImage.src, 36 + imageAlt: 37 + 'Grid of all 7 Life Series season logos in order from newest to oldest - "Past Life", "Wild Life", "Secret Life", "Limited Life", "Double Life", "Last Life", "Third Life"', 38 + }} 15 39 /> 16 40 <main class="grid min-h-svh items-center justify-items-center overflow-x-hidden p-32"> 17 41 <h1 class="sr-only">Life Series · Non-official site</h1>