Skip to content

show up to h3 in blog toc#1765

Merged
Alek99 merged 1 commit intomainfrom
carlos/toc-updates
Feb 27, 2026
Merged

show up to h3 in blog toc#1765
Alek99 merged 1 commit intomainfrom
carlos/toc-updates

Conversation

@carlosabadia
Copy link
Collaborator

No description provided.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 27, 2026

Greptile Summary

This PR limits the blog table of contents to display only h1, h2, and h3 headings by filtering out deeper heading levels. Additionally includes a responsive styling adjustment for the page gradient background.

  • Filters TOC entries to heading levels 1-3 using list comprehension
  • Updates CSS classes for improved responsive gradient behavior across screen sizes

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Simple, focused changes with clear logic - TOC filter correctly limits heading levels, and CSS adjustments are standard responsive design patterns
  • No files require special attention

Important Files Changed

Filename Overview
pcweb/pages/blog/page.py Added TOC filter to show only h1-h3 headings and adjusted responsive gradient styling

Last reviewed commit: 64965b3

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@Alek99 Alek99 merged commit c539cd7 into main Feb 27, 2026
10 checks passed
@Alek99 Alek99 deleted the carlos/toc-updates branch February 27, 2026 18:30
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