mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +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 { SITE_METADATA } from '@root/config';
|
||||||
import { Markdown } from 'astro/components';
|
|
||||||
import PageLayout from '@layouts/default.astro';
|
import PageLayout from '@layouts/default.astro';
|
||||||
import SkillsList from '@components/SkillsList';
|
import SkillsList from '@components/SkillsList';
|
||||||
import SkillsBlock from '@components/SkillsBlock';
|
import SkillsBlock from '@components/SkillsBlock';
|
||||||
|
|
||||||
// TODO: import content based on user ui language
|
// 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';
|
import ArticleContent from '@components/ArticleContent';
|
||||||
|
|
||||||
const { skills } = SITE_METADATA;
|
const { skills } = SITE_METADATA;
|
||||||
|
const { Content } = about;
|
||||||
---
|
---
|
||||||
|
|
||||||
<PageLayout title='Обо мне'>
|
<PageLayout title="Обо мне">
|
||||||
<section>
|
<section>
|
||||||
<ArticleContent>
|
<ArticleContent>
|
||||||
<Markdown content={aboutContent.rawContent()}>
|
<Content />
|
||||||
|
|
||||||
</Markdown>
|
|
||||||
</ArticleContent>
|
</ArticleContent>
|
||||||
<SkillsList>
|
<SkillsList>
|
||||||
{skills.map((block) => <SkillsBlock data={block} />)}
|
{skills.map((block) => <SkillsBlock data={block} />)}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
import type { MarkdownInstance } from 'astro';
|
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
|
// TODO: generate pages based on user language
|
||||||
export async function getStaticPaths() {
|
export async function getStaticPaths() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user