Create an article

To create a new article, create a new Markdown file in the content/articles directory:

touch content/articles/1.my-new-article.md

Display the article in the list

For your article to be correctly displayed in the articles list, define a cover and date property in the frontmatter:

---cover: path/to/coverdate: 2022-08-23---
content/articles/1.my-new-article.md

The cover property can be a local path relative to the /public directory or an external URL.

Your article will now be displayed in the list with its filename as a default title.

Edit your article

Under the frontmatter block, enter a Markdown h1 tag and a line of text:

---cover: path/to/coverdate: 2022-08-23---# An awesome articleThis article is little by size but big by heart.
content/articles/1.my-new-article.md

Your article will now be displayed in the list with the title and description you wrote in Markdown.

Override title and description

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:

---cover: path/to/coverdate: 2022-08-23title: Another titledescription: Another description---
content/articles/1.my-new-article.md

Read more

Alpine is a Nuxt theme using the Content module in documentDriven mode.

👉 Learn more in the Nuxt Content documentation.