pawroman / zola-theme-terminimal

A simple, minimal retro theme for Zola
https://pawroman.github.io/zola-theme-terminimal/
Other
371 stars 85 forks source link

Is it Possibly to add an abstract display in blog #33

Closed jackyliu16 closed 1 month ago

jackyliu16 commented 1 year ago

Now the default operation seems is to display the whole information of the blog in the blog page, It is not convenient for others to see your other article information through this blog pager. the best ways that i though is the title of the page and the abstract

Is it possibly to display some kinds of abstract in it ? Like this one https://pawroman.github.io/zola-theme-terminimal/page/3/

pawroman commented 1 year ago

I think you might mean something like "summary"?

https://www.getzola.org/documentation/content/page/#summary

You can ask Zola to create a summary if, for example, you only want to show the first paragraph of the page content in a list.

To do so, add <!-- more --> in your content at the point where you want the summary to end. The content up to that point will be available separately in the template via page.summary.

The theme should support this, although there might be some caveats. For one, Zola treats the "summary" as an integral part of the post content.

So... I don't really know what you mean by abstract. I guess if you weren't happy with the "summary approach" and wanted to show different stuff on the post list, and different in the post, the theme would have to be changed. For instance, there might be a config option to show a description metadata piece of the post instead of a summary.

I would definitely welcome such contribution.

jackyliu16 commented 1 year ago

That's exactly what I wanted to say About a contribution, maybe later (at less the middle of may, I have a deadline that time).

AntoniosBarotsis commented 1 year ago

Hey @jackyliu16!

Not entirely sure what you mean by abstract but maybe this would work for you?

pawroman commented 9 months ago

Please check out the latest version (after #53 has been merged)

pawroman commented 1 month ago

Hey @jackyliu16 is this still relevant?

jackyliu16 commented 1 month ago

Sorry it took a long time to respond, given that this issue has been open for a long time. I'm going to close the question and check the relevant content to see how to deal with it.