Easton's Blog Easton's Blog
首页
  • 编程语言

    • Python
  • 框架

    • Django
  • Mdn (opens new window)
  • HTML
  • CSS
  • JavaScript
  • Mysql
  • PostgreSQL
  • Elasticsearch
  • MongoDB
  • Redis
  • 服务器命令
  • Docker
  • GIT
  • 摄影
  • 草稿
  • 归类方式

    • 分类
    • 标签
    • 归档
  • 关于博客

    • 博客教程
    • 友情链接
    • 关于
导航站
GitHub (opens new window)

Easton Yang

爱生活😊爱学习
首页
  • 编程语言

    • Python
  • 框架

    • Django
  • Mdn (opens new window)
  • HTML
  • CSS
  • JavaScript
  • Mysql
  • PostgreSQL
  • Elasticsearch
  • MongoDB
  • Redis
  • 服务器命令
  • Docker
  • GIT
  • 摄影
  • 草稿
  • 归类方式

    • 分类
    • 标签
    • 归档
  • 关于博客

    • 博客教程
    • 友情链接
    • 关于
导航站
GitHub (opens new window)
  • 博客教程

    • 目录结构
    • 各种配置
    • 博客主题案例
      • 代码块分组
      • 信息提示容器块
      • 如何让你的笔记更有表现力
    • markdown基本用法
    • markdown更具表现力
    • mermaid流程图案例
    • 插件
    • 自定义样式
    • 自定义components
    • Shields - 徽章
    • 项目遇到的问题
    • 更多
  • 关于

  • 索引
  • 博客教程
eastonyangxu
2023-05-04
目录

博客主题案例

# 代码块分组

注意

  • <code-block>标签之间用空行隔开,否则可能会解析不出来。
  • <code-group>标签 markdown 内容之间使用空行隔开,否则可能会解析不出来。

输入:

<code-group>
  <code-block title="YARN" active>
  ```bash
  yarn add vuepress-theme-vdoing -D
  ```
  </code-block>

  <code-block title="NPM">
  ```bash
  npm install vuepress-theme-vdoing -D
  ```
  </code-block>
</code-group>
1
2
3
4
5
6
7
8
9
10
11
12
13

输出:

    npm install -D vuepress
    
    1
    yarn install -D vuepress
    
    1
    // Make sure to add code blocks to your code group

    # 信息提示容器块

    输入:

    ::: tip tip
    :::
    
    ::: warning
    :::
    
    ::: danger danger
    :::
    
    ::: right
    right
    :::
    
    ::: center
    center
    :::
    
    ::: theorem theorem
    这里提供了一个灰色背景
    :::
    
    ::: details details
    details 块
    :::
    
    ::: cardImgList 4
    
    ```yaml
    - name: cardImgList
      img: /avatar-git.png
      link: https://github.com/eastonyangxu/
      desc: 这里的效果展示使用了cardImgList。 # 可选
      author: "eastonyangxu" # 可选
      avatar: /avatar-git.png # 可选
    ```
    
    :::
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37

    输出:

    tip

    注意

    danger

    right

    center

    theorem

    这里提供了一个灰色背景

    details

    details 块

    cardImgList

    这里的效果展示使用了cardImgList。

    eastonyangxu
    - name: cardImgList
      img: /avatar-git.png
      link: https://github.com/eastonyangxu/
      desc: 这里的效果展示使用了cardImgList。 # 可选
      author: "eastonyangxu" # 可选
      avatar: /avatar-git.png # 可选
    
    1
    2
    3
    4
    5
    6

    cardList(友情链接) 效果

    自定义 vue 容器(目录结构) 效果

    主题容器参考:源文档地址 (opens new window)

    # 如何让你的笔记更有表现力

    如何让你的笔记更有表现力 (opens new window)

    #博客教程#markdown案例
    上次更新: 2023/07/03, 09:49:50
    各种配置
    markdown基本用法

    ← 各种配置 markdown基本用法→

    最近更新
    01
    攻略制作要点
    07-18
    02
    摄影主题拍摄
    07-18
    03
    延时摄影剧本
    07-18
    更多文章>
    Theme by Vdoing | Copyright © 2023-2024 Easton Yang | MIT License
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式