fixed redirect and added correct metadata

This commit is contained in:
Martin Muzatko 2018-10-09 14:35:02 +02:00
parent 8e727b18c5
commit b1b78edb6d
3 changed files with 28 additions and 3 deletions

View File

@ -1,6 +1,31 @@
const container = require('markdown-it-container') const container = require('markdown-it-container')
let ogprefix = 'og: http://ogp.me/ns#'
let title = 'Strapi Documentation'
let description = 'API creation made simple, secure and fast.'
let color = '#2F80ED'
let author = 'Strapi'
let url = 'https://strapi.io/documentation/'
module.exports = { module.exports = {
head: [
['link', { rel: 'icon', href: `/rocket.png` }],
['meta', { name: 'theme-color', content: color }],
['meta', { prefix: ogprefix, property: 'og:title', content: title }],
['meta', { prefix: ogprefix, property: 'twitter:title', content: title }],
['meta', { prefix: ogprefix, property: 'og:type', content: 'article' }],
['meta', { prefix: ogprefix, property: 'og:url', content: url }],
['meta', { prefix: ogprefix, property: 'og:description', content: description }],
['meta', { prefix: ogprefix, property: 'og:image', content: `${url}rocket.png` }],
['meta', { prefix: ogprefix, property: 'og:article:author', content: author }],
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
// ['link', { rel: 'apple-touch-icon', href: `/assets/apple-touch-icon.png` }],
// ['link', { rel: 'mask-icon', href: '/assets/safari-pinned-tab.svg', color: color }],
['meta', { name: 'msapplication-TileImage', content: '/rocket.png' }],
['meta', { name: 'msapplication-TileColor', content: color }],
],
markdown: { markdown: {
anchor: { anchor: {
permalink: true, permalink: true,
@ -12,8 +37,8 @@ module.exports = {
.use(...createContainer('note')) .use(...createContainer('note'))
} }
}, },
title: 'Strapi Docs', title,
description: 'API creation made simple, secure and fast.', description,
base: '/documentation/', base: '/documentation/',
themeConfig: { themeConfig: {
versions: [ versions: [

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -1,5 +1,5 @@
--- ---
meta: meta:
- http-equiv: refresh - http-equiv: refresh
content: 0;url=/3.x.x/ content: 0;url=/documentation/3.x.x/
--- ---