File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulu
2121:: gallery
2222---
2323images:
24- - /alpine-1.webp
2524 - /alpine-1.webp
2625 - /alpine-2.webp
2726 - /alpine-0.webp
Original file line number Diff line number Diff line change 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
1012The 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
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 2626const { page } = useContent ()
2727const 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+
2937const parentPath = computed (
3038 () => {
3139 const pathTabl = route .path .split (' /' )
Original file line number Diff line number Diff line change 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" : [
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 },
You can’t perform that action at this time.
0 commit comments