Skip to content

Commit

Permalink
Merge pull request #1 from davorpa/feature-61-view-on-github-switcher
Browse files Browse the repository at this point in the history
Feature 61 view on GitHub switcher
  • Loading branch information
davorpa authored Aug 8, 2021
2 parents 4c94250 + abbd60f commit 3b21abe
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ <h1>{{ site.title | default: site.github.repository_name }}</h1>
</a>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>

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

{% if site.github.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
{% endif %}
</section>
{% endif %}
</div>
</header>

Expand Down

0 comments on commit 3b21abe

Please sign in to comment.