Skip to content

Commit

Permalink
Merge pull request #16 from deargle/pr-14-fix-show-downloads
Browse files Browse the repository at this point in the history
Fix show_downloads
  • Loading branch information
parkr authored Jul 26, 2021
2 parents b51a854 + 82a0859 commit a0c945a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ description: [A short description of your site's purpose]
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_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL]
google_analytics: [Your Google Analytics tracking ID]
```

Expand Down
8 changes: 6 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="{{ '/assets/js/script.js' | relative_url }}"></script>
Expand Down Expand Up @@ -57,7 +57,11 @@ <h1 class="title">{{ site.title | default: site.github.repository_name }}</h1>
</div>
<div class="current-section">
<a href="#top">Scroll to top</a>
<a href="{{ site.github.tar_url }}" class="tar">tar</a><a href="{{ site.github.zip_url }}" class="zip">zip</a><a href="" class="code">source code</a>
{% if site.show_downloads %}
<a href="{{ site.github.tar_url }}" class="tar">tar</a>
<a href="{{ site.github.zip_url }}" class="zip">zip</a>
<a href="{{ site.github.repository_url }}" class="code">source code</a>
{% endif %}
<p class="name"></p>
</div>

Expand Down

0 comments on commit a0c945a

Please sign in to comment.