How to combine the title of the document with the page counter in the footer

Oh, I messed up, sry…

#align(right, title + context counter(page).display(" | 1 "))

should work. “#align(right, context counter(page).display(” | 1 ") " outputs " | " followed by the number and the title is not part of the pattern of the display function.
I changed the order (title to the left) and didn’t check again if it works :frowning: