mirror of
https://github.com/strapi/strapi.git
synced 2025-08-15 12:18:38 +00:00
fixed redirect and added correct metadata
This commit is contained in:
parent
8e727b18c5
commit
b1b78edb6d
@ -1,6 +1,31 @@
|
||||
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 = {
|
||||
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: {
|
||||
anchor: {
|
||||
permalink: true,
|
||||
@ -12,8 +37,8 @@ module.exports = {
|
||||
.use(...createContainer('note'))
|
||||
}
|
||||
},
|
||||
title: 'Strapi Docs',
|
||||
description: 'API creation made simple, secure and fast.',
|
||||
title,
|
||||
description,
|
||||
base: '/documentation/',
|
||||
themeConfig: {
|
||||
versions: [
|
||||
|
BIN
docs/.vuepress/public/rocket.png
Normal file
BIN
docs/.vuepress/public/rocket.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
@ -1,5 +1,5 @@
|
||||
---
|
||||
meta:
|
||||
- http-equiv: refresh
|
||||
content: 0;url=/3.x.x/
|
||||
content: 0;url=/documentation/3.x.x/
|
||||
---
|
||||
|
Loading…
x
Reference in New Issue
Block a user