recipe/packages/create/template/docs/en/demo/page.md
2024-08-18 19:16:25 +08:00

2.5 KiB

title icon order author date category tag sticky star footer copyright
Page Config file 3 Ms.Hope 2020-01-01
Guide
Page config
Guide
true true Footer content for test No Copyright

Content before more comment is regarded as page excerpt.

Page Title

The first H1 title in Markdown will be regarded as page title.

You can also set title in Markdown's Frontmatter:

---
title: Page Title
---

Page Information

You can set page information in Markdown's Frontmatter.

  • The author is Ms.Hope.
  • The writing date is January 1, 2020
  • Category is "Guide"
  • Tags are "Page Config" and "Guide"

Page Content

You are free to write your Markdown here.

::: tip Assets

  • You can place images besides your Markdown files nd use relative links.
  • For images in .vuepress/public directory, please use absolute links (i.e.: starting with /).

:::

Components

Each markdown page is converted into a Vue component, which means you can use Vue syntax in Markdown:

{{ 1 + 1 }}

  • {{ i }}

You can also create and import your own components.


The theme contains some useful components. Here are some examples:

  • A dark blue badge text badge at the end of line.

  • A card:

    title: Mr.Hope
    desc: Where there is light, there is hope
    logo: https://mister-hope.com/logo.svg
    link: https://mister-hope.com
    background: rgba(253, 230, 138, 0.15)