Filter WikiGDrive redirect/conflict pages from listings and search#152
Merged
pierzchala-m merged 3 commits intomasterfrom May 1, 2026
Merged
Filter WikiGDrive redirect/conflict pages from listings and search#152pierzchala-m merged 3 commits intomasterfrom
pierzchala-m merged 3 commits intomasterfrom
Conversation
Agent-Logs-Url: https://github.com/mieweb/docs/sessions/99f6a7fa-9a57-41c5-9ae0-c04201ee92b4 Co-authored-by: pierzchala-m <162727606+pierzchala-m@users.noreply.github.com>
Deploying wc-docs with
|
| Latest commit: |
d35879a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cb0bdea7.wc-docs.pages.dev |
| Branch Preview URL: | https://copilot-filter-redirect-conf.wc-docs.pages.dev |
Copilot
AI
changed the title
[WIP] Filter 'redirect' and 'conflict' from search and page view
Filter WikiGDrive redirect/conflict pages from listings and search
May 1, 2026
Deploying eh-docs with
|
| Latest commit: |
d35879a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://060146c7.eh-docs.pages.dev |
| Branch Preview URL: | https://copilot-filter-redirect-conf.eh-docs.pages.dev |
pierzchala-m
approved these changes
May 1, 2026
There was a problem hiding this comment.
Pull request overview
This PR prevents WikiGDrive-generated redirect/conflict placeholder pages (titles prefixed with Redirect to: / Conflict:) from appearing in user-facing child-page listings and from being indexed into the site search JSON.
Changes:
- Added a shared Hugo partial predicate (
is-hidden-page.html) to identify redirect/conflict pages. - Applied the predicate to filter page listings in the
children/children-innershortcodes and in the default section list template. - Excluded hidden pages from the generated
search.jsonindex.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| themes/mieweb-docs/layouts/shortcodes/children.html | Filters hidden pages out of the children card grid listing. |
| themes/mieweb-docs/layouts/shortcodes/children-inner.html | Filters hidden pages out of the inline children list. |
| themes/mieweb-docs/layouts/partials/is-hidden-page.html | New shared predicate partial for redirect/conflict detection. |
| themes/mieweb-docs/layouts/_default/search.json | Excludes hidden pages from the search index output. |
| themes/mieweb-docs/layouts/_default/list.html | Filters hidden pages out of section child page listings. |
…en are hidden Agent-Logs-Url: https://github.com/mieweb/docs/sessions/c2b78edf-85b2-40ff-b9eb-6363703f5290 Co-authored-by: pierzchala-m <162727606+pierzchala-m@users.noreply.github.com>
ggodlewski
approved these changes
May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WikiGDrive-generated pages with titles prefixed
Redirect to:orConflict:were leaking into section listing pages and the search index, cluttering navigation and exposing internal content structure to end users.Changes
layouts/partials/is-hidden-page.html— single source of truth for the filter predicate:{{- return (or (hasPrefix .Title "Redirect to:") (hasPrefix .Title "Conflict:")) -}}layouts/shortcodes/children.html— skip hidden pages in the{{% children %}}shortcode gridlayouts/shortcodes/children-inner.html— same filter for the inline children shortcodelayouts/_default/list.html— skip hidden pages in auto-generated section child listingslayouts/_default/search.json— exclude hidden pages from the search index entirely