You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I have been working on a website using the Minimal Mistakes theme which will house my portfolio and my blog. Whilst I was building the portfolio side of the site I found that I preferred the way the pages looked if didn't use an author profile and if I removed the spacing which was reserved for the sidebar.
I achieved this by modifying the .scss files and commenting out any breakpoints which mention $right_sidebar_width (These are in the files _archive.scss, _navigation.scss, and _page.scss)
The issue I am now having is that I wanted to reintroduce the sidebar and spacing within the blog section of my website.
Is there a way to add a frontmatter variable which will allow me to choose whether these breakpoints are added or not? Or a way to create two copies of the .scss files in question (one with these breakpoints, one without) and set my 'pages' to use the files without breakpoints, and my 'posts' to use the files with breakpoints? Or an even better way which I cant even think up?
I'm very new to all of this, so please treat me like I know nothing :) Any help would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Happy weekend all!
Recently I have been working on a website using the Minimal Mistakes theme which will house my portfolio and my blog. Whilst I was building the portfolio side of the site I found that I preferred the way the pages looked if didn't use an author profile and if I removed the spacing which was reserved for the sidebar.
I achieved this by modifying the .scss files and commenting out any breakpoints which mention
$right_sidebar_width
(These are in the files_archive.scss
,_navigation.scss
, and_page.scss
)This works, as you can see by looking at my site (https://kieranreck.github.io).
The issue I am now having is that I wanted to reintroduce the sidebar and spacing within the blog section of my website.
Is there a way to add a frontmatter variable which will allow me to choose whether these breakpoints are added or not? Or a way to create two copies of the .scss files in question (one with these breakpoints, one without) and set my 'pages' to use the files without breakpoints, and my 'posts' to use the files with breakpoints? Or an even better way which I cant even think up?
I'm very new to all of this, so please treat me like I know nothing :) Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions