共有 17 篇文章
📅 最近更新
2022-07-29
- 2024-09-18
编写 将heimu.css文件放在themes/archie/assets/css/文件夹中 /* heimu.css */ .heimu, .heimu a, a .heimu, .heimu a.new { background-color: #252525; color: #252525; text-shadow: none; } .heimu:hover, .heimu:active, .heimu:hover .heimu, .heimu:active .heimu { color: white !important; } .heimu:hover a, a:hover .heimu, .heimu:active a,
2022-07-17
- 2024-09-18
GitHub https://github.com/gohugoio/hugo.git Build 使用官方编译版本 使用源码编译 http://pi.akvicor.com:7021/?p=199 wget http://pi.akvicor.com:7021/file?f=1233 -O hugo_build.tgz tar -zxvf hugo_build.tgz cd hugo ./build.sh Install mv gopath/bin/hugo /usr/bin/hugo hugo version Usage # 版本和环境详细信息 hugo env # 创建新站点 hugo new site siteName # 创建文章 hugo new index.md # 编译生成静态文件并输出到pu
2022-07-14
- 2024-09-18
为hugo添加搜索功能,在content下创建search.html页面,添加以下内容 +++ title = "Search" description = "Akvico's Blog" date = "2022-07-14" author = "Akvicor" +++ <style> /* 手机适配 */ @media screen and (max-width: 500px) { .search{ padding-right: 25px; } .search input{ width: 100%; }
2022-07-14
- 2024-09-18
编写 编写abbr.html放在layouts/shortcodes/文件夹中 <!– layouts/shortcodes/abbr.html –> <abbr title="{{ .Get "title" }}">{{ .Get "text" }}</abbr> 使用 {{< abbr title="Ocean University of China" text="OUC" >}} OUC
2021-07-14
- 2024-09-18
如果要启用Mathjax和KaTeX 在header模板中添加以下内容 <!– Mathjax support –> {{ with .Site.Params.mathjax }} <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script> <!– inline Mathjax –> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { inlineMath: [['$math_inline$','$math_inline$'], ['\(','\)']], displayMath: [['$math_noinline$','$math_noinline$'], ['[',']']], processEscapes: true, processEnvironments: true, skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'], TeX: { equationNumbers: { autoNumber: "AMS" }, extensions: ["AMSmath.js",