mnjm / kayal

Minimal and lightweight Hugo theme with markdown-ish aesthetics
https://mnjm.github.io/kayal/
MIT License
16 stars 3 forks source link

summary is not shown after update #32

Open KTS-o7 opened 1 month ago

KTS-o7 commented 1 month ago

Describe the bug Summary is not being generated inside cards

Expected behavior A small summary must be shown inside each card when summaryLength is set to 0 in hugo.toml in config/_default/ but none are being generated. Image attached for expected behaviour image

Screenshots Shown behavior image

Desktop (please complete the following information):

mnjm commented 1 month ago

Will take a look at it soon

KTS-o7 commented 1 month ago

Any way I can help out ?

mnjm commented 1 month ago

Couldn't reproduce it. Can you point me to ur repo if its public?

Demo site (with summary removed from front matter) https://e847f7b1.kayal.pages.dev/ (source)

mnjm commented 1 month ago

There's one bug error though. Sometimes the summeryLength isn't calculated properly which is handled by hugo. You can manually mark it with <!--more--> https://gohugo.io/content-management/summaries/#manual-summary

KTS-o7 commented 1 month ago

This is my config files Link to files

mnjm commented 1 month ago

Repo's private

KTS-o7 commented 1 month ago

My bad will make it open just a min Edit - Please check now i have made it public

mnjm commented 1 month ago

summaryLength isn't working the way I thought it did. Will look in to it soon. Thanks for reporting.

For now, you can use this workaround.

...
toc = false
math = true
+++

This is the first paragraph.
This is the second paragraph.

<!--more-->

# Problem Statement
...
KTS-o7 commented 1 month ago

Will do it and check out. Thanks for quick help. Ik my way around development. Please let me know if I can help out in any way