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

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

Open
jackyliu16 opened this issue Apr 21, 2023 · 4 comments
Open

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

jackyliu16 opened this issue Apr 21, 2023 · 4 comments

Comments

@jackyliu16
Copy link

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
Copy link
Owner

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
Copy link
Author

jackyliu16 commented Apr 24, 2023

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
Copy link
Contributor

AntoniosBarotsis commented Aug 22, 2023

Hey @jackyliu16!

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

@pawroman
Copy link
Owner

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

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

3 participants