Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Unexpected replacement of :counter in resources→title/name #4334
Details of this issue got buried in this HugoDocs issue discussion. I believe this is something that needs to be fixed, so cross-posting the issue details here.
If a Resource file is "fetched" by one set of
The above problem statement might not make sense at first read, so please review the below details.
This scenario works as expected i.e. the
Here I have only:
[[resources]] src = "**.pdf" name = "pdf-file-:counter"
Does not work
In this scenario, the Resource that is "fetched" twice i.e. photo_specs.pdf has its counter stuck at 1.
Here I have:
[[resources]] src = "documents/photo_specs.pdf" title = "Photo Specifications" [[resources]] src = "**.pdf" name = "pdf-file-:counter"
The difference from the "Works" case is that, here I first set the
The behavior is strange though.. it could be understood if the
In summary, if a resource is fetched by an
Or, to put it another way, it seems like
I hope all that made sense.. It was a bit complicated to explain the issue.
PS: Is it true that