分类 博客 中的文章

hugo博客建立归档页面

在 Hugo 中默认只生成 tags 和 categories 两个页面,没有 archives (归档)页面,所以我们需要自己实现 1 新建归档单页面模板 首先,在 themes/主题/layouts 目录创建一个目录 archives 然后在里面新建一个文件 single.html。 2 替换归档页面模板代码 注意我们接下来要覆盖 themes/主题/layouts/_d……

阅读全文

Hugo插入图片

在写博客时,常常需要在文章中插入图片,Hugo有多种图片插入方式,可以将图片存在本地引用、将图片放在CDN引用或建立图床。 1 本地引用 1.1 绝对路径 当图片使用较少时,可以将图片存在 static/images/具体文章 目录下的,在部署当github page上面时,会将图片推到github……

阅读全文

Markdown文件基本语法

因为目前准备写博客,所以不可避免就要使用markdown语言写文章,所以这篇文章将对Markdown的基本语法进行介绍,方便以后查阅。

……

阅读全文

我的第一次Hugo博客搭建过程(超级详细)

最近希望搭建一个自己的技术博客,用来记录在学的一些知识和技术,在比较了一下几个目前较为流行的静态博客Jekyll、Hexo、Hugo之后,还是决定采用Hugo。 Hugo是基于Go语言的一款静态博客,编译之后只有一个二进制文件,相比于Hexo基于nodejs、jekyll基于rub……

阅读全文

Formulas with MathJax

Mathematical equations in form of LaTeX or MathML code can be rendered with the support of MathJax. MathML works out of the box. If you’re using LaTeX you need to wrap your equation with $$ as shown in the following example:

……

阅读全文

Markdown Cheat Sheet

This note demonstrates some of what Markdown is capable of doing.

Note: Feel free to play with this page. Unlike regular notes, this doesn’t automatically save itself.

……

阅读全文