腾讯云配置
- 选用轻量应用服务器,Docker基础镜像,Ubuntu20.04-Docker20
- 选用SSH远程登录,按照步骤重置密码,启用SSH功能
- 使用VSCODE的Remote-SSH,方便后续操作
选择Connect To Host
选择SSH配置文件
设置Host为云服务器的公网IP,HostName任意,User为你的linux用户
登入后终端显示为<User>@VM-4-16-ubuntu:/#
,配置完成
HUGO配置
- 根据klakegg/hugo步骤配置HUGO in DOCKER,官方教程
|
|
VSCODE配置端口映射 之后可通过//localhost:1313/直接访问
常见问题:
|
|
部分主题带有404网站的资源,根据提示删除"/src/content/post/rich-content/index.en.md:1:1"
中的404内容即可
THEME配置
- 选用主题为hugo-theme-stack,不同主题调整的方法不同
调整默认语言
在config.yaml
中根据注释调整语言
|
|
并把content
文件夹中
|
|
重启hugo server
即可生效
调整页面布局(根据个人需要)
|
|
|
|
|
|
|
|