I’ve been using the following without issue for sometime. However it doesn’t work with new site deploys. I have site.github.repository_url set in _config.yml. Looking through the settings in sites where it works I can’t see any setting or anything different. Still feel like I’m missing something. Thanks.
<a href="{{ site.github.repository_url }}/commit/{{ site.github.build_revision }}" target="_blank" rel="noopener">{{ site.github.build_revision | slice: 0, 7 }}</a>