-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat: ability to hide tags in the recent notes component #1147
Conversation
@@ -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" })` |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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) => ( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
fixes #1068 by adding a simple
showTags
option to the Recent Notes component which defaults to truehere is how tags look with tags enabled
![image](https://private-user-images.githubusercontent.com/5795145/332460958-8cdada99-3f52-4854-96d0-f418e81d615b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2NjY5MjgsIm5iZiI6MTcxODY2NjYyOCwicGF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Q4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTY4YWUyMjFhZmJmMmMxOTIxMmIwNDQzNGMwYTZkMDEzNzhjNDE1ZDZiNGQ5MTY4NWI1ZmRmYTcxNzQ5MzE4MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.D5jrryt_2Y4BBOVulnHsZxWcNWunzAjPp6pypqpcj78)
showTags: false
option