Change skill type

This commit is contained in:
2024-02-25 15:58:03 +01:00
parent 22ceeab986
commit d53a89200d
2 changed files with 105 additions and 107 deletions

View File

@@ -1,4 +1,4 @@
import type { Education, JsonParsedContent, Post, Project, Skill, WorkExperience } from '~~/types' import type { Education, Post, Project, Skill, WorkExperience } from '~~/types'
export function getProjects() { export function getProjects() {
return useAsyncData('content:projects', () => { return useAsyncData('content:projects', () => {
@@ -27,7 +27,7 @@ export function getWorkExperiences() {
} }
export function getSkills() { export function getSkills() {
return useAsyncData('content:skills', () => queryContent<JsonParsedContent<Skill[]>>('skills').findOne()) return useAsyncData('content:skills', () => queryContent<Skill[]>('skills').findOne())
} }
export function getPosts() { export function getPosts() {

View File

@@ -1,5 +1,4 @@
{ [
"body": [
{ {
"name": "TypeScript", "name": "TypeScript",
"icon": "skill-icons:typescript" "icon": "skill-icons:typescript"
@@ -102,5 +101,4 @@
"light": "i-skill-icons-vercel-light" "light": "i-skill-icons-vercel-light"
} }
} }
] ]
}