如何使用Hugo托管网站修改页面宽度?

问题描述

我正在尝试使用github页面和Hugo创建一个网站,这是我第一次与这些网站进行互动,因此请原谅我缺乏知识。我一直在尝试通过更改hyde-hyde theme的参数来调整本地网站上博客文章的宽度,但我一生都无法正常工作。我目前正在使用以下命令通过Powershell托管网站的本地版本:

./hugo server

我已经在线尝试过各种解决方案,例如this (well I really don't know to apply this solution)this one,但似乎都没有用。

关于视觉,这就是我所拥有的: screenshot my website with limited blog post size

,我正在努力实现这一目标: screenshot of example website with increased post size

任何帮助将不胜感激!

解决方法

检查是否有类似的问题(htr3n/hyde-hyde issue 60)对您有用:

我已经通过编辑“ themes/hyde-hyde/assets/scss/hyde-hyde/_variables.scss”解决了这个问题

$content-max-width: 70rem;