Skip to content

Commit 1f74b4b

Browse files
committed
feat: move blog link from app header to footer
Also add some breathing room to the top of the blog post
1 parent 9d3714a commit 1f74b4b

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

app/components/AppFooter.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
>
1313
{{ $t('footer.about') }}
1414
</NuxtLink>
15+
<NuxtLink
16+
to="/blog"
17+
class="link-subtle font-mono text-xs min-h-8 sm:min-h-11 flex items-center"
18+
>
19+
{{ $t('footer.blog') }}
20+
</NuxtLink>
1521
<a
1622
href="https://docs.npmx.dev"
1723
target="_blank"

app/components/AppHeader.vue

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,6 @@ onKeyStroke('.', e => {
7878
<li v-if="isConnected && npmUser" class="flex items-center">
7979
<HeaderOrgsDropdown :username="npmUser" />
8080
</li>
81-
<li class="flex items-center">
82-
<NuxtLink
83-
to="/blog"
84-
class="link-subtle font-mono text-sm inline-flex items-center gap-2"
85-
aria-keyshortcuts="."
86-
>
87-
{{ $t('nav.blog') }}
88-
<kbd
89-
class="hidden sm:inline-flex items-center justify-center w-5 h-5 text-xs bg-bg-muted border border-border rounded"
90-
aria-hidden="true"
91-
>
92-
.
93-
</kbd>
94-
</NuxtLink>
95-
</li>
9681
</ul>
9782
</div>
9883

app/components/BlogPostWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ useSeoMeta({
1414
})
1515
</script>
1616
<template>
17-
<main class="container w-full">
17+
<main class="container w-full py-8">
1818
<article class="prose dark:prose-invert mx-auto">
1919
<slot />
2020
</article>

i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"trademark_disclaimer": "npm is a registered trademark of npm, Inc. This site is not affiliated with npm, Inc.",
1111
"footer": {
1212
"about": "about",
13+
"blog": "blog",
1314
"docs": "docs",
1415
"source": "source",
1516
"social": "social",
@@ -41,7 +42,6 @@
4142
"nav": {
4243
"main_navigation": "Main",
4344
"popular_packages": "Popular packages",
44-
"blog": "blog",
4545
"search": "search",
4646
"settings": "settings",
4747
"back": "back"

0 commit comments

Comments
 (0)