AriesMe
  • Posts
  • 2021
    • Nginx反代cdnjs和fonts
  • 2020
    • Guacamole安装部署
  • 2019
    • Nginx配置多域名SSL证书
    • Hugo添加文章目录toc
    • Hugo动态加载prism.js
    • 手动生成SSL通配符证书
    • Elementary安装中文输入法
    • Hugo添加归档页面
    • Hugo添加Google收录
    • Hugo添加Google Custom Search站内搜索
    • Hugo添加返回顶部按钮
    • Hugo添加Google Analytics
    • Hugo添加Prism代码高亮
    • AutoIt的窗口自动化测试
    • WordPress添加Prism代码高亮
    • Nginx强制http跳转https
  • 2018
    • WordPress关闭自动更新和版本控制
    • Nginx配置WebSocket跳转
Hugo添加文章目录toc

这几天在原来hugo主题minimal的基础上尝试加了两个功能, 一个是站内搜索, 一个是文章目录(Table of Contents). 不过都是跟着其他主题修改过来的. 这次先写下文章目录toc的移植修改过程.

October 30, 2019 Read
Hugo动态加载prism.js

以前文章记录过怎样在Hugo中添加prism代码高亮的方法. 但是每次添加新的语言或者想换个主题就得重新去官网下载新的js和css文件, 比较繁琐. 所以今天介绍下利用cdnjs来通过变量动态加载所需语言和主题的方法.

October 20, 2019 Read
Hugo添加Google收录

把自己的Hugo Blog添加到Google收录中, 让其他人能通过Google搜索到你的Blog文章.

March 7, 2019 Read
Hugo添加Google Custom Search站内搜索

Hugo没有自带站内搜索, 可以使用Google Custom Search Engine来代替.

March 2, 2019 Read
Hugo添加返回顶部按钮

返回顶部按钮虽然看上去小巧,但确实是个很方便的功能. 读者阅读完一些较长文章后能快速返回页面顶部点选其他文章.

March 1, 2019 Read
Hugo添加Google Analytics

Hugo Blog添加Google Analytics

February 24, 2019 Read
Hugo添加Prism代码高亮

Hugo自带的Chroma代码高亮不是很方便, 还是请出Prism.

February 22, 2019 Read
Hugo添加归档页面

Hugo默认并没有归档页面, 但可以单独添加一个归档页面.

February 19, 2019 Read
Navigation
  • Projects
  • Recent Posts
Contact Me
  • Email: hi@ariesme.com

Stay up to date with email notification

We'll never share your email with anyone else.

Toha
© 2020 Copyright.
Powered by Hugo Hugo Logo