Adjusting width of posts #46
-
Hi, what's the correct way to adjust the width of texts in posts with this theme? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @chrisxfire. Welcome to Hugo blog awesome discussions. SolutionYou have to change the value of ReasoningThe whole blog post is wrapped in a hugo-blog-awesome/assets/sass/_base.scss Lines 232 to 234 in 04afe81 As seen above, the value of hugo-blog-awesome/assets/sass/main.scss Lines 53 to 57 in 04afe81 Ultimately, you should change the value of these two variables in order to change the width of text for individual posts. ConclusionLet me know if this solution worked for you. In case it did, you can mark this as the answer. Otherwise, feel free to post your observations here. Don't forget to star the repo, if you liked this theme. |
Beta Was this translation helpful? Give feedback.
-
Changing |
Beta Was this translation helpful? Give feedback.
Hi @chrisxfire.
Welcome to Hugo blog awesome discussions.
Solution
You have to change the value of
$narrow-size
and$spacing-full
variables, which are defined inassets/sass/main.scss
file.Reasoning
The whole blog post is wrapped in a
<div>
withwrapper
class. In order to change the width of text for individual posts,max-width
property of this div should be changed.hugo-blog-awesome/assets/sass/_base.scss
Lines 232 to 234 in 04afe81
As seen above, the value of
max-width
property is decided by the two variables$narrow-size
…