CocoaPods / blog.cocoapods.org

The blog for CocoaPods
https://blog.cocoapods.org/
34 stars 38 forks source link

[Post] Add missing excerpt seperator to 0.37 release post #88

Closed mrackwitz closed 9 years ago

mrackwitz commented 9 years ago

The code block which is shown otherwhise on the homepage is causing layout issues on larger viewports.

This is likely caused by the code block, which is part of the preview, as there was no excerpt separator (<!-- more -->) at all. This affects only viewports over 990px width.

screen shot 2015-05-03 at 11 00 04

This could be fixed with:

.post {
  clear: both;
}

But as this is a style class defined in bootstrap which is not affected by our own style definitions, I guess either our element hierarchy is wrong / not supported or it's a bug there.

orta commented 9 years ago

Yeah, the fix is good.

I never really figured we'd use code blocks on the index page, which I think is a reasonable constraint. We could look into making the code block post-processor ignore indexes. It will set up a different div hierarchy than is expected in the index.