V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yuhangch
2.53D

两个 hugo 更方便新建 md 的配置项

  •  
  •   yuhangch · Dec 24, 2020 · 1741 views
    This topic created in 1954 days ago, the information mentioned may be changed or developed.

    新建博文,之前是

    hugo new post/content-title.md
    

    之后再用 typora 打开文件编辑,手动加上 tags 和 categories 的标签,过程有点繁琐,今天看了文档发现能方便点

    首先,new 命令,支持指定编辑器

    hugo new --editor typora posts/content-title.md
    

    自动添加 tags 和 categories 的标签,可以通过修改博客根目录中的 default.md 实现

    archetypes/default.md
    

    可能是我 2g 网了,希望能帮到还不知道的朋友👬

    1 replies    2020-12-24 20:14:46 +08:00
    3573535
        1
    3573535  
       Dec 24, 2020 via iPhone
    确实 2g,我一般,ctrl+c +v
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   811 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    ♥ Do have faith in what you're doing.