Skip to content

Commit 972c9d0

Browse files
committed
feat: update blog feed
1 parent 671488d commit 972c9d0

File tree

2 files changed

+11
-39
lines changed

2 files changed

+11
-39
lines changed

.vitepress/config/head.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ const head: HeadConfig[] = [
132132
rel: 'stylesheet',
133133
},
134134
],
135+
[
136+
'script',
137+
{
138+
async: '',
139+
src: 'https://static.elfsight.com/platform/platform.js',
140+
},
141+
],
135142
// [
136143
// 'script',
137144
// {},

.vitepress/theme/components/Community/Blog.vue

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
// old component. will refactor later
33
import { ExternalLink } from 'lucide-vue-next';
44
import Button from '../shared/Button.vue';
5-
6-
const articles = [
7-
{
8-
title: "Roadmap for Final Third...",
9-
date: "August 28, 2024",
10-
link: "https://blog.leafphp.dev/posts/2024-t3-roadmap.html"
11-
},
12-
{
13-
title: "Build First Recap",
14-
date: "April 18, 2023",
15-
link: "https://blog.leafphp.dev/posts/buildfirst-recap.html"
16-
},
17-
{
18-
title: "2023 Docs Updates",
19-
date: "March 14, 2023",
20-
link: "https://blog.leafphp.dev/posts/docs-updates.html"
21-
},
22-
{
23-
title: "Getting Started with Leaf",
24-
date: "January 7, 2023",
25-
link: "https://blog.leafphp.dev/posts/getting-started.html"
26-
},
27-
];
285
</script>
296

307
<template>
@@ -36,29 +13,17 @@ const articles = [
3613
Our main goal and pride at Leaf is to make PHP development as simple and elegant as possible.
3714
</p>
3815
<p class="mb-6">
39-
Our team is always looking to improve your experience using the Leaf framework and it's ecosystem of tools. You
40-
can follow along as our team discusses it's insights from the past year and what's to come in 2023.
16+
Our team is always looking to improve your experience using the Leaf framework and it's ecosystem of tools.
17+
You
18+
can follow along as our team discusses it's insights from the past year and what's to come in 2025.
4119
</p>
4220
<Button as="a" href="https://blog.leafphp.dev" target="_blank">
4321
<span>Read the Blog</span>
4422
<ExternalLink height="18px" />
4523
</Button>
4624
</div>
4725

48-
<div>
49-
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;">
50-
<div class="blog-card" v-for="article in articles">
51-
<a :href="article.link" target="_blank">
52-
<div>
53-
<h4>{{ article.title }}</h4>
54-
<div>
55-
<span style="font-size: 12px;">{{ article.date }}</span>
56-
</div>
57-
</div>
58-
</a>
59-
</div>
60-
</div>
61-
</div>
26+
<div class="elfsight-app-6190fe7f-f619-4dda-9952-9324f84ba50c" data-elfsight-app-lazy></div>
6227
</div>
6328
</section>
6429
</template>

0 commit comments

Comments
 (0)