Skip to content

Commit 67f6af8

Browse files
committed
Update local URLs in nuxt.config.ts and refactor time rendering in ArticleCard.vue and Top1.vue
1 parent 474b649 commit 67f6af8

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

components/blog/page/card/ArticleCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const title = computed(() => {
3131
class="w-full h-48 object-cover rounded-xxl" />
3232
<div class="p-4">
3333
<h2 class="text-xl font-semibold text-gray-900 dark:text-gray-100">{{ title }}</h2>
34-
<time v-if="blogArticle?.pubDate" class="text-sm text-gray-500 dark:text-gray-400"><i18n-d :value="blogArticle?.pubDate"></i18n-d></time>
35-
<ContentRenderer class="text-gray-700 dark:text-gray-300 mt-2" :value="blogArticle" excerpt="true">
34+
<time class="text-sm text-gray-500 dark:text-gray-400"><i18n-d :value="blogArticle.pubDate"></i18n-d></time>
35+
<ContentRenderer class="text-gray-700 dark:text-gray-300 mt-2" :value="blogArticle" :excerpt="true">
3636
</ContentRenderer>
3737
</div>
3838
</NuxtLink>

components/blog/page/top1/Top1.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const {blogArticle} = defineProps<{
2121
class="w-full h-96 object-cover rounded-xxl" />
2222
<div class="p-4">
2323
<h1 class="text-xl font-bold text-on-surface dark:text-white">{{ blogArticle.title }}</h1>
24-
<time v-if="blogArticle?.pubDate" class="text-sm text-on-surface-variant dark:text-white">
25-
<i18n-d :value="blogArticle?.pubDate"></i18n-d>
26-
</time>
24+
<time class="text-sm text-on-surface-variant dark:text-white">
25+
<i18n-d :value="blogArticle.pubDate"></i18n-d>
26+
</time>
2727
<p class="text-on-surface-variant mt-4 dark:text-white">{{ blogArticle.description }}</p>
2828
</div>
2929
</NuxtLink>

nuxt.config.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default defineNuxtConfig({
1616
name: 'OneLiteFeather Network',
1717
alternateName: 'OneLiteFeather.net',
1818
description: 'OneLiteFeather is a Minecraft Network focusing on the development tools with intention to share with other servers. ',
19-
url: 'https://onelitefeather.net',
19+
url: 'http://localhost:3000',
2020
logo: '/logo.svg',
2121

2222
// Contact Information, if applicable
@@ -60,7 +60,8 @@ export default defineNuxtConfig({
6060
useCookie: true,
6161
cookieKey: 'i18n_redirected',
6262
redirectOn: 'root' // recommended
63-
}
63+
},
64+
baseUrl: 'http://localhost:3000',
6465
},
6566
tailwindcss: {
6667
cssPath: [`~/css/tailwind.css`, { injectPosition: "first" }],
@@ -86,7 +87,15 @@ export default defineNuxtConfig({
8687
},
8788
site: {
8889
name: 'OneLiteFeather',
89-
url: 'https://blog.onelitefeather.net',
90+
url: 'http://localhost:3000',
91+
},
92+
posthog: {
93+
publicKey: 'phc_t9nBlYL9LcDj4LDKZfQ97m5nbvFDTugkdQqAAspfdI',
94+
host: 'https://eu.i.posthog.com',
95+
proxy: true,
96+
clientOptions: {
97+
person_profiles: 'always'
98+
}
9099
},
91100
sitemap: {
92101
autoI18n: true,

0 commit comments

Comments
 (0)