Skip to content

Commit

Permalink
chore: update starter files (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Jan 23, 2024
1 parent aeeea83 commit 417beed
Show file tree
Hide file tree
Showing 10 changed files with 1,880 additions and 2,607 deletions.
8 changes: 5 additions & 3 deletions .starters/default/content/1.index.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
---
layout: default
head.title: Alpine
head:
title: Alpine
description: An open source blog theme powered by Nuxt.
title: About
---

::hero
---
image: '/alpine-0.webp'
image: /alpine-0.webp
---
#title
Hi, I am Alpine.

#description
- An [open source blog theme](https://github.com/nuxt-themes/alpine) powered by [Nuxt Content](https://content.nuxtjs.org), editable on [Nuxt Studio](https://nuxt.studio).
- Write pages in Markdown and Vue components with the [MDC syntax](https://content.nuxtjs.org/guide/writing/mdc).
- Use [**30+ built-in**](https://elements.nuxt.space) components in your Markdown pages.
::

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim.

Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Expand Down
9 changes: 3 additions & 6 deletions .starters/default/content/2.articles.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
title: 'Articles'
layout: 'page'
title: Articles
layout: page
---

::articles-list
---
path: articles
---
::articles-list{path="articles"}
::
32 changes: 14 additions & 18 deletions .starters/default/content/3.contact.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
---
title: 'Contact'
layout: 'default'
# Custom og:image
title: Contact
layout: default
---

# Get in touch

::contact-form
---
fields:
- type: 'text'
name: 'name'
label: 'Your name'
- type: text
name: name
label: Your name
required: true

- type: 'email'
name: 'email'
label: 'Your email'
- type: email
name: email
label: Your email
required: true

- type: 'text'
name: 'subject'
label: 'Subject'
- type: text
name: subject
label: Subject
required: false

- type: 'textarea'
name: 'message'
label: 'Message'
- type: textarea
name: message
label: Message
required: true
---
::
3 changes: 1 addition & 2 deletions .starters/default/content/articles/1.get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author:
name: Sébastien Chopin
avatarUrl: https://pbs.twimg.com/profile_images/1042510623962275840/1Iw_Mvud_400x400.jpg
link: https://twitter.com/atinux
date: 2022-08-23
date: 2022-08-23T00:00:00.000Z
layout: article
---

Expand Down Expand Up @@ -38,7 +38,6 @@ npm run dev

Next, you can start creating your content in Markdown in the `content/` directory.


## Deploy

### Static hosting
Expand Down
2 changes: 1 addition & 1 deletion .starters/default/content/articles/2.configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author:
name: Clément Ollivier
avatarUrl: https://pbs.twimg.com/profile_images/1370286658432724996/ZMSDzzIi_400x400.jpg
link: https://twitter.com/clemcodes
date: 2022-08-23
date: 2022-08-23T00:00:00.000Z
description: Learn how to configure Alpine with the app.config.ts file.
layout: article
---
Expand Down
10 changes: 3 additions & 7 deletions .starters/default/content/articles/3.write-articles.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
cover: /articles/write-articles.webp
date: 2022-08-23
date: 2022-08-23T00:00:00.000Z
description: Writing Markdown articles in Alpine is straightforward.
layout: article
---
Expand All @@ -12,7 +12,7 @@ Write Markdown articles in Alpine is straightforward.
## Create an articles list

Create a new file in the `content/` directory:

```bash
touch content/2.articles.md
```
Expand All @@ -26,13 +26,11 @@ In this file, use the `articles-list` component to display the list of articles:
title: 'Articles'
layout: 'page'
---

::articles-list
---
path: articles
---
::

```

The `path` prop corresponds to the directory where the articles are stored.
Expand Down Expand Up @@ -68,9 +66,7 @@ Under the frontmatter block, enter a Markdown `h1` tag and a line of text:
cover: path/to/cover
date: 2022-08-23
---

# An awesome article

This article is little by size but big by heart.
```

Expand All @@ -80,7 +76,7 @@ Your article will now be displayed in the list with the title and description yo

If you want to change the title and description displayed on the list and in the meta tags of the article, add the `title` and `description` property to your frontmatter:

```md[content/articles/1.my-new-article.md]
```md [content/articles/1.my-new-article.md]
---
cover: path/to/cover
date: 2022-08-23
Expand Down
2 changes: 1 addition & 1 deletion .starters/default/content/articles/4.design-tokens.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
cover: /articles/design-tokens.webp
date: 2022-08-23
date: 2022-08-23T00:00:00.000Z
layout: article
---

Expand Down
10 changes: 5 additions & 5 deletions .starters/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
},
"devDependencies": {
"@nuxt-themes/alpine": "latest",
"@nuxt/devtools": "^0.8.5",
"@nuxt/devtools": "^1.0.8",
"@nuxt/eslint-config": "^0.2.0",
"@nuxtjs/plausible": "^0.2.3",
"@types/node": "^20.7.1",
"eslint": "^8.50.0",
"nuxt": "^3.7.4"
"@nuxtjs/plausible": "^0.2.4",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"nuxt": "^3.9.3"
}
}
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@
"@nuxt-themes/elements": "^0.9.5",
"@nuxt-themes/tokens": "^1.9.1",
"@nuxt-themes/typography": "^0.11.0",
"@nuxt/content": "^2.8.5",
"@nuxt/content": "^2.11.0",
"@nuxthq/studio": "^0.14.1",
"@vueuse/core": "^10.4.1",
"ufo": "^1.3.1"
"@vueuse/core": "^10.7.2",
"ufo": "^1.3.2"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.2.0",
"@nuxtjs/plausible": "^0.2.3",
"@types/node": "^20.7.1",
"eslint": "^8.50.0",
"nuxt": "^3.7.4",
"release-it": "^16.2.1",
"typescript": "^5.2.2",
"vite-plugin-inspect": "^0.7.38",
"vue": "^3.3.4"
"@nuxtjs/plausible": "^0.2.4",
"@types/node": "^20.11.5",
"eslint": "^8.56.0",
"nuxt": "^3.9.3",
"release-it": "^16.3.0",
"typescript": "^5.3.3",
"vite-plugin-inspect": "^0.8.1",
"vue": "^3.4.15"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
Loading

0 comments on commit 417beed

Please sign in to comment.