5

让文章更生动

 3 years ago
source link: https://blog.mute-g.com/post/hugo/how-to-include-image.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

纯文字虽然够“纯粹”,但是总不如图像来得直观,所以还是打算研究一下如何给文章配图。

关于图床的选择,打算直接扔在博客站点内,不打算使用其他图床。一来博客配图应该没那么多,二来直接放一起,比较省事儿……

由于 hugo 会自动将 static 文件夹下的内容自动发布到 public 下,那么只需要在 static 下面建立一个 images 文件夹,作为文章图片的根目录。

考虑到将来图片肯定会越来越多,所以图片应该以某种目录结构组织起来,同时也不想有太多目录存在。暂时打算按照“年”、“月”来建立子目录。

在文章中显示图片

按照 Markdown 的语法即可:

![图片](/images/2021/05/how-to-include-image.png)

图片


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK