Skip to content

Commit 99c71e3

Browse files
authored
Merge pull request #3 from mueller-physics/master
'View on github'-button to user page for non-projects
2 parents b85c6f6 + 22d2561 commit 99c71e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

_layouts/default.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@
2020
<h1>{{ site.title | default: site.github.repository_name }}</h1>
2121
<h2>{{ site.description | default: site.github.project_tagline }}</h2>
2222
</header>
23-
2423
<section id="downloads" class="clearfix">
2524
{% if site.show_downloads %}
2625
<a href="{{ site.github.zip_url }}" id="download-zip" class="button"><span>Download .zip</span></a>
2726
<a href="{{ site.github.tar_url }}" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
2827
{% endif %}
28+
{% if site.github.is_project_page %}
2929
<a href="{{ site.github.repository_url }}" id="view-on-github" class="button"><span>View on GitHub</span></a>
30-
</section>
31-
30+
{% else %}
31+
<a href="{{ site.github.owner_url }}" id="view-on-github" class="button"><span>View on GitHub</span></a>
32+
{% endif %}
33+
</section>
3234
<hr>
33-
3435
<section id="main_content">
3536
{{ content }}
3637
</section>

0 commit comments

Comments
 (0)