I used li:after to add content after the li element, but it didn't work.
I tried to solve the problem with nav ol li::after, nav ol li*::after, but it didn't work.
Here's the code I used:
nav ol li::after {
content: "|";
}
nav ol li:last-child {
content: "";
}