Skip to content
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

Posts Displaying Full Content Instead of Previews on blog layout Page #348

Open
tshenjoy opened this issue Aug 19, 2024 · 2 comments
Open

Comments

@tshenjoy
Copy link

webpage link is here: https://tshenjoy.github.io
the repo link: https://github.com/tshenjoy/tshenjoy.github.io/tree/cloud_version
the published page is built with the /doc/ folder under the cloud_version branch.
problem: On the main or "Photo Log" page, which are set to display posts in a preview layout, some posts are showing their full content instead of just a preview of the beginning of the post. How to fix this?
Thanks in advance!

@LazyRen
Copy link

LazyRen commented Aug 20, 2024

Have you tried adding

<!--more-->

to the post?

e.g.) On https://lazyren.github.io/ Enable Mermaid for Markdown Code Blocks post is showing up to 'Luckily, it isn't that hard to do so with HydeJack theme.' as <!--more--> tag is located right after that.1

Footnotes

  1. https://raw.githubusercontent.com/LazyRen/LazyRen.github.io/master/_posts/devlog/blog/2024-04-12-enable-mermaid-on-codeblock.md

@tshenjoy
Copy link
Author

tshenjoy commented Sep 1, 2024

Have you tried adding

<!--more-->

to the post?

e.g.) On https://lazyren.github.io/ Enable Mermaid for Markdown Code Blocks post is showing up to 'Luckily, it isn't that hard to do so with HydeJack theme.' as <!--more--> tag is located right after that.1

Footnotes

  1. https://raw.githubusercontent.com/LazyRen/LazyRen.github.io/master/_posts/devlog/blog/2024-04-12-enable-mermaid-on-codeblock.md

Thanks for your reply. I tried to add the line you mentioned in the post and it is still not working. It is strange because some other posts under the same category "Photo logs" did not have this display issue (such as June photo log and the singapore one). and i checked their code to make sure the header of the md file is the same sturcture. So i am still pretty much in confusion.
Some possible spots that could went wrong though: I want the sub-site from each link at the side bar to have a layout of "blog" (rather than 'list'), so i changed the plugin "pagination" to "pagination-v2". I dont know if would make a difference, or perhaps i just got it wrong. I notice that our file structure is different too. To implement the aforementioned "blog" layout at other pages besides home page, i added a html file under the sub-derectory and achieved exactly what i wanted, except the problem im encountering now :-(
PS : i recently noticed that the cloud service that i put the photograph on starts to charge me for reasons i havent quite figured out yet, so i unpublished the site for now, but the source code should still be visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants