Disable "View on Github" button
Add a option to disable a "View on Github" button. To disable, add this option ```yml github: is_project_page: false ``` in yout _config.yml file
This commit is contained in:
parent
e193e8e825
commit
ce4102606d
@ -21,7 +21,9 @@
|
|||||||
<a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
|
<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>
|
<a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
|
||||||
{% endif %}
|
{% 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>
|
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
|
||||||
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user