🌐 Changes press to contact

This commit is contained in:
Moritz Kröger 2019-04-24 21:41:22 +01:00
parent 97e2f1f6bb
commit 4939107ff4
13 changed files with 26 additions and 26 deletions

View file

@ -146,10 +146,10 @@ const configTree = {
}),
category({
meta: {
name: 'press',
label: '[Page] Press',
description: 'Press page.',
folder: 'src/app/press/content'
name: 'contact',
label: '[Page] Contact',
description: 'The general contact page.',
folder: 'src/app/contact/content'
},
fields: [
pageUrl(),

View file

@ -336,10 +336,10 @@ collections:
- label: Answer
name: answer
widget: markdown
- name: press
label: '[Page] Press'
description: Press page.
folder: src/app/press/content
- name: contact
label: '[Page] Contact'
description: The general contact page.
folder: src/app/contact/content
format: json
create: true
slug: '{{fields.language}}'

View file

@ -67,8 +67,8 @@
route: { path: getTranslatedUrl('about') }
},
{
label: this.$t('meta.topMenu.press'),
route: { path: getTranslatedUrl('press') }
label: this.$t('meta.topMenu.contact'),
route: { path: getTranslatedUrl('contact') }
}
]
},

View file

@ -1,7 +1,7 @@
<template>
<section>
<h1>{{ $t('press.headline') }}</h1>
<v-markdown :source="$t('press.content')" />
<h1>{{ $t('contact.headline') }}</h1>
<v-markdown :source="$t('contact.content')" />
<a class="btn" href="mailto:hello@euromat.info">
hello@euromat.info <feather-mail />
</a>

View file

@ -1,6 +1,6 @@
import { loadContent } from '@/helper/content'
export default loadContent(
'press',
'contact',
require.context('./content', false, /\.json$/)
)

View file

@ -4,12 +4,12 @@ import i18n from './i18n'
export default [
{
path: i18n[DEFAULT_LOCALE].press.url,
alias: getTranslatedAliases(i18n, 'press'),
name: 'press',
component: () => import('./components/index' /* webpackChunkName: "press" */),
path: i18n[DEFAULT_LOCALE].contact.url,
alias: getTranslatedAliases(i18n, 'contact'),
name: 'contact',
component: () => import('./components/index' /* webpackChunkName: "contact" */),
meta: {
title: getTranslatedTitles(i18n, 'press')
title: getTranslatedTitles(i18n, 'contact')
}
}
]

View file

@ -5,7 +5,7 @@
"index": "Startseite",
"faq": "FAQ",
"about": "Über uns",
"press": "Presse"
"contact": "Kontakt"
},
"footerMenu": {
"imprint": "Impressum",
@ -21,4 +21,4 @@
"btnDecline": "Decline",
"btnAccept": "Accept"
}
}
}

View file

@ -5,7 +5,7 @@
"index": "Landing page",
"faq": "FAQ",
"about": "About us",
"press": "Press"
"contact": "Contact"
},
"footerMenu": {
"imprint": "Imprint",
@ -21,4 +21,4 @@
"btnDecline": "Decline",
"btnAccept": "Accept"
}
}
}

View file

@ -7,7 +7,7 @@ import { i18n as party } from '@/app/party'
import { i18n as about } from '@/app/about'
import { i18n as fourzerofour } from '@/app/404'
import { i18n as faq } from '@/app/faq'
import { i18n as press } from '@/app/press'
import { i18n as contact } from '@/app/contact'
import { i18n as imprint } from '@/app/imprint'
import { i18n as privacy } from '@/app/privacy'
import { i18n as meta } from '@/data'
@ -20,7 +20,7 @@ const messages = [
meta,
intro, euromat, party,
about, fourzerofour, faq,
press, imprint, privacy
contact, imprint, privacy
]
function getLanguage (locale) {

View file

@ -10,7 +10,7 @@ import { routes as euromat } from '@/app/euromat'
import { routes as party } from '@/app/party'
import { routes as about } from '@/app/about'
import { routes as faq } from '@/app/faq'
import { routes as press } from '@/app/press'
import { routes as contact } from '@/app/contact'
import { routes as imprint } from '@/app/imprint'
import { routes as privacy } from '@/app/privacy'
import { routes as fourzerofour } from '@/app/404'
@ -30,7 +30,7 @@ const router = new Router({
...party,
...about,
...faq,
...press,
...contact,
...imprint,
...privacy,
...fourzerofour