Skip to content

Commit 0a4df3a

Browse files
committed
update
1 parent 6569f2f commit 0a4df3a

File tree

9 files changed

+53
-10
lines changed

9 files changed

+53
-10
lines changed

src/_posts/2024-03-01_vite-press-plugin.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,42 @@ Supporting all Blog features requires several different pages to render each of
166166
| Display Posts by Tag | [/posts/tagged/markdown](/posts/tagged/markdown) | [\[tag\].vue](https://github.com/NetCoreTemplates/vue-spa/blob/main/MyApp.Client/src/pages/posts/tagged/%5Btag%5D.vue) | [\[tag\].tsx](https://github.com/NetCoreTemplates/react-spa/blob/main/MyApp.Client/src/pages/posts/tagged/%5Btag%5D.tsx) |
167167
| Display Posts by Year | [/posts/year/2024](/posts/year/2024) | [\[year\].vue](https://github.com/NetCoreTemplates/vue-spa/blob/main/MyApp.Client/src/pages/posts/year/%5Byear%5D.vue) | [\[year\].tsx](https://github.com/NetCoreTemplates/react-spa/blob/main/MyApp.Client/src/pages/posts/year/%5Byear%5D.tsx) |
168168

169+
#### Configuration
170+
171+
Additional information about the Website Blog is maintained in `_posts/config.json`
172+
173+
```json
174+
{
175+
"localBaseUrl": "http://localhost:5173",
176+
"publicBaseUrl": "https://press-vue.web-templates.io",
177+
"siteTwitter": "@Vue",
178+
"blogTitle": "From the blog",
179+
"blogDescription": "Writing on software design and aerospace industry.",
180+
"blogEmail": "[email protected] (Vue)",
181+
"blogImageUrl": "https://servicestack.net/img/logo.png"
182+
}
183+
```
184+
185+
#### Authors
186+
187+
Whilst information about Post Authors are maintained in `_posts/authors.json`
188+
189+
```json
190+
[
191+
{
192+
"name": "Lucy Bates",
193+
"email": "[email protected]",
194+
"bio": "Writing on software design and aerospace industry.",
195+
"profileUrl": "/img/profiles/user1.svg",
196+
"twitterUrl": "https://twitter.com/lucy",
197+
"threadsUrl": "https://threads.net/@lucy",
198+
"gitHubUrl": "https://github.com/lucy"
199+
},
200+
]
201+
```
202+
203+
To associate an Author the **name** property is used to match a posts frontmatter **author**.
204+
169205
### General Features
170206

171207
Most unique markdown features are captured in their Markdown's frontmatter metadata, but in general these features

src/_posts/config.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"localBaseUrl": "https://localhost:5001",
2+
"localBaseUrl": "http://localhost:5173",
33
"publicBaseUrl": "https://press-vue.web-templates.io",
44
"siteTwitter": "@Vue",
55
"blogTitle": "From the blog",
6-
"blogDescription": "Writing on software design, company building, and the aerospace industry.",
6+
"blogDescription": "Writing on software design and aerospace industry.",
77
"blogEmail": "[email protected] (Vue)",
88
"blogImageUrl": "https://servicestack.net/img/logo.png"
9-
}
9+
}

src/components/SrcLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { computed } from "vue"
1010
import { lastRightPart, combinePaths } from "@servicestack/client"
1111
12-
const baseUrl = "https://github.com/ServiceStack/vite-plugin-press/blob/main"
12+
const baseUrl = "https://github.com/ServiceStack/press-vue/blob/main"
1313
1414
const props = defineProps<{
1515
href: string

src/components/SrcPage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<SrcLink :href="combinePaths('/example/vue-press/src',path)">
2+
<SrcLink :href="combinePaths('/src/pages',path)">
33
<Iconify icon="logos:vue" class="w-5 h-5 inline" />
44
</SrcLink>
55
</template>

src/pages/blog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
</div>
134134

135135
<div class="my-8 flex justify-center gap-x-4">
136-
<SrcPage path="pages/blog.vue" />
136+
<SrcPage path="blog.vue" />
137137
</div>
138138
</template>
139139

src/pages/counter.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PrimaryButton @click="incrementCount">Click me</PrimaryButton>
88

99
<div class="mt-8 flex justify-center gap-x-4">
10-
<SrcPage path="pages/counter.vue" />
10+
<SrcPage path="counter.vue" />
1111
</div>
1212

1313
</div>

src/pages/index.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
<p class="mx-auto mt-3 max-w-md text-base text-gray-500 dark:text-gray-400 sm:text-lg md:mt-5 md:max-w-3xl md:text-xl">
1010
Welcome to your new Vue SPA App
1111
</p>
12+
<div class="mx-auto mt-5 max-w-md sm:flex sm:justify-center md:mt-8">
13+
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
14+
<a href="https://docs.servicestack.net/vue/" class="flex w-full items-center justify-center rounded-md border border-transparent bg-green-600 px-8 py-3 text-base font-medium text-white hover:bg-green-700 md:py-4 md:px-10 md:text-lg">
15+
Vue Component Gallery
16+
</a>
17+
</div>
18+
</div>
1219
</div>
1320
</div>
1421

@@ -88,7 +95,7 @@
8895
learnMore="https://docs.servicestack.net/vue/" />
8996

9097
<div class="my-8 flex justify-center gap-x-4">
91-
<SrcPage path="pages/index.vue" />
98+
<SrcPage path="index.vue" />
9299
</div>
93100

94101
</template>

src/pages/posts/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929

3030
<div class="my-8 flex justify-center gap-x-4">
31-
<SrcPage path="pages/posts/index.vue" />
31+
<SrcPage path="posts/index.vue" />
3232
</div>
3333
</template>
3434

src/pages/videos.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
learnMore="https://docs.servicestack.net/vue/" />
1616

1717
<div class="my-8 flex justify-center gap-x-4">
18-
<SrcPage path="pages/videos.vue" />
18+
<SrcPage path="videos.vue" />
1919
</div>
2020

2121
</template>

0 commit comments

Comments
 (0)