2024-01-27 15:15:57 +00:00
|
|
|
import { HeadAttrsConfig } from 'vuepress';
|
|
|
|
|
2023-02-01 01:41:44 +00:00
|
|
|
interface SimplifiedHeader {
|
|
|
|
tag: string;
|
2024-01-27 15:15:57 +00:00
|
|
|
content: HeadAttrsConfig[];
|
2023-02-01 01:41:44 +00:00
|
|
|
}
|
|
|
|
|
2024-01-27 15:15:57 +00:00
|
|
|
const simplifiedHead: SimplifiedHeader[] = [
|
2023-02-01 01:41:44 +00:00
|
|
|
{
|
|
|
|
tag: 'meta',
|
|
|
|
content: [
|
|
|
|
{
|
|
|
|
name: 'author',
|
|
|
|
content: 'Lucien Cartier-Tilet',
|
|
|
|
},
|
2024-11-17 13:24:57 +00:00
|
|
|
{
|
|
|
|
name: 'fediverse:creator',
|
|
|
|
content: '@phundrak@mastodon.phundrak.com',
|
|
|
|
},
|
2023-02-01 01:41:44 +00:00
|
|
|
{
|
|
|
|
property: 'og:image',
|
|
|
|
content: 'https://cdn.phundrak.com/img/rich_preview.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
property: 'org:title',
|
|
|
|
content: 'Lucien Cartier-Tilet',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
property: 'og:description',
|
|
|
|
content: 'Site web personnel de Lucien Cartier-Tilet',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'twitter:card',
|
|
|
|
content: 'summary',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'twitter:site',
|
|
|
|
content: '@phundrak',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'twitter:creator',
|
|
|
|
content: '@phundrak',
|
|
|
|
},
|
2024-02-26 06:38:38 +00:00
|
|
|
{
|
|
|
|
name: 'build-status',
|
|
|
|
content: `value: ${process.env.NODE_ENV}`,
|
|
|
|
},
|
2023-02-01 01:41:44 +00:00
|
|
|
{ name: 'msapplication-TileColor', content: '#3b4252' },
|
|
|
|
{ name: 'msapplication-TileImage', content: '/ms-icon-144x144.png' },
|
|
|
|
{ name: 'theme-color', content: '#3b4252' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
tag: 'link',
|
|
|
|
content: [
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '57x57',
|
|
|
|
href: '/apple-icon-57x57.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '60x60',
|
|
|
|
href: '/apple-icon-60x60.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '72x72',
|
|
|
|
href: '/apple-icon-72x72.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '76x76',
|
|
|
|
href: '/apple-icon-76x76.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '114x114',
|
|
|
|
href: '/apple-icon-114x114.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '120x120',
|
|
|
|
href: '/apple-icon-120x120.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '144x144',
|
|
|
|
href: '/apple-icon-144x144.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '152x152',
|
|
|
|
href: '/apple-icon-152x152.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
sizes: '180x180',
|
|
|
|
href: '/apple-icon-180x180.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'icon',
|
|
|
|
type: 'image/png',
|
|
|
|
sizes: '192x192',
|
|
|
|
href: '/android-icon-192x192.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'icon',
|
|
|
|
type: 'image/png',
|
|
|
|
sizes: '32x32',
|
|
|
|
href: '/favicon-32x32.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'icon',
|
|
|
|
type: 'image/png',
|
|
|
|
sizes: '96x96',
|
|
|
|
href: '/favicon-96x96.png',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
rel: 'icon',
|
|
|
|
type: 'image/png',
|
|
|
|
sizes: '16x16',
|
|
|
|
href: '/favicon-16x16.png',
|
|
|
|
},
|
|
|
|
{ rel: 'manifest', href: '/manifest.json' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2024-06-20 07:27:59 +00:00
|
|
|
const headBuilder = [];
|
2023-05-10 22:26:24 +00:00
|
|
|
simplifiedHead.forEach((tag) => {
|
2024-06-20 07:27:59 +00:00
|
|
|
tag.content.forEach((element) => {
|
2024-01-27 15:15:57 +00:00
|
|
|
headBuilder.push([tag.tag, element]);
|
2023-02-01 01:41:44 +00:00
|
|
|
});
|
|
|
|
});
|
2024-01-27 15:15:57 +00:00
|
|
|
headBuilder.push([
|
|
|
|
'a',
|
2024-11-17 13:24:57 +00:00
|
|
|
{ rel: 'me', href: 'https://mastodon.phundrak.com/@phundrak' },
|
2024-01-27 15:15:57 +00:00
|
|
|
'Mastodon',
|
|
|
|
]);
|
2023-02-01 01:41:44 +00:00
|
|
|
|
2024-01-27 15:15:57 +00:00
|
|
|
export const head = headBuilder;
|