Compare commits
1 Commits
master
...
vue-plus-p
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e5317d471 |
@@ -1,7 +1,7 @@
|
|||||||
import {loadTranslations} from '$lib/translations';
|
import {loadTranslations} from '$lib/translations';
|
||||||
import type {LayoutLoad} from "./$types";
|
import type {LayoutLoad} from "./$types";
|
||||||
|
|
||||||
export const load: LayoutLoad = async ({ url, data }) => {
|
export const load: LayoutLoad = async ({ data }) => {
|
||||||
const { locale } = data.i18n
|
const { locale } = data.i18n
|
||||||
|
|
||||||
await loadTranslations(locale);
|
await loadTranslations(locale);
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
import {metadata as htmlInCssMetadata} from "./html-in-css/+page.svx"
|
import {metadata as htmlInCssMetadata} from "./html-in-css/+page.svx"
|
||||||
import {metadata as thisBlogMetadata} from "./this-blog/+page.svx"
|
import {metadata as thisBlogMetadata} from "./this-blog/+page.svx"
|
||||||
import {metadata as shortsMetadata} from "./shorts/+page.svx"
|
import {metadata as shortsMetadata} from "./shorts/+page.svx"
|
||||||
|
import {metadata as vuePlusPayloadMetadata} from "./vue-plus-payload/+page.svx"
|
||||||
|
|
||||||
const posts = [
|
const posts = [
|
||||||
|
{
|
||||||
|
href: '/blog/vue-plus-payload',
|
||||||
|
...vuePlusPayloadMetadata
|
||||||
|
},
|
||||||
{
|
{
|
||||||
href: '/blog/shorts',
|
href: '/blog/shorts',
|
||||||
...shortsMetadata
|
...shortsMetadata
|
||||||
|
|||||||
15
src/routes/blog/vue-plus-payload/+page.svx
Normal file
15
src/routes/blog/vue-plus-payload/+page.svx
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: "Vue + Payload"
|
||||||
|
date: "2025-xx-xx"
|
||||||
|
---
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ArticleTitle from "$lib/components/ArticleTitle.svelte"
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<ArticleTitle metadata={metadata}/>
|
||||||
|
|
||||||
|
Я разработал интеграцию между Vue и Payload CMS, превращающую последнюю в конструктор сайтов использующий готовые компоненты
|
||||||
|
Vue, которые есть в существующем проекте.
|
||||||
|
|
||||||
|
Допустим вы уже построили сайт, на котором сверстаны компоненты, они используются
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"*.config.ts",
|
"*.config.ts",
|
||||||
"src/blog/**/*.svx",
|
"src/routes/blog/**/*.svx",
|
||||||
"src/**/*.svelte",
|
"src/**/*.svelte",
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
"rehype/**/*.ts"
|
"rehype/**/*.ts"
|
||||||
|
|||||||
Reference in New Issue
Block a user