Inf1mum opened a new pull request, #222: URL: https://github.com/apache/datafusion-site/pull/222
First step of #77 (not using "Fixes" on purpose: #77 was split into two separate PRs, and the follow-up — adding more tags to existing posts — is deliberately left out of this one). ## What is wrong today Every one of the 84 blog posts carries a `categories:` frontmatter value (`[release]`, `[performance, subprojects]`, ...), but the Pelican templates never display it: - Article pages render only `Posted on: <date> by <author>` — no category anywhere, even for the posts called out in [#77](https://github.com/apache/datafusion-site/issues/77) as already having categories in their frontmatter. - The blog index has a `<ul class="stats">` footer per card that loops over `article.tags` — but no post sets `tags:`, so all 84 lists render empty. ## What this PR does - Adds a small `category_list` Jinja filter in `pelicanconf.py` (next to the existing `strip_style` filter) that turns the raw metadata string, e.g. `[ release ]`, into a clean list of names. - Article pages: the byline becomes `Posted on: <date> by <author> in <category>` (comma-separated when a post has two categories). - Blog index cards: category names render as plain-text items in the existing `stats` list, before the (currently empty) `article.tags` loop, which is kept for the follow-up step. ## What this PR deliberately does NOT do - Add `tags:` or otherwise change frontmatter of existing posts — that is the agreed second PR of #77. - Enable tag/category archive pages — they are disabled in `pelicanconf.py` because the feature is unsupported in the ASF Pelican setup (see the comment there), so labels are rendered as plain text, not links. - Introduce a sidebar or theme change — still open for discussion in #77. ## Verification Built with the repo's own Docker image (`pelicanasf content -o blog`), before and after: - Before: article page for a post with `categories: [release]` shows no category; all 84 index-card `stats` lists are empty. - After: single-category (`release`), multi-category (`performance, subprojects`) and whitespace-variant (`[ release ]`) posts all render cleanly, e.g. `Posted on: Fri 28 October 2022 by pmc in release`; the index shows 86 category entries across the 84 cards; `about` and other non-article pages are unchanged. Signed-off-by: Vadim Lazuk <[email protected]> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
