-
I would like to add the git tag to the footer of rendered pages. Here's what I've tried:
So, any ideas how I can get git.tag (or similar) into the footer (presumably via jinja templates)? For clarity, I want something like this: (I fudged this with a static |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I have just had the same problem and found the answer in the blog plugin, specifically in this line, which adds data to the page context. No need to write a full plugin, you can write a much simpler hook that has an |
Beta Was this translation helpful? Give feedback.
I have just had the same problem and found the answer in the blog plugin, specifically in this line, which adds data to the page context. No need to write a full plugin, you can write a much simpler hook that has an
on_page_context
method and adds the data you want.