Debian SourceDebian 从 Stable 源换到 Testing vim /etc/apt/sources.list 查找替换 bullseye 和 stable,改成 testing。 运行: 1 2 apt update apt install hugo #你想要升级的包 2023年1月10日 1 分钟
Robots Txt禁止搜索引擎抓取特定目录 1 2 3 4 User-agent: * Disallow: /zh-cn/ Disallow: /en-us/ Disallow: /ja/ 禁止爬取 1 2 user-Agent:* Disallow: / 白名单 + 特定爬虫 1 2 3 4 5 6 User-agent: Baiduspider Allow: /article Allow: /oshtml Allow: /wenzhang Disallow: /product/ Disallow: / <!--除上面允 2023年1月10日 1 分钟
Content Dir改 Hugo Theme 下的文章存放路径 config.yaml 下有: 1 2 3 4 languages: zh-cn: contentDir: content languageName: 中文 把 contentDir 改成你想要的路径即可。 2023年1月10日 1 分钟
Hugo Hexo我在 Hugo 里装了一个 Hexo 说起来,我用的这个主题,竟然用了 node.js,所以生成速度跟 Hexo 差不多了,感觉就是给 Hexo 套了个 Hugo。 2023年1月10日 1 分钟
CodeCode 1 print("rnm world") var q=q Math $$f(x)=f\left(x_0\right)+f^{\prime}\left(x_0\right)\left(x-x_0\right)+o\left(x-x_0\right)$$ $$f(x)=\frac{f\left(x_{0}\right)}{0 !}+\frac{f^{\prime}\left(x_{0}\right)}{1 !}\left(x-x_{0}\right)+\frac{f^{\prime \prime}\left(x_{0}\right)}{2 !}\left(x-x_{0}\right)^{2}+\ldots+\frac{f^{(n)}\left(x_{0}\right)}{n !}\left(x-x_{0}\right)^{n}+R_{n}(x)$$ 这是一个 $f(x)=\frac{f\left(x_{0}\right)}{0 !}+\frac{f^{\prime}\left(x_{0}\right)}{1 !}\left(x-x_{0}\right)+\frac{f^{\prime \prime}\left(x_{0}\right)}{2 !}\left(x-x_{0}\right)^{2}+\ldots+\frac{f^{(n)}\left(x_{0}\right)}{n !}\left(x-x_{0}\right)^{n}+R_{n}(x)$ 行内数学公式。 2023年1月10日 1 分钟