Repository navigation
Add Public Notes at /notes/ - #17
Merged
Merged
Conversation
List the posts that already show the Note badge, and link the section from the header. Garden growth tabs stay as they are. Co-authored-by: Shumin <shuminfu99@gmail.com>
Deploying fun-fun-zone with
|
| Latest commit: |
d4ab0af
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e8303ac8.fun-fun-zone.pages.dev |
| Branch Preview URL: | https://cursor-notes-section-9b51.fun-fun-zone.pages.dev |
Keep /notes/ and the existing note set. Card badges still say Note. Co-authored-by: Shumin <shuminfu99@gmail.com>
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.
What does this PR do?
Adds a first-class notes index at
/notes/and a Public Notes item in the header, between Garden and About. The link is current on/notes/in both the desktop nav and the mobile menu (aria-current="page"plus the existing active color). The page heading and document title are Public Notes. The command palette, the notes-tag cross-link, andllms.txtuse the same name.Inclusion rule. A note is whatever
isNote()already treats as a note: a post whose tags includenotes. That is the same check that draws the Note badge and keeps the post out of growth stages (participatesInGrowth). Today that is 16 posts. Posts tagged onlyreading-notesstay ordinary posts. Card badges still say Note.The page reuses the garden card grid, list view, and layout toggle. The URL stays
/notes/. Its canonical URL ishttps://funfun.zone/notes/.Also updated so the section is findable
/notes/through the existing Astro sitemap integration./posts/.llms.txtlists Garden and Public Notes separately. RSS is unchanged: notes already appear there as posts./posts/tag/notes/still lists the tag. It now points at Public Notes. Old tag URLs are unchanged.Intentionally unchanged
/posts/<slug>/. Note card badges stay “Note”.How to test
npm run dev/notes/. Title and heading are Public Notes. Expect 16 cards, each labeled Note, with no growth icon. The two reading-notes posts should be absent./notes/on desktop and in the mobile menu./posts/. Growth tabs are still only All / Seedling / Budding / Evergreen. Seedling hides the notes./posts/tag/notes/still works and links to/notes/./feed.xmlstill includes notes./sitemap-index.xmlincludeshttps://funfun.zone/notes/.Checklist
npm run buildpassesClassic light and dark were checked in the browser. The page uses the same card and nav classes as the garden, so other palettes use those tokens. A second palette was not clicked separately.