Add the ability to hide github link

This commit is contained in:
MosheF 2018-04-24 13:54:07 +03:00
parent 8364d7a4a0
commit 7f215f71b3
3 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,7 @@ Additionally, you may choose to set the following optional variables:
```yml
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
show_github: ["true" or "false" to indicate whether to provide a github URL]
google_analytics: [Your Google Analytics tracking ID]
```

View File

@ -1,5 +1,6 @@
title: Hacker theme
description: Hacker is a theme for GitHub Pages.
show_downloads: true
show_github: true
google_analytics:
theme: jekyll-theme-hacker

View File

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