Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

笔记 | Qiming's Blog #8

Open
xqm32 opened this issue Jan 9, 2022 · 0 comments
Open

笔记 | Qiming's Blog #8

xqm32 opened this issue Jan 9, 2022 · 0 comments

Comments

@xqm32
Copy link
Owner

xqm32 commented Jan 9, 2022

https://xqm32.github.io/notes/

此处存放着笔者想要留存,但内容较少,不适合新建一篇博客的内容。
配置 npm 镜像设置 腾讯解君愁。
Hugo 中嵌入 HTML 的方法 于 config.yml 中加入以下配置:
markup: goldmark: renderer: unsafe: true 参考 Hugo 文档 Goldmark 一栏。
unsafe
By default, Goldmark does not render raw HTMLs and potentially dangerous links. If you have lots of inline HTML and/or JavaScript, you may need to turn this on.
Hugo PaperMod 主题安装、更新方法 参考其教程即可 Hugo PaperMod。
WSL WSL 2 配置代理 若使用 bash,则在 .bashrc 中添加:
export windowsHostIP=cat /etc/resolv.conf|grep nameserver|awk '{print $2}' proxy() { export ALL_PROXY="http://$windowsHostIP:端口" export all_proxy="http://$windowsHostIP:端口" export http_proxy="http://$windowsHostIP:10809" export https_proxy="http://$windowsHostIP:10809" } unproxy() { unset ALL_PROXY unset all_prox unset http_proxy unset https_proxyy } 虽然看起来没有必要,但是只有设置了 http_proxy 和 https_proxy 才能对 wget 生效,笔者感觉十分奇怪。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant