1
0
Fork 0

fix(backend): Fix for homepage OG image

This commit is contained in:
Joost De Cock 2021-12-31 13:44:00 +01:00
parent 30fcf6c726
commit cdf893c92f

View file

@ -125,10 +125,11 @@ const getMetaData = {
const data = {} const data = {}
const chunks = page.split('/') const chunks = page.split('/')
// Home page // Home page
if (chunks.length === 0) return { if (chunks.length === 1 && chunks[0] === '') return {
title: 'FreeSewing FIXME', title: ['FreeSewing.dev'],
intro: "FreeSewing's fixme", intro: introAsLines('FreeSewing API documentation and tutorials for developers and contributors'),
sub: ['freesewing.dev', '/fixme'], sub: ['Also featuring', ' our developers blog'],
lead: '.dev',
} }
// Blog index page // Blog index page
if (chunks.length === 1 && chunks[0] === 'blog') return { if (chunks.length === 1 && chunks[0] === 'blog') return {