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

Grav comment classes #95

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

juekr
Copy link

@juekr juekr commented Oct 7, 2020

Added the possibility to add classes to comment section elements. The classes for wrapper, table, rows, columns, meta information and alert area are configured via config .yaml like this:

classes:
wrapper: comments-wrapper
table: table-comments
rows: tr-comments
cols: td-comments
meta: comment-meta
alert: comment-alert

If left empty, they default to class="" – except for the alert (this defaults to class="alert").

Also added an id to the outer wrapper class that is added as target to the form's action (so user land directly in the comment section after submitting).

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.

None yet

1 participant