Stream: IG creation
Topic: trouble with page numbering
Eric Haas (May 16 2019 at 03:40):
I set up my page section numbering like Lloyds but the trailing zeros don't show. so page 1.10 is the same as 1.1, is that happening for you LLoyd?
Lloyd McKenzie (May 16 2019 at 03:50):
I don't have anything with sub-sections that go that high. I can't imagine why that would happen though. Are you using the same CSS approach I was?
Eric Haas (May 16 2019 at 15:38):
There is string to decimal conversion going on in liquid here:
{% assign pagenumber = {{site.data.pages[pagepath].label | remove: ".0" }} %} ... {{pagenumber | plus: 1}}
so the trailing zero gets lost. I will have to split and add and then rejoin to preserve string value. Unless you have a better way to do pagenumbering
Eric Haas (May 16 2019 at 15:39):
my CSS is the same as yours
Lloyd McKenzie (May 16 2019 at 16:47):
k. That makes sense.
Last updated: Apr 12 2022 at 19:14 UTC