Skip to content

Commit 642ec75

Browse files
committed
Add heading level one in blog posts
1 parent 836d434 commit 642ec75

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/.vuepress/theme/layouts/Posts.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
class="ml-2"
1212
/>
1313

14+
<h1 class="pl-3 mt-2 mb-12 text-5xl font-bold leading-10 lg:pl-6">
15+
Latest posts <span class="capitalize">{{ isCategory ? `(${$currentCategories.key})` : '' }}</span>
16+
</h1>
17+
1418
<ul class="flex flex-wrap justify-between w-full px-3 lg:pr-6 lg:pl-0 lg:ml-6 xl:pr-0">
1519
<li
1620
v-for="post in posts"

src/.vuepress/theme/styles/_markdown.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848

4949
h1, h2, h3 {
50-
@apply relative;
50+
@apply relative bg-main text-color;
5151

5252
.header-anchor {
5353
@apply text-accent-primary absolute top-0 opacity-0 no-underline;

0 commit comments

Comments
 (0)