Merge pull request #1 from SNvMK/is-project-page

Add is_project_page checker for View on GitHub button
This commit is contained in:
SNVMK 2021-01-30 17:49:00 +07:00 committed by GitHub
commit f2215519b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@
<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>
{% if site.is_project_page %}
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
{% endif %}
</section>
</div>
</header>