Skip to content

Commit 0570e33

Browse files
committed
Refactor HTML structure for article titles and links in blog index
1 parent ba8af8a commit 0570e33

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/pages/blog/index.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ const otherArticles = computed(() => articles.value.slice(1))
6464
</div>
6565
</div>
6666
<div class="p-6 md:w-1/2">
67-
<h2
68-
class="text-2xl font-semibold text-slate-800 dark:text-slate-100"
69-
>
67+
<h2 class="text-2xl font-semibold text-slate-800 dark:text-slate-100">
7068
{{ latestArticle.children[0]?.meta?.title }}
7169
</h2>
7270
<p class="mt-2 text-slate-600 dark:text-slate-400">
@@ -76,9 +74,7 @@ const otherArticles = computed(() => articles.value.slice(1))
7674
<time class="text-sm text-slate-500 dark:text-slate-400">
7775
{{ latestArticle.children[0]?.meta?.date }}
7876
</time>
79-
<div
80-
class="flex items-center text-sm font-medium text-sky-500"
81-
>
77+
<div class="flex items-center text-sm font-medium text-sky-500">
8278
Read article
8379
<svg
8480
viewBox="0 0 16 16"
@@ -135,9 +131,7 @@ const otherArticles = computed(() => articles.value.slice(1))
135131
</div>
136132
</div>
137133
<div class="p-6">
138-
<h2
139-
class="text-xl font-semibold text-slate-800 dark:text-slate-100"
140-
>
134+
<h2 class="text-xl font-semibold text-slate-800 dark:text-slate-100">
141135
{{ article.children[0]?.meta?.title }}
142136
</h2>
143137
<p class="mt-2 text-sm text-slate-600 dark:text-slate-400">
@@ -147,9 +141,7 @@ const otherArticles = computed(() => articles.value.slice(1))
147141
<time class="text-xs text-slate-500 dark:text-slate-400">
148142
{{ article.children[0]?.meta?.date }}
149143
</time>
150-
<div
151-
class="flex items-center text-sm font-medium text-sky-500"
152-
>
144+
<div class="flex items-center text-sm font-medium text-sky-500">
153145
Read article
154146
<svg
155147
viewBox="0 0 16 16"

0 commit comments

Comments
 (0)