FHIR Chat · trouble with page numbering · IG creation

Stream: IG creation

Topic: trouble with page numbering


view this post on Zulip 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?

view this post on Zulip 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?

view this post on Zulip 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

view this post on Zulip Eric Haas (May 16 2019 at 15:39):

my CSS is the same as yours

view this post on Zulip Lloyd McKenzie (May 16 2019 at 16:47):

k. That makes sense.


Last updated: Apr 12 2022 at 19:14 UTC