refactor: changed markdown import on about page

This commit is contained in:
Sergey Yarkov 2022-08-01 20:03:36 +03:00
parent 6de7cced23
commit 1a5b03740d
3 changed files with 6 additions and 8 deletions

@ -1 +1 @@
Subproject commit 78e2d0d252b8a7f0b2c0095e89b1e1c1cd1e3996
Subproject commit fe9b92e62803f7d13af309f59b1e894cf1ff375b

View File

@ -1,23 +1,21 @@
---
import { SITE_METADATA } from '@root/config';
import { Markdown } from 'astro/components';
import PageLayout from '@layouts/default.astro';
import SkillsList from '@components/SkillsList';
import SkillsBlock from '@components/SkillsBlock';
// TODO: import content based on user ui language
import * as aboutContent from '../../content/about/ru/index.md';
import * as about from '../../content/about/ru/index.md';
import ArticleContent from '@components/ArticleContent';
const { skills } = SITE_METADATA;
const { Content } = about;
---
<PageLayout title='Обо мне'>
<PageLayout title="Обо мне">
<section>
<ArticleContent>
<Markdown content={aboutContent.rawContent()}>
</Markdown>
<Content />
</ArticleContent>
<SkillsList>
{skills.map((block) => <SkillsBlock data={block} />)}

View File

@ -1,7 +1,7 @@
---
import type { MarkdownInstance } from 'astro';
import ArticleLayout from '@root/layouts/article.astro';
import ArticleLayout from '@layouts/article.astro';
// TODO: generate pages based on user language
export async function getStaticPaths() {