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

plugins/feeds: mention summary plugin, render summaries correctly #51

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

Bastian-Krause
Copy link
Member

Unrendered summaries contain directives such as:

{{ link('content/blog-post.html', 'foo') }}

These do not belong in the final HTML output. A function for summary rendering can be provided by a custom summary plugin. Use that if available and make rendered URLs absolute afterwards.

While at it, mention that summary functionality is only provided by a plugin. The summary plugin used by Pengutronix is publicly available in the flamingo-ptx-blog-engine repository [1]. It is not part of flamingo itself because it contains theme references (ptx-image, ptx-sidebar, ps-gallery).

[1] https://github.com/pengutronix/flamingo-ptx-blog-engine/blob/master/flamingo_ptx_blog_engine/summary.py

By default, the content does not contain a summary. A custom plugin can
add that functionality, though.

The summary plugin used by Pengutronix is publicly available in
flamingo-ptx-blog-engine [1]. It is not part of flamingo itself because
it contains theme specifics (ptx-image, ptx-sidebar, ps-gallery).

Mention that in the feeds plugin.

[1] https://github.com/pengutronix/flamingo-ptx-blog-engine

Signed-off-by: Bastian Krause <[email protected]>
Unrendered summaries contain directives such as:

  {{ link('content/blog-post.html', 'foo') }}

These do not belong in the final HTML output. A function for summary
rendering can be provided by a custom summary plugin.
Use that if available and make rendered URLs absolute afterwards.

See [1] for an example summary plugin. But note that it contains
theme-related information.

[1] https://github.com/pengutronix/flamingo-ptx-blog-engine/blob/master/flamingo_ptx_blog_engine/summary.py

Signed-off-by: Bastian Krause <[email protected]>
@SmithChart SmithChart merged commit d51d5f2 into pengutronix:master Aug 19, 2024
7 checks passed
@Bastian-Krause Bastian-Krause deleted the bst/feed-summary branch August 19, 2024 20:48
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

Successfully merging this pull request may close these issues.

2 participants