Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add the ability to substitute in a pubyear #67
Useful for an auto-updating copyright statement.
This code feels suboptimal in a few ways, mainly that it duplicates the DecodeDate call with the pubdate section above it. I couldn't figure out how to deduplicate though; the scoping inside this massive function confused me too much :(. This seems good enough for now.
For the record I also tried to replace the span entirely with a new text node, but got an