sylhare / Type-on-Strap

🎨 Simplistic, responsive jekyll based open source theme
https://sylhare.github.io/Type-on-Strap/
MIT License
813 stars 901 forks source link

Multi-line header with HTML tags breaks `twitter:description` `meta` tag #398

Closed nickchen120235 closed 1 year ago

nickchen120235 commented 1 year ago

Describe the bug If header_text is set to multi-line content with HTML tags, the content of twitter:description meta tag will overflow to body.

To Reproduce Steps to reproduce the behavior:

  1. Set header_text in _config.yml to
    header_text: >
    This is the first line
    <div style="color: white">This is the second line</div>
  2. Start the jekyll server
  3. Observe the overflow

Expected behavior Overflow should not happen

Screenshots image

image

sylhare commented 1 year ago

Nice thanks, let me check the linked PR ;)