mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 02:19:08 +03:00
refactor: changed markdown import on about page
This commit is contained in:
parent
6de7cced23
commit
1a5b03740d
2
content
2
content
@ -1 +1 @@
|
||||
Subproject commit 78e2d0d252b8a7f0b2c0095e89b1e1c1cd1e3996
|
||||
Subproject commit fe9b92e62803f7d13af309f59b1e894cf1ff375b
|
||||
@ -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} />)}
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user