hydecorp / hydejack

A boutique Jekyll theme for hackers, nerds, and academics
https://hydejack.com
Other
1.41k stars 799 forks source link

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

Open tshenjoy opened 2 months ago

tshenjoy commented 2 months ago

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 thecloud_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 commented 2 months ago

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

tshenjoy commented 2 months ago

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.