Closed jbshirk closed 6 years ago
If you open up /_includes/page__hero.html there's this line:
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
What's going on is page.excerpt
is inserted inside of a paragraph tag and Kramdown is interpreting the line breaks as new paragraphs... which are then removed with the two filters.
So what you can do is change that wrapping <p class="page__lead">...</p>
to maybe <div class="page__lead">...</div>
and take out the | remove: "<p>" | remove: "</p>"
filters.
A simpler way would be to do what I did with the doc site's splash page and use <br>
s to force breaks.
excerpt: |
We do **complete property services**
<br>
from design to installation and maintenance
<br>
including beautiful landscapes and water features
Super! Thank you very much!
Note for posterity:
I took the second option to avoid munging the functionality of other splash pages. I found that I had to also take away the plus after the pipe. This works exactly as desired:
excerpt : |
We provide **complete** property services <br />
including beautiful landscapes and water features <br />
<ul class="page__lead"> <li>Design</li><li>Installation</li><li>Maintenance</li></ul>
Yeah I noticed your +
, I took it out in my code above. excerpt: >
also seems to work instead of the pipe.
Description
my landing page is thus:
and I see that the layout is defined thus:
Environment
theme version: 4.11.2 Jekyll version: 3.8.3 public git repository:
hosting with GitHub Pages: no Operating system you tested with: OSX 10.12.6
Expected behavior
The intention is for the \n\n to be interpreted as markdown line breaks. I've tried removing | strip_html - to no effect. I think I must be misusing this.
Steps to reproduce the behavior
Then provide a complete log by running
bundle exec jekyll build --trace --verbose
Screenshots can also be included if they help illustrate a behavior.