Skip to content

Commit ffc4ed7

Browse files
committed
Correct URL for licence
This now always links to the licence in the main repo, not the individual project repo. The repository_name will always be the name of the current repo, so the initial check was pointless.
1 parent ac9516f commit ffc4ed7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

_includes/footer.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{%- assign main_repo = site.github.public_repositories | where_exp:'r','r.name == site.github.repository_name' | first -%}
21
{%- capture edit_link -%}{% github_edit_link "source" %}{%- endcapture -%}
32
{%- if page.paginated and paginator.page > 1 -%}
43
{%- assign first_page = site.pages | where_exp: 'p','p.paginated == true' | sort: 'path' | first -%}
@@ -7,7 +6,7 @@
76
<footer>
87
<div class="container">
98
<p class="copy">
10-
&copy; <a href="{{ main_repo.html_url | replace: 'http:','https:' }}#licence">{{ site.time | date: '%Y' }} {{ site.title }}</a>.
9+
&copy; <a href="{{ site.github.owner_url }}/{{ site.github.owner_name }}.github.io#licence">{{ site.time | date: '%Y' }} {{ site.title }}</a>.
1110
<span class="powered">Powered by <a href="https://jekyllrb.com">Jekyll</a> / <a href="https://pages.github.com/">GitHub Pages</a>
1211
<span class="source-link">({{ edit_link | replace_first: '/edit/','/blob/' }})</span></span>
1312
</p>

0 commit comments

Comments
 (0)