2023-02-26 18:20:43 +00:00
|
|
|
|
interface SimplifiedHeader {
|
|
|
|
|
tag: string;
|
|
|
|
|
content: [any];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const simplifiedHead = [
|
2024-01-27 16:52:40 +00:00
|
|
|
|
{
|
|
|
|
|
tag: 'script',
|
|
|
|
|
content: [
|
|
|
|
|
{
|
|
|
|
|
async: true,
|
|
|
|
|
src: 'https://umami.phundrak.com/script.js',
|
2024-02-26 05:55:00 +00:00
|
|
|
|
'data-website-id': 'dda1ea7b-086e-49b0-9cab-517314212ac5',
|
2024-01-27 16:52:40 +00:00
|
|
|
|
'data-do-not-track': 'true',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2023-02-26 18:20:43 +00:00
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
tag: 'meta',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
content: [
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
name: 'author',
|
|
|
|
|
content: 'Lucien Cartier-Tilet',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
property: 'og:image',
|
|
|
|
|
content: 'https://cdn.phundrak.com/img/rich_preview.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-09-18 08:38:36 +00:00
|
|
|
|
property: 'og:title',
|
2023-03-29 21:11:07 +00:00
|
|
|
|
content: 'P’undrak’s Conlangs',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
property: 'og:description',
|
|
|
|
|
content: 'Documentation of P’undrak’s constructed languages',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
2024-10-01 19:43:12 +00:00
|
|
|
|
{
|
|
|
|
|
name: 'fediverse:creator',
|
2024-11-18 11:32:24 +00:00
|
|
|
|
content: '@phundrak@mastodon.phundrak.com',
|
2024-10-01 19:43:12 +00:00
|
|
|
|
},
|
2023-02-26 18:20:43 +00:00
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
name: 'twitter:card',
|
|
|
|
|
content: 'summary',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
name: 'twitter:site',
|
|
|
|
|
content: '@phundrak',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
name: 'twitter:creator',
|
|
|
|
|
content: '@phundrak',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
2023-03-29 21:11:07 +00:00
|
|
|
|
{ name: 'msapplication-TileColor', content: '#3b4252' },
|
|
|
|
|
{ name: 'msapplication-TileImage', content: '/ms-icon-144x144.png' },
|
|
|
|
|
{ name: 'theme-color', content: '#3b4252' },
|
2023-02-26 18:20:43 +00:00
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
tag: 'link',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
content: [
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '57x57',
|
|
|
|
|
href: '/apple-icon-57x57.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '60x60',
|
|
|
|
|
href: '/apple-icon-60x60.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '72x72',
|
|
|
|
|
href: '/apple-icon-72x72.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '76x76',
|
|
|
|
|
href: '/apple-icon-76x76.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '114x114',
|
|
|
|
|
href: '/apple-icon-114x114.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '120x120',
|
|
|
|
|
href: '/apple-icon-120x120.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '144x144',
|
|
|
|
|
href: '/apple-icon-144x144.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '152x152',
|
|
|
|
|
href: '/apple-icon-152x152.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'apple-touch-icon',
|
|
|
|
|
sizes: '180x180',
|
|
|
|
|
href: '/apple-icon-180x180.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'icon',
|
|
|
|
|
type: 'image/png',
|
|
|
|
|
sizes: '192x192',
|
|
|
|
|
href: '/android-icon-192x192.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'icon',
|
|
|
|
|
type: 'image/png',
|
|
|
|
|
sizes: '32x32',
|
|
|
|
|
href: '/favicon-32x32.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'icon',
|
|
|
|
|
type: 'image/png',
|
|
|
|
|
sizes: '96x96',
|
|
|
|
|
href: '/favicon-96x96.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
|
|
|
|
{
|
2023-03-29 21:11:07 +00:00
|
|
|
|
rel: 'icon',
|
|
|
|
|
type: 'image/png',
|
|
|
|
|
sizes: '16x16',
|
|
|
|
|
href: '/favicon-16x16.png',
|
2023-02-26 18:20:43 +00:00
|
|
|
|
},
|
2023-03-29 21:11:07 +00:00
|
|
|
|
{ rel: 'manifest', href: '/manifest.json' },
|
2023-02-26 18:20:43 +00:00
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
let head = [];
|
2023-04-06 12:10:38 +00:00
|
|
|
|
simplifiedHead.forEach((tag: SimplifiedHeader) => {
|
2023-02-26 18:20:43 +00:00
|
|
|
|
let tagName = tag.tag;
|
|
|
|
|
tag.content.forEach((element) => {
|
|
|
|
|
head.push([tagName, element]);
|
|
|
|
|
});
|
|
|
|
|
});
|
2023-07-10 16:38:16 +00:00
|
|
|
|
head.push([
|
|
|
|
|
'a',
|
|
|
|
|
{ rel: 'me', href: 'https://mastodon.phundrak.com/@phundrak' },
|
|
|
|
|
'Mastodon',
|
|
|
|
|
]);
|
2023-02-26 18:20:43 +00:00
|
|
|
|
|
|
|
|
|
export default head;
|