mirror of
https://github.com/xHyroM/links.git
synced 2024-11-10 02:28:06 +01:00
feat: og image
This commit is contained in:
parent
6ed14ce47c
commit
9ae2e29db6
4 changed files with 7 additions and 5 deletions
|
@ -6,9 +6,11 @@ import image from '@astrojs/image';
|
||||||
import vercel from '@astrojs/vercel/static';
|
import vercel from '@astrojs/vercel/static';
|
||||||
import compress from 'astro-compress';
|
import compress from 'astro-compress';
|
||||||
|
|
||||||
|
import { SITE } from './src/config';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
//site: SITE.origin,
|
site: SITE.url,
|
||||||
base: '/',
|
base: '/',
|
||||||
trailingSlash: 'never',
|
trailingSlash: 'never',
|
||||||
output: 'static',
|
output: 'static',
|
||||||
|
|
BIN
src/assets/images/og_image.png
Normal file
BIN
src/assets/images/og_image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
|
@ -2,7 +2,7 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/src/assets/images/logo.png" />
|
||||||
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" /><link
|
<link rel="preconnect" href="https://fonts.googleapis.com" /><link
|
||||||
rel="preconnect"
|
rel="preconnect"
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
export const SITE = {
|
export const SITE = {
|
||||||
title: 'Oliminator Odkazy',
|
title: 'Oliminator Odkazy',
|
||||||
description: 'soon.',
|
description: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure, placeat!',
|
||||||
url: 'https://odkazy.oliminator.net',
|
url: 'https://odkazy.oliminator.net',
|
||||||
themeColor: '#FF8A00',
|
themeColor: '#FF8A00',
|
||||||
};
|
};
|
||||||
|
|
||||||
export const OPEN_GRAPH = {
|
export const OPEN_GRAPH = {
|
||||||
image: {
|
image: {
|
||||||
src: 'soon',
|
src: '../assets/images/og-image.png',
|
||||||
alt: 'soon',
|
alt: 'Odkazy text s tlačítkami',
|
||||||
},
|
},
|
||||||
twitter: 'oliminator34',
|
twitter: 'oliminator34',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue