Add plamo equipment routes.
This commit is contained in:
parent
4dc5fcb4ea
commit
375d95f71f
@ -46,7 +46,7 @@ import EquipmentPage from './Pages/Radio/equipmentPage';
|
||||
import PlamoMain from './Pages/Plamo/PlamoMain'
|
||||
|
||||
import { languages, getLanguage } from './Language/Language';
|
||||
import { japaneseRoutes, plamoBlogRoutes, programmingLanguageRoutes } from './Routers';
|
||||
import { japaneseRoutes, plamoBlogRoutes, plamoEquipmentRoutes, programmingLanguageRoutes } from './Routers';
|
||||
|
||||
function App() {
|
||||
const language = getLanguage();
|
||||
@ -130,6 +130,7 @@ function App() {
|
||||
|
||||
{/* Plamo */}
|
||||
{plamoBlogRoutes}
|
||||
{plamoEquipmentRoutes}
|
||||
|
||||
{/* Software */}
|
||||
{programmingLanguageRoutes}
|
||||
|
||||
@ -39,6 +39,7 @@ const languageStrings = {
|
||||
nvisAntenna: 'NVIS Antenna',
|
||||
totalUniqueQSO: 'total unique QSO',
|
||||
// Scale Model
|
||||
plamo: 'Plamo',
|
||||
scalemodel: 'Scale model',
|
||||
// Software
|
||||
code_pages: 'Code sections',
|
||||
@ -85,6 +86,7 @@ const languageStrings = {
|
||||
nvisAntenna: 'NVIS antenne',
|
||||
totalUniqueQSO: 'totaal unieke QSO',
|
||||
// Scale Model
|
||||
plamo: 'Plamo',
|
||||
scalemodel: 'Schaalmodel',
|
||||
// Software
|
||||
code_pages: 'Code secties',
|
||||
|
||||
@ -4,8 +4,6 @@ Building and painting scale models is one of my hobbies. Here is a collection of
|
||||
|
||||
---
|
||||
|
||||
## Blog
|
||||
|
||||
### Equipment
|
||||
|
||||
* [Airbrush booth](./blog/airbrush-cabine)
|
||||
* [Airbrush booth](./equipment/airbrush-cabine)
|
||||
|
||||
@ -6,7 +6,6 @@ import BlogPage from './Pages/Plamo/BlogPage';
|
||||
import CSharpPage from './Pages/Software/csharp/CSharpPage';
|
||||
import ElmPage from './Pages/Software/elm/ElmPage';
|
||||
|
||||
|
||||
// Japan
|
||||
export const japaneseRoutes = languages.map(lang => {
|
||||
const pages = ['but', 'cheat-sheet', 'contrast-particle', 'dake-vs-shika', 'expressions', 'if-when', 'japanese-scale-modelling-tools', 'mae-ni-ato-de', 'particles', 'rashii-kamoshirenai-darou', 'tameni-youni-noni', 'te-form', 'te-oku', 'toka-tari-shi', 'verbs'];
|
||||
@ -26,6 +25,14 @@ export const plamoBlogRoutes = languages.map(lang => {
|
||||
return <Route key={`${lang}-${page}`} exact path={path} element={<BlogPage mdPath={mdPath} />} />;
|
||||
});
|
||||
}).flat();
|
||||
export const plamoEquipmentRoutes = languages.map(lang => {
|
||||
const pages = ['airbrush-cabine'];
|
||||
return pages.map(page => {
|
||||
const path = `/${lang}/plamo/equipment/${page}`;
|
||||
const mdPath = `Plamo/equipment/${lang}/${page}.md`;
|
||||
return <Route key={`${lang}-${page}`} exact path={path} element={<BlogPage mdPath={mdPath} />} />;
|
||||
});
|
||||
}).flat();
|
||||
|
||||
// Software
|
||||
export const programmingLanguageRoutes = languages.map(lang => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user