Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

show up to h3 in blog toc - #1765

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

Alek99 merged 1 commit into
mainfrom
carlos/toc-updates

Conversation

@carlosabadia

Copy link
Copy Markdown
Collaborator

No description provided.

@greptile-apps

greptile-apps Bot commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

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

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants