tlienart / FranklinTemplates.jl

Simple website templates for Franklin.jl
https://tlienart.github.io/FranklinTemplates.jl/
MIT License
76 stars 24 forks source link

just-the-docs template, bug with long titles #148

Closed parfenyev closed 2 years ago

parfenyev commented 2 years ago

Hello everyone!

I have found that very long titles do not wrap to a new line if they exceed the width of the page (please, see screenshort). How can this be fixed? Some other templates don't have this problem.

Thank you in advance!

screenshort

tlienart commented 2 years ago

in _layout/style.html, add

<style>
  .franklin-content h1 a.header-anchor {
    word-wrap: break-word;
    white-space: normal;
  }
</style>
Screenshot 2022-04-21 at 08 55 11