# Create new post

First open ..\hexo_blog_in_shoka_theme\source , and go to the proper place of your new post.
Then open cmd here, and type

hexo new [layout] <title>

如果沒有設定 layout,則會使用 _config.yml 中的 default_layout 來設定

Need to put title in "" if there are more than two words in it
(Because it will identify the first word as layout.)


# Required

Open the markdown file just created. In the metadata area, modify the following info.

  1. Use the default create date 即可
    date: 2023-04-19 13:33:45

  2. If only need one tag: tags: aaa


# Choice

  1. sticky: true if you want to 置頂一篇文章

  2. 可以指定網頁更新日期和時間 (若無,則會由系統自動帶入),如下
    updated: 2023-04-20 23:31:00

  3. If more than two tags (can have space in a tag):

    tags:
     - markdown
     - 技巧
     - dd ee gg
  4. Use cover image (file or web-image is ok)
    cover: https...\~.jpg or cover: assets/~.jpg

  5. Use categories to organize the related posts.

    categories:
     - [vtuber, hololive, aqua]
  6. Use mermaid: true to enable the flow chart. (P.S. see: 暫時解法)


# 常用 MD syntax

by shoka 作者:Ruri Shimotsuki

  1. 文字重點

    ++ 下劃線 ++
    ++ 波浪線 ++{.wavy}
    ++ 著重點 ++{.dot}
    ++ 紫色下劃線 ++{.primary}
    ++ 綠色波浪線 ++{.wavy .success}
    ++ 黃色著重點 ++{.dot .warning}
    ~~ 刪除線 ~~
    ~~ 紅色刪除線 ~~{.danger}
    == 熒光高亮 ==
    [赤橙黃綠青藍紫]{.rainbow}
    [紅色]{.red}
    [粉色]{.pink}
    [橙色]{.orange}
    [黃色]{.yellow}
    [綠色]{.green}
    [靛青]{.aqua}
    [藍色]{.blue}
    [紫色]{.purple}
    [灰色]{.grey}
    快捷鍵 [Ctrl]{.kbd} + [C]{.kbd .red}
    H~2~0
    29^th^
    

    下劃線
    波浪線
    著重點
    紫色下劃線
    綠色波浪線
    黃色著重點
    刪除線
    紅色刪除線
    熒光高亮
    赤橙黃綠青藍紫
    紅色
    粉色
    橙色
    黃色
    綠色
    靛青
    藍色
    紫色
    灰色
    快捷鍵 Ctrl + C
    H20
    29th

  2. Label 標籤

    [default]{.label}
    [primary]{.label .primary}
    [info]{.label .info}
    [:heavy_check_mark:success]{.label .success}
    [warning]{.label .warning}
    [:broken_heart:danger]{.label .danger}
    

    default
    primary
    info
    ✔️success
    warning
    💔danger

  3. Note 提醒

    :::default
    默認默認
    :::
    
    :::primary
    基本基本
    :::
    
    :::info
    提示提示
    :::
    
    :::success
    成功成功
    :::
    
    :::warning
    警告警告
    :::
    
    :::danger
    危險危險
    :::
    
    :::danger no-icon
    危險危險
    :::
    

    默認默認

    基本基本

    提示提示

    成功成功

    警告警告

    危險危險

    危險危險

  4. Tab

    ;;;id1 卡片 1
    這里是卡片 1 的內容
    ** 加粗 **
    [success]{.label .success}
    
    {% links %}
    	- site: 優萌初華
    	  owner: 霜月琉璃
    	  url: https://shoka.lostyu.me
    	  desc: 琉璃的醫學 & 編程筆記
    	  image: https://cdn.jsdelivr.net/gh/amehime/shoka@latest/images/avatar.jpg
    	  color: "#e9546b"
    	{% endlinks %}
    ;;;
    
    ;;;id1 卡片 2
    這里是卡片 2 的內容
    :::danger
    危險危險
    :::
    - 第一行
    - 第二行
    ;;;
    
    ;;;id2 ②號標簽卡片 1
    這里是卡片 1 的內容
    ;;;
    
    ;;;id2 ②號標簽卡片 2
    這里是卡片 2 的內容
    ;;;
    

    這里是卡片 1 的內容
    ** 加粗 **
    success

    這里是卡片 2 的內容

    危險危險

    • 第一行
    • 第二行

    這里是卡片 1 的內容

    這里是卡片 2 的內容

  5. Collapse 摺疊

    +++ 默認默認 這里是一段文字
    ++ 下劃線 ++
    +++
    
    
    +++primary 紫色
    :::info
    參考信息
    :::
    
    - 第一行
    - 第二行
    +++
    
    
    +++info  藍色
    ;;;id3 卡片 1
    這里是卡片 1 的內容
    ;;;
    
    ;;;id3 卡片 2
    這里是卡片 2 的內容
    ;;;
    +++
    
    +++success 綠色
    {% links %}
    	- site: 優萌初華
    	  url: https://shoka.lostyu.me
    	  color: "#e9546b"
    	{% endlinks %}
    +++
    
    +++warning 黃色
    !! 警告警告警告警告警告!!{.bulr}
    [label]{.label .success}
    +++
    
    +++danger 紅色
    [danger]{.label .danger}
    +++
    
    默認默認 這里是一段文字

    ++ 下劃線 ++

    紫色

    參考信息

    • 第一行
    • 第二行
    藍色

    這里是卡片 1 的內容

    這里是卡片 2 的內容

    綠色
    黃色

    !! 警告警告警告警告警告!!{.bulr}
    label

    紅色

    danger