hello hugo

这是第一次使用hugo, 感觉不错, 希望以后能在后台领域写出更多的文章

目的

写博客的目的是为了自身的技术沉淀以及技术的分享,和大家一起成长

结构

  • gitlab 主仓库, 负责整个hugo工程,内含几个submodule
  • content 子模块, 负责管理所有md的文章
  • public 子模块, hugo的发布目录,也是github的静态页面的仓库
  • themes/even 子模块, hugo的主题目录, 目前引用了even主题

部署

预览

1
hugo server --theme=even --buildDrafts

生成

1
hugo --theme=even --baseUrl="https://springfieldking.github.io/" --buildDrafts

发布

  • 先提交子模块 先将子模块content和public分别提交

  • 主仓库 合适的时候提交一下

测试特性

测试even集成流程图

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e

测试even集成时序图

1
2
3
4
5
Title: Here is a title
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow

测试mermaid流程图

sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you? loop Healthcheck John->John: Fight against hypochondria end Note right of John: Rational thoughts
prevail... John-->Alice: Great! John->Bob: How about you? Bob-->John: Jolly good!

测试嵌入youtube视频

测试嵌入B站视频