src-d / blog

source{d} blog
https://blog.sourced.tech/
GNU General Public License v3.0
27 stars 41 forks source link

Make {{% code %}} work inside of {{% scroll %}} #201

Closed campoy closed 6 years ago

campoy commented 6 years ago

Requested by @vmarkovtsev on https://github.com/src-d/blog/pull/195#issuecomment-380696986

campoy commented 6 years ago

The combination of {{ scroll-panel }} and {{% code %}} is very complicated, since we want to scroll the code, but leave the download link outside of it.

Instead I added a height parameter to the code shortcode.