Blog revitalization: homepage section, post tagging, and landing page#705
Blog revitalization: homepage section, post tagging, and landing page#705vdemeester wants to merge 2 commits intotektoncd:mainfrom
Conversation
42cbbab to
c689ef7
Compare
Revitalize the blog presence on tekton.dev: - Add a 'Latest from the Blog' section to the homepage showing the 3 most recent posts as cards with title, date, tags, description, and author, plus a 'View all posts' CTA button - Tag all 11 existing blog posts with descriptive categories: release, security, tutorial, deep-dive, community, and component-specific tags (pipelines, chains, pruner, etc.) - Display tags as badges on blog post pages and the blog list - Improve the blog landing page with a description and a call-to-action for blog contributions Implemented via Hugo shortcode (recent-blog-posts.html) and overridden Docsy blog templates (content.html, list.html).
c689ef7 to
aa7e435
Compare
There was a problem hiding this comment.
NIT: we may miss new updates from future Docsy versions with this, but not big deal
There was a problem hiding this comment.
I think I've seen this type of list on other websites, perhaps it's a good candidate for submission upstream in https://github.com/google/docsy as well :)
| Stay up to date with the latest Tekton developments. Our blog features release announcements, | ||
| security best practices, tutorials, and insights from contributors across the ecosystem. | ||
|
|
||
| **Want to contribute a post?** Check out our [blog guidelines](/docs/contribute/blog-guidelines/) | ||
| to learn how to submit your article. |
There was a problem hiding this comment.
This is not shown in the blog page layouts/blog/list.html. You need to add {{ .Content }} to it.
You can add it to list.html above {{- if .Pages -}}.
<div class="col-12">
{{ with .Content }}
<div class="mb-4">
{{ . }}
</div>
{{ end }}
{{- if .Pages -}}There was a problem hiding this comment.
Are you adding this file and list.html because upgrading our docsy to the latest release is not straight forward? We're on 0.6 and in 0.7 there were breaking changes, other than that the releases look ok => https://github.com/google/docsy/releases?page=1
This file looks similar to td-conten.html from docsy main branch.
|
/hold |
|
/approve |
|
/unhold |
|
|
||
|
|
||
| /* Blog cards on homepage */ | ||
| .card.shadow-sm { |
There was a problem hiding this comment.
Maybe just minor.
This is overly broad and will style every bootstrap card anywhere with shadow. I'd add an extra .blog-card to the div and use here to scope the css.
| </div> | ||
| {{ end }} | ||
| <header class="article-meta"> | ||
| {{ partial "taxonomy_terms_article_wrapper.html" . }} |
There was a problem hiding this comment.
I think you can remove this. It's not rendered because config.yaml has disableKinds: [taxonomy, taxonomyTerm].
| .badge-light { | ||
| background-color: #e9ecef; | ||
| font-weight: normal; | ||
| font-size: 0.75rem; | ||
| } |
| </div> | ||
| <h5 class="card-title"> | ||
| <a href="{{ .RelPermalink }}" class="text-dark"> | ||
| {{ .Params.linkTitle | default .Title }} |
There was a problem hiding this comment.
You can use a build in method here => https://gohugo.io/methods/page/linktitle/
| {{ .Params.linkTitle | default .Title }} | |
| {{ .LinkTitle }} |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afrittoli The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
- Scope .card.shadow-sm CSS selector to .blog-card to avoid styling
all bootstrap cards globally
- Add {{ .Content }} to blog list.html so _index.md description and
intro text are rendered on the blog landing page
- Remove taxonomy_terms_article_wrapper.html partial from content.html
and list.html since taxonomies are disabled in config.yaml
- Use Hugo built-in .LinkTitle method instead of manual
.Params.linkTitle | default .Title in recent-blog-posts shortcode
- Add comment on .badge-outline-primary CSS class for clarity
|
I think I'll close, see tektoncd/community#1268 and #717 |

Changes
Revitalize the blog presence on tekton.dev by adding blog visibility to the homepage, categorizing all existing posts with tags, displaying tags across all blog views, and improving the blog landing page.
What this PR does
1. Homepage: "Latest from the Blog" section
layouts/shortcodes/recent-blog-posts.html) that renders the 3 most recent blog posts as cards/blog/2. Blog post tagging (all 11 posts)
All existing blog posts now have descriptive
tagsin their front matter:pipelines,chains,pruner,infrastructure,events3. Tags displayed across all blog views
Tags are rendered as badges in three places:
/blog/) — primary badges next to the date/section info (overridden Docsyblog/list.html)blog/content.html)4. Blog landing page improvement
content/en/blog/_index.mdWhy
The blog currently has zero visibility on the homepage — it is only accessible via a nav link. This is a missed opportunity since the blog has quality content (release announcements, security deep dives, tutorials). This is Phase 1 of the tekton.dev website revitalization effort.
Files changed
layouts/shortcodes/recent-blog-posts.html— new homepage blog shortcodelayouts/blog/content.html— overridden Docsy template for blog post tag displaylayouts/blog/list.html— overridden Docsy template for blog list tag displayassets/scss/_styles_project.scss— card hover effects and tag badge stylingcontent/en/_index.html— homepage shortcode insertioncontent/en/blog/_index.md— improved blog landing pagecontent/en/blog/**/index.md— tags added to all 11 blog postsSubmitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide
for more details.