Use actual button for linking to repo
This commit is contained in:
parent
1ba3d04927
commit
2e3c888f49
2 changed files with 7 additions and 4 deletions
|
@ -3,11 +3,9 @@ title: Code
|
||||||
repo: SR-CLY/2014
|
repo: SR-CLY/2014
|
||||||
---
|
---
|
||||||
|
|
||||||
2014 is one of the only years in which we released the full source code for our robot. There's a link to our [GitHub organisation](https://github.com/SR-CLY/) below. I've mapped SR user accounts to GitHub user accounts to make commit history more accurate.
|
2014 is one of the only years in which we released the [full source code](https://github.com/SR-CLY/2014) for our robot, to our [GitHub organisation](https://github.com/SR-CLY/).
|
||||||
|
|
||||||
<ul class="actions fir">
|
{{% repobutton %}}
|
||||||
<li><a class="button special fit" href="https://github.com/SR-CLY/2014">View Source</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
## GRAP!
|
## GRAP!
|
||||||
|
|
||||||
|
|
5
layouts/shortcodes/repobutton.html
Normal file
5
layouts/shortcodes/repobutton.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{{ $repo := default (.Get 0) .Page.Params.repo }}
|
||||||
|
|
||||||
|
<a class="btn btn-outline-dark my-2" href="https://github.com/{{ $repo }}">
|
||||||
|
<i class="fa fa-github"></i> View on GitHub
|
||||||
|
</a>
|
Loading…
Reference in a new issue