Skip to content

How to set a prefix to the pagination? #485

Answered by yhatt
freenandes asked this question in Q&A
Discussion options

You must be logged in to vote

👉 https://marpit.marp.app/theme-css?id=customize-content

<style>
section::after {
  /* Add "Page" prefix, and total page number */
  content: 'Page ' attr(data-marpit-pagination) ' of ' attr(data-marpit-pagination-total);
}
</style>

Variants:

  • X-20: content: attr(data-marpit-pagination) '-' attr(data-marpit-pagination-total);
  • X of 20 pages: content: attr(data-marpit-pagination) ' of ' attr(data-marpit-pagination-total) ' pages';

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@freenandes
Comment options

Answer selected by freenandes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants