-
Is there a simple way to make the In other words, I want posts to be wide by default so they fill the right side, unless I have specifically added a Table of Contents, in which case I want that to still appear on the right side. Unless I'm mistaken, this is not easily achievable since you can't turn off a class in front matter? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This is what Jekyll’s front matter defaults are for. Set the default to https://jekyllrb.com/docs/configuration/front-matter-defaults/ |
Beta Was this translation helpful? Give feedback.
-
Might be easier to implement if you override the layout file to add the class automatically when |
Beta Was this translation helpful? Give feedback.
-
@mmistakes Thanks, I knew about the front matter defaults but wasn't aware I could do @iBug That sounds like a very good solution, thank you! Edit: Or well, doesn't seem that easy since the class should be added to |
Beta Was this translation helpful? Give feedback.
-
@iBug Thanks for getting me on the right track. There's probably a much better and shorter way to do it than this, but I'm not too familiar with Liquid. It works, though!
|
Beta Was this translation helpful? Give feedback.
@iBug Thanks for getting me on the right track. There's probably a much better and shorter way to do it than this, but I'm not too familiar with Liquid. It works, though!
_layouts/default.html