Skip to content

Commit

Permalink
Add page ID and slug to div data
Browse files Browse the repository at this point in the history
Allows for further customization per-page using custom CSS
  • Loading branch information
dsevillamartin committed Jul 2, 2023
1 parent 18ad721 commit c7352a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/PagePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class PagePage extends Page {
const page = this.page;

return (
<div className={classList('Pages', page.isHtml() && 'Pages--isHtml')}>
<div className={classList('Pages', page.isHtml() && 'Pages--isHtml')} data-id={page.id()} data-slug={page.slug()}>
<div className="Pages-page">
{page
? [
Expand Down

0 comments on commit c7352a9

Please sign in to comment.