Skip to content

Any way to expose Git data? #132

Answered by ElMassimo
brycewray asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Bryce! @brycewray Glad that you are enjoying îles!

There's no "official" approach, but it's something that can be achieved using Modules, as in the case of the documentation website.

Using the extendFrontmatter hook, you can inject information from git on each page. You can then easily access that data in the page metadata.

I've wanted to add a recipes section in the website covering common use cases such as these, but I haven't made time for that yet. Hopefully this gives you a good starting point to implement the use cases you have in mind 😃

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants