Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ability to hide tags in the recent notes component #1147

Merged
merged 5 commits into from
May 21, 2024

Conversation

bachrc
Copy link
Contributor

@bachrc bachrc commented May 19, 2024

fixes #1068 by adding a simple showTags option to the Recent Notes component which defaults to true

here is how tags look with tags enabled
image

And here with the showTags: false option
image

@@ -7,10 +7,18 @@ Quartz can generate a list of recent notes based on some filtering and sorting c

## Customization

- Changing the title from "Recent notes": pass in an additional parameter to `Component.RecentNotes({ title: "Recent writing" })`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep this as a bullet list to make it consistent with other documentation pages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can totally do, do you prefer me to keep the bullet list on this one, or should I make a table everywhere else?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep the bullet list for now :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

</ul>
{opts.showTags && (
<ul class="tags">
{tags.map((tag) => (
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does the spacing look with the tags removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just added some screen caps to the pull request

@bachrc bachrc requested a review from jackyzha0 May 21, 2024 14:25
docs/features/recent notes.md Outdated Show resolved Hide resolved
@jackyzha0 jackyzha0 merged commit 81a4e20 into jackyzha0:v4 May 21, 2024
4 checks passed
Elijer pushed a commit to Elijer/garden that referenced this pull request Jun 13, 2024
)

* feat: ability to hide tags in the recent notes component

* docs: recent notes custom parameters in a table

* docs: revert recent notes doc to bullet points

* fix: linter issues

* Update docs/features/recent notes.md

---------

Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to hide tags in Recent Notes component
2 participants