mirror of
https://github.com/Ocelot-Social-Community/ocelot.social.git
synced 2025-12-13 07:46:08 +00:00
Reintroduce the navbar on the config.js, translate the footer, add french the navbar.
This commit is contained in:
parent
31d4e27a9a
commit
e5caa115fc
@ -8,4 +8,15 @@ export default defineUserConfig({
|
|||||||
theme,
|
theme,
|
||||||
plugins,
|
plugins,
|
||||||
base: process.env.VUEPRESS_BASE ?? '/',
|
base: process.env.VUEPRESS_BASE ?? '/',
|
||||||
|
locales: {
|
||||||
|
'/': {
|
||||||
|
lang: 'de-DE',
|
||||||
|
},
|
||||||
|
'/en/': {
|
||||||
|
lang: 'en-EN',
|
||||||
|
},
|
||||||
|
'/fr/': {
|
||||||
|
lang: 'fr-FR',
|
||||||
|
},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
@ -4,6 +4,7 @@ export default hopeTheme({
|
|||||||
favicon: 'favicon.ico',
|
favicon: 'favicon.ico',
|
||||||
logo: '/logo.svg',
|
logo: '/logo.svg',
|
||||||
docsRepo: 'https://github.com/Ocelot-Social-Community/ocelot.social',
|
docsRepo: 'https://github.com/Ocelot-Social-Community/ocelot.social',
|
||||||
|
repo: 'https://github.com/Ocelot-Social-Community/Ocelot-Social',
|
||||||
docsBranch: 'master',
|
docsBranch: 'master',
|
||||||
docsDir: 'docs',
|
docsDir: 'docs',
|
||||||
editLink: true,
|
editLink: true,
|
||||||
@ -11,25 +12,52 @@ export default hopeTheme({
|
|||||||
contributors: false,
|
contributors: false,
|
||||||
displayFooter: true,
|
displayFooter: true,
|
||||||
print: false,
|
print: false,
|
||||||
|
navbarLayout: {
|
||||||
|
start: ["Brand"],
|
||||||
|
center: ["Links"],
|
||||||
|
end: ["Language", "Repo", "Search"],
|
||||||
|
},
|
||||||
locales:{
|
locales:{
|
||||||
// The key is the path for the locale to be nested under.
|
// The key is the path for the locale to be nested under.
|
||||||
// As a special case, the default locale can use '/' as its path.
|
// As a special case, the default locale can use '/' as its path.
|
||||||
|
'/': {
|
||||||
|
lang: 'de-DE',
|
||||||
|
title: 'Ocelot.Social',
|
||||||
|
copyright: '© von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authoren | <a href="/impressum/">Impressum</a>',
|
||||||
|
footer: 'Unter der <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT Lizenz<!--]--><!----></a> ausgeliefert.',
|
||||||
|
navbar: [
|
||||||
|
{
|
||||||
|
text: 'Documentation',
|
||||||
|
link: 'https://docs.ocelot.social/' ,
|
||||||
|
target: '_self',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Demo',
|
||||||
|
link: 'https://stage.ocelot.social/',
|
||||||
|
target: '_self',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: 'Impressum',
|
||||||
|
link: '/impressum/'
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
'/en/': {
|
'/en/': {
|
||||||
lang: 'en-US', // this will be set as the lang attribute on <html>
|
lang: 'en-US', // this will be set as the lang attribute on <html>
|
||||||
title: 'Ocelot.Social',
|
title: 'Ocelot.Social',
|
||||||
// description: ''
|
// description: ''
|
||||||
copyright: '© by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="/impressum/">Impressum</a>',
|
copyright: '© by <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authors | <a href="/en/impressum/">Impressum</a>',
|
||||||
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
|
footer: 'Released under the <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a>.',
|
||||||
navbar: [
|
navbar: [
|
||||||
{
|
{
|
||||||
text: 'Documentation', link: 'https://docs.ocelot.social/'
|
text: 'Documentation',
|
||||||
|
link: 'https://docs.ocelot.social/',
|
||||||
|
target: '_self',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Demo', link: 'https://stage.ocelot.social/'
|
text: 'Demo',
|
||||||
},
|
link: 'https://stage.ocelot.social/',
|
||||||
{
|
target: '_self',
|
||||||
text: 'Github',
|
|
||||||
link: 'https://github.com/Ocelot-Social-Community'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Imprint',
|
text: 'Imprint',
|
||||||
@ -37,25 +65,24 @@ export default hopeTheme({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'/': {
|
'/fr/': {
|
||||||
lang: 'de-DE',
|
lang: 'fr-FR',
|
||||||
title: 'Ocelot.Social',
|
title: 'Ocelot.Social',
|
||||||
// description: ''
|
copyright: '© par <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Auteurs | <a href="/fr/impressum/">Mentions légales</a>',
|
||||||
copyright: '© von <a href="https://busfaktor.org" target="_blank">busFaktor() e.V.</a> & Authoren | <a href="/impressum/">Impressum</a>',
|
footer: 'Publié sous la <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->licence MIT<!--]--><!----></a>.',
|
||||||
footer: 'Unter der <a class="vt-link link link" href="https://opensource.org/licenses/MIT" target="_blank" rel="noopener noreferrer"><!--[-->MIT License<!--]--><!----></a> ausgeliefert.',
|
|
||||||
navbar: [
|
navbar: [
|
||||||
{
|
{
|
||||||
text: 'Documentation', link: 'https://docs.ocelot.social/'
|
text: 'Documentation',
|
||||||
|
link: 'https://docs.ocelot.social/',
|
||||||
|
target: '_self',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Demo', link: 'https://stage.ocelot.social/'
|
text: 'Demo',
|
||||||
|
link: 'https://stage.ocelot.social/',
|
||||||
|
target: '_self',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Github',
|
text: 'Mentions légales',
|
||||||
link: 'https://github.com/Ocelot-Social-Community'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: 'Impressum',
|
|
||||||
link: '/impressum/'
|
link: '/impressum/'
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
home: true
|
home: false
|
||||||
# layout: BlogHome
|
# layout: BlogHome
|
||||||
# icon: home
|
# icon: home
|
||||||
sidebar: false
|
sidebar: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user