jekyll-git_metadata
jekyll-git_metadata copied to clipboard
Get last commit of any file
Hi, is it possible to do the effect of page.git.last_commit but with any file (not necessarily the one you are on)?
For example something like
{% for file in site.static_files %}
console.log("FILE {{file.path}} LAST COMMIT: {{file.git.last_commit.short_sha}}");
{% endfor %}
This works for files with front-matter but not images, XML files etc.
Hello! 👋
There isn't functionality to get git data for static files but that's a great idea and I think we should do it. I welcome any pull requests for this functionality!