Skip to content

Commit

Permalink
Merge pull request #3 from mueller-physics/master
Browse files Browse the repository at this point in the history
'View on github'-button to user page for non-projects
  • Loading branch information
benbalter committed Mar 6, 2017
2 parents b85c6f6 + 22d2561 commit 99c71e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@
<h1>{{ site.title | default: site.github.repository_name }}</h1>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
</header>

<section id="downloads" class="clearfix">
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" id="download-zip" class="button"><span>Download .zip</span></a>
<a href="{{ site.github.tar_url }}" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
{% endif %}
{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>

{% else %}
<a href="{{ site.github.owner_url }}" id="view-on-github" class="button"><span>View on GitHub</span></a>
{% endif %}
</section>
<hr>

<section id="main_content">
{{ content }}
</section>
Expand Down

0 comments on commit 99c71e3

Please sign in to comment.