-
Notifications
You must be signed in to change notification settings - Fork 484
-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting thumbnail_image_position to 'bottom' makes a smaller empty line #652
Comments
👋 @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 |
@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. |
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
:The text was updated successfully, but these errors were encountered: