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

Allow usage of [[page_cu]] in css class names #525

Merged
merged 1 commit into from Mar 22, 2020

Conversation

marbetschar
Copy link
Contributor

This fixes #522 by allowing the usage of the current page number within a css class name. By using this we are allowed to apply different styling depending on which page we are.

This fixes spipu#522 by allowing the usage of the current page number within a css class name. By using this we are allowed to apply different styling depending on which page we are.
@spipu
Copy link
Owner

spipu commented Mar 6, 2020

Thanks !
The MR #551 fix the travis pb. Once it has been fixed, could you rebase your branch from the master to fix it, and also add an enty on the changelog file, and add an example ? thanks !

@marbetschar
Copy link
Contributor Author

marbetschar commented Mar 6, 2020

@spipu I no longer have access to the corresponding use case in order to rebase/test etc. the fix. Feel free to copy & paste the few lines of code into master and reject this pull request.

@spipu
Copy link
Owner

spipu commented Mar 6, 2020

ok. Just confirm me how it was working : just using class="content-[[page_cu]]" in the html and adding the good css definition ?

@marbetschar
Copy link
Contributor Author

exactly.

@spipu spipu merged commit 68aa9aa into spipu:master Mar 22, 2020
@spipu
Copy link
Owner

spipu commented Mar 22, 2020

example added

@spipu
Copy link
Owner

spipu commented Mar 22, 2020

42836b8

@simplygest
Copy link

Is it possible to also allow usage of [[page_nb]] in CSS class names? This will allow us to hide/show page content depending on the number of pages.

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.

Header and the Footer ONLY on the First Page?
3 participants