mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
cms skills config
This commit is contained in:
parent
d0f6e50f99
commit
001e8eba08
@ -68,6 +68,8 @@ export default defineConfig({
|
||||
name: "posts",
|
||||
label: "Публикации",
|
||||
label_singular: "публикацию",
|
||||
description:
|
||||
"Технические статьи, туториалы и различные справочные материалы которые связаны с IT тематикой",
|
||||
folder: "src/content/blog",
|
||||
slug: "{{year}}-{{month}}-{{day}}_{{slug}}",
|
||||
create: true,
|
||||
@ -269,14 +271,32 @@ export default defineConfig({
|
||||
{
|
||||
name: "skills",
|
||||
label: "Навыки",
|
||||
label_singular: "навык",
|
||||
folder: "src/content/skills",
|
||||
create: true,
|
||||
delete: true,
|
||||
description: "Навыки отображаются на странице Обо мне",
|
||||
i18n: true,
|
||||
fields: [
|
||||
{
|
||||
name: "title",
|
||||
widget: "string",
|
||||
label: "Категория",
|
||||
widget: "string",
|
||||
required: true,
|
||||
i18n: true,
|
||||
},
|
||||
{
|
||||
name: "list",
|
||||
label: "Записи",
|
||||
required: true,
|
||||
widget: "list",
|
||||
allow_add: true,
|
||||
min: 1,
|
||||
i18n: true,
|
||||
fields: [
|
||||
{ name: "icon", label: "Иконка", widget: "string", i18n: true, required: false },
|
||||
{ name: "title", label: "Название", widget: "string", i18n: true },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -290,7 +310,7 @@ export default defineConfig({
|
||||
{
|
||||
name: "site-settings",
|
||||
label: "Настройки веб-сайта",
|
||||
file: "src/content/site-settings.yml",
|
||||
file: "src/content/site-settings.md",
|
||||
fields: [
|
||||
{
|
||||
label: "Глобальный заголовок",
|
||||
@ -298,6 +318,13 @@ export default defineConfig({
|
||||
widget: "string",
|
||||
hint: "Отображется во вкладке браузера.",
|
||||
},
|
||||
{
|
||||
label: "В разработке",
|
||||
name: "isUnderConstruction",
|
||||
widget: "boolean",
|
||||
default: false,
|
||||
hint: "Отображает баннер на всех старницах о том, что веб-сайт находится в разработке",
|
||||
},
|
||||
{
|
||||
label: "Статьи",
|
||||
name: "articles",
|
||||
|
||||
@ -46,4 +46,16 @@ const projects = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { blog, tags, authors, projects };
|
||||
const skills = defineCollection({
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
list: z
|
||||
.object({
|
||||
icon: z.string().optional(),
|
||||
title: z.string(),
|
||||
})
|
||||
.array(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = { blog, tags, authors, projects, skills };
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
---
|
||||
globalTitle: yarkov.tech
|
||||
articles:
|
||||
recentLimit: 5
|
||||
---
|
||||
10
src/content/skills/en/базы-данных.md
Normal file
10
src/content/skills/en/базы-данных.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Databases
|
||||
list:
|
||||
- icon: postgresql
|
||||
title: PostgreSQL
|
||||
- icon: mongodb
|
||||
title: MongoDB
|
||||
- icon: redis
|
||||
title: Redis
|
||||
---
|
||||
16
src/content/skills/en/инструменты.md
Normal file
16
src/content/skills/en/инструменты.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: Tools
|
||||
list:
|
||||
- icon: nodejs
|
||||
title: Node.js
|
||||
- icon: docker
|
||||
title: Docker
|
||||
- icon: git-branch
|
||||
title: Git/gitflow
|
||||
- icon: sass
|
||||
title: SASS
|
||||
- icon: webpack
|
||||
title: Webpack
|
||||
- icon: vite
|
||||
title: Vite.js
|
||||
---
|
||||
12
src/content/skills/en/программирование.md
Normal file
12
src/content/skills/en/программирование.md
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
title: Programming
|
||||
list:
|
||||
- icon: nodejs
|
||||
title: Javascript/Typescript
|
||||
- icon: language-c
|
||||
title: C Language
|
||||
- icon: mysql
|
||||
title: SQL
|
||||
- icon: avr
|
||||
title: AVR instruction set
|
||||
---
|
||||
18
src/content/skills/en/фреймворки.md
Normal file
18
src/content/skills/en/фреймворки.md
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
title: Frameworks
|
||||
list:
|
||||
- icon: adonisjs
|
||||
title: Adonis.js
|
||||
- icon: alpinejs
|
||||
title: Alpine.js
|
||||
- icon: expressjs
|
||||
title: Express.js
|
||||
- icon: socket-io
|
||||
title: Socket.io
|
||||
- icon: astro_filled
|
||||
title: Astro.js
|
||||
- icon: reactjs
|
||||
title: React.js
|
||||
- icon: gatsbyjs
|
||||
title: Gatsby.js
|
||||
---
|
||||
6
src/content/skills/en/языки.md
Normal file
6
src/content/skills/en/языки.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Languages
|
||||
list:
|
||||
- title: Russian (native)
|
||||
- title: English (B1)
|
||||
---
|
||||
10
src/content/skills/ru/базы-данных.md
Normal file
10
src/content/skills/ru/базы-данных.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Базы данных
|
||||
list:
|
||||
- icon: postgresql
|
||||
title: PostgreSQL
|
||||
- icon: mongodb
|
||||
title: MongoDB
|
||||
- icon: redis
|
||||
title: Redis
|
||||
---
|
||||
16
src/content/skills/ru/инструменты.md
Normal file
16
src/content/skills/ru/инструменты.md
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
title: Инструменты
|
||||
list:
|
||||
- icon: nodejs
|
||||
title: Node.js
|
||||
- icon: docker
|
||||
title: Docker
|
||||
- icon: git-branch
|
||||
title: Git/gitflow
|
||||
- icon: sass
|
||||
title: SASS
|
||||
- icon: webpack
|
||||
title: Webpack
|
||||
- icon: vite
|
||||
title: Vite.js
|
||||
---
|
||||
12
src/content/skills/ru/программирование.md
Normal file
12
src/content/skills/ru/программирование.md
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
title: Программирование
|
||||
list:
|
||||
- icon: nodejs
|
||||
title: Javascript/Typescript
|
||||
- icon: language-c
|
||||
title: C Language
|
||||
- icon: mysql
|
||||
title: SQL
|
||||
- icon: avr
|
||||
title: AVR instruction set
|
||||
---
|
||||
18
src/content/skills/ru/фреймворки.md
Normal file
18
src/content/skills/ru/фреймворки.md
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
title: Фреймворки
|
||||
list:
|
||||
- icon: adonisjs
|
||||
title: Adonis.js
|
||||
- icon: alpinejs
|
||||
title: Alpine.js
|
||||
- icon: expressjs
|
||||
title: Express.js
|
||||
- icon: socket-io
|
||||
title: Socket.io
|
||||
- icon: astro_filled
|
||||
title: Astro.js
|
||||
- icon: reactjs
|
||||
title: React.js
|
||||
- icon: gatsbyjs
|
||||
title: Gatsby.js
|
||||
---
|
||||
6
src/content/skills/ru/языки.md
Normal file
6
src/content/skills/ru/языки.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: Языки
|
||||
list:
|
||||
- title: Русский (родной)
|
||||
- title: Английский (B1)
|
||||
---
|
||||
Loading…
x
Reference in New Issue
Block a user