Repository navigation
Hide public notes from the Garden index - #18
Merged
Merged
Conversation
The garden lists posts only. Public Notes stay on /notes/, and growth is still calculated with those notes present. Co-authored-by: Shumin <shuminfu99@gmail.com>
Deploying fun-fun-zone with
|
| Latest commit: |
b50c649
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f52d7068.fun-fun-zone.pages.dev |
| Branch Preview URL: | https://cursor-garden-hide-notes-9b5.fun-fun-zone.pages.dev |
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?
The Garden at
/posts/now lists regular posts only. Posts thatisNote()already treats as public notes stay off this index and remain on/notes/.Growth is still calculated with those notes in the corpus, so a note’s link can still move a post between stages. The stage tabs then count only the posts on the page.
With the current content that is 33 posts: All 33, Seedling 24, Budding 9, Evergreen 0. Grid and list both use that set. The tag dropdown only offers tags that appear on those posts, so
#notesis not a garden filter.#reading-notesposts stay in the garden. The visible count and the page description follow the same set. Paginated/posts/page/N/uses it too.Unchanged
/notes/still lists all 16 public notes./posts/tag/notes/), homepage recent mix, command-palette search, and RSS.Not for publication until you say 发.
Garden on desktop
Garden on a phone
How to test
npm run dev/posts/. Expect 33 posts, tabs 33 / 24 / 9 / 0, and no Note badges. List view shows the same posts. Seedling still filters. Searching tags does not offer#notes./notes/. Expect Public Notes and 16 notes./posts/tag/notes/and a note’s own URL. Both still work. A reading-notes post is still in the garden.Checklist
npm run buildpassesChecked classic in the browser, including the phone width, list toggle, Seedling tab, and tag search. A second color theme was not clicked.
To show artifacts inline, enable in settings.