Closed chrisjwelly closed 4 years ago
👋 @chrisjwelly , thanks for the detailed report. I'm checking this out right now.
I found why and implemented a fix. I will release a new version including this fix real soon :)
@LouisBarranqueiro Awesome! Thanks.
If you don't mind me asking, how did last-of-type
fix the issue?
@chrisjwelly sure 🙂 this CSS rule will remove the bottom margin of the last paragraph in the excerpt instead of (previously) removing the bottom margin of all paragraphs in the excerpt. last-of-type
is a CSS selector to select the last element of type p
in the excerpt (div
).
@chrisjwelly sure 🙂 this CSS rule will remove the bottom margin of the last paragraph in the excerpt instead of (previously) removing the bottom margin of all paragraphs in the excerpt.
last-of-type
is a CSS selector to select the last element of typep
in the excerpt (div
).
I see, thank you very much!
Description
The default configuration for
thumbnail_image_position
isright
. I changed this tobottom
in order remove the seemingly empty space on the right side. I have written several paragraph of my posts, and I separate my paragraphs with an empty line. When I am still using the defaultthumbnail_image_position
toright
, the empty lines are shown clearly, but upon changing tobottom
, the empty lines looks like it is missing, presumably because the size is much smaller.I notice that this only applies to my post which has a
<!--more-->
to create a post excerpt. By looking at the CSS using web developer tools, this seems to apply only to content of posts with thepostShorten-except
applied to it. I tried (temporarily) changing it topostShorten-content
using the web developer tools, and it seems to look much better.Expected behavior
When setting
thumbnail_image_position
to 'bottom', post excerpts should have a clearly visible empty lines.Current Behaviour:
Expectation (notice how the empty lines are much more visible):
Steps to reproduce the bug
themes/tranquilpeak/_config.yml
and changethumbnail_image_position
tobottom
.hexo new post test-post-excerpt
<!--more-->
to turn it into a post excerpthexo server
to view the outcome<!--more-->
to turn this into a normal post without an excerpt to compareExample text:
Environment
_config.yml
_config.yml
Additional information
I investigated the CSS of both
postShorten-excerpt
as well aspostShorten-content
, but I see almost no difference except formargin-top
. Even when I made them consistent, it didn't fix the issue.postShorten-excerpt
:postShorten-content
: