Rebuild the learn hub with indexed article cards and a category tab bar#17
Merged
Conversation
article-cards fetches /learn/query-index.json and renders the articles as a responsive card grid, newest first. It shows a first batch with a load-more button. category-tabs styles the section links as a horizontal tab bar like the live hub. The /learn hub now uses both, alongside the hero, product highlights, and the EV band. Rows without an image are skipped. The article title suffix is dropped for display. Tested: npm test covers the grid, load-more, newest-first order, and skipping imageless rows. Live-tested on a local aem up server against the real /learn index of 214 articles. Tabs styled, 12 cards then load-more to 24, dark titles.
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
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.
Fix #16
Rebuild the /learn hub toward the live layout, and drive its article list from the query index added in #15.
Two new blocks. article-cards fetches /learn/query-index.json and renders the articles as a responsive card grid, newest first, with a load-more button. category-tabs styles the section links as a horizontal tab bar like the live hub.
The /learn hub content now has the hero, the tab bar, product highlights, an indexed article grid of all 214 articles, and the EV band. This replaces the seven hardcoded news cards. Rows with no image are skipped, and the " | Continental Tire" title suffix is dropped for display.
Testing: npm test covers the grid, load-more, newest-first order, and skipping imageless rows. Live-tested on a local aem up server against the real index: tabs render as a bar, 12 cards then load-more to 24, dark titles.
Test URLs: