Replies: 2 comments
-
Hey @thedch! I think what you'll want is to add an additional stylesheet just to your home page. So let's say your format:
html:
theme: [flatly, "style/style.scss"] On your homepage (eg. format:
html:
theme: [flatly, "style/style.scss", "style/my-homepage-specific-stuff.scss"] That extra file, How does that work for you? |
Beta Was this translation helpful? Give feedback.
-
In case this helps anyone else. The solution above worked for me. I wanted to do the same thing and I was using the following in
and this worked when rendering the page locally but, for some reason, when publishing using github-pages the background on index.html was overridden by the theme. I couldn't figure out why. Switching to a bespoke .css file for this page solved my issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello, I have an
index.qmd
file that specifies a listing of my blog posts. I would like to style this page differently than the actual blog post pages, for example in background color.However, searching through the HTML styling documentation, I do not see any differentiating variables, and when inspecting the webpage, the CSS classnames seem to be the same as well.
For example:
This CSS changes both the background of the index page and the post pages. Let me know if I am missing anything, I am experimenting with both
styles.css
andcustom.scss
. For example$navbar-bg
is available, but there is notindex-bg
orpost-bg
etc.Beta Was this translation helpful? Give feedback.
All reactions