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

Add content classes to notes #277

Merged
merged 5 commits into from
Apr 25, 2023
Merged

Add content classes to notes #277

merged 5 commits into from
Apr 25, 2023

Conversation

uroybd
Copy link
Contributor

@uroybd uroybd commented Apr 18, 2023

This PR allows users to:

  1. Set a key from which the classes should be extracted (Defaults to dg-content-classes). This reconfigurability allows users to avoid redundancy. For example, the Minimal theme comes with its own key to set classes. Users can use the same values for the digital garden too.
  2. Allow users to set classes to be added to the content container from the notes. It will allow users to do many style tweaks. For example card view.

@uroybd
Copy link
Contributor Author

uroybd commented Apr 19, 2023

Here's an example of what users can do with these classes in combination with #276

@oleeskild
Copy link
Owner

That is really smart, thanks for the PR! Merging it, and releasing it after doing some basic testing

@oleeskild oleeskild merged commit 46a155d into oleeskild:main Apr 25, 2023
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.

2 participants