Skip to content

Commit 2cd3b88

Browse files
committed
Merge branch 'main' of github.com:nuxt-themes/alpine
2 parents d8c1f6e + e85b971 commit 2cd3b88

6 files changed

Lines changed: 35 additions & 10 deletions

File tree

.docs/content/1.index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulu
2121
::gallery
2222
---
2323
images:
24-
- /alpine-1.webp
2524
- /alpine-1.webp
2625
- /alpine-2.webp
2726
- /alpine-0.webp

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
[![npm version][npm-version-src]][npm-version-href]
66
[![License][license-src]][license-href]
77
[![npm downloads][npm-downloads-src]][npm-downloads-href]
8+
[![Nuxt][nuxt-src]][nuxt-href]
9+
[![Nuxt Studio][nuxt-studio-src]][nuxt-studio-href]
810
[![Volta][volta-src]][volta-href]
911

1012
The minimalist blog theme, powered by [Nuxt](https://nuxt.com).
@@ -47,5 +49,12 @@ npx nuxi@latest init -t themes/alpine
4749
[license-src]: https://img.shields.io/github/license/nuxt-themes/alpine.svg?style=flat&colorA=18181B&colorB=28CF8D
4850
[license-href]: https://github.com/nuxt-themes/alpine/blob/main/LICENSE
4951

52+
53+
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?&logo=nuxt.js
54+
[nuxt-href]: https://nuxt.com
55+
56+
[nuxt-studio-src]: https://img.shields.io/badge/Open%20in%20Nuxt%20Studio-18181B?&logo=nuxt.js&logoColor=3BB5EC
57+
[nuxt-studio-href]: https://nuxt.studio/templates/alpine
58+
5059
[volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg
5160
[volta-href]: https://volta.net/nuxt-themes/alpine?utm_source=readme_alpine

components/ColorModeSwitch.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,18 @@ const onClick = () => {
1212
<template>
1313
<button aria-label="Color Mode" @click="onClick">
1414
<ColorScheme>
15-
<Icon v-if="colorMode.preference === 'dark'" name="uil:moon" />
16-
<Icon v-else-if="colorMode.preference === 'light'" name="uil:sun" />
17-
<Icon v-else name="uil:desktop" />
15+
<template v-if="colorMode.preference === 'dark'">
16+
<Icon name="uil:moon" />
17+
<span class="sr-only">Dark mode</span>
18+
</template>
19+
<template v-else-if="colorMode.preference === 'light'">
20+
<Icon name="uil:sun" />
21+
<span class="sr-only">Light mode</span>
22+
</template>
23+
<template v-else>
24+
<Icon name="uil:desktop" />
25+
<span class="sr-only">System mode</span>
26+
</template>
1827
</ColorScheme>
1928
</button>
2029
</template>

layouts/article.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
const { page } = useContent()
2727
const route = useRoute()
2828
29+
if (page.value && page.value.cover) {
30+
useHead({
31+
meta: [
32+
{ property: 'og:image', content: page.value.cover }
33+
]
34+
})
35+
}
36+
2937
const parentPath = computed(
3038
() => {
3139
const pathTabl = route.path.split('/')

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nuxt-themes/alpine",
3-
"version": "1.3.1",
3+
"version": "1.4.1",
44
"type": "module",
55
"exports": "./nuxt.config.ts",
66
"files": [
@@ -30,7 +30,7 @@
3030
"@nuxt-themes/tokens": "^1.7.3",
3131
"@nuxt-themes/typography": "^0.8.0",
3232
"@nuxt/content": "^2.4.3",
33-
"@nuxthq/studio": "^0.7.1",
33+
"@nuxthq/studio": "^0.7.2",
3434
"@vueuse/core": "^9.12.0",
3535
"ufo": "^1.0.1"
3636
},

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)