Skip to content

Commit 189d173

Browse files
committed
Do not show GitHub button if no github_user or github_repo specified
Fixes #51.
1 parent d3f995f commit 189d173

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

alabaster/about.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ <h1 class="logo"><a href="{{ pathto(master_doc) }}">{{ project }}</a></h1>
1515
<p class="blurb">{{ theme_description }}</p>
1616
{% endif %}
1717

18+
{% if theme_github_user and theme_github_repo %}
1819
{% if theme_github_button|lower == 'true' %}
1920
<p>
2021
<iframe src="https://ghbtns.com/github-btn.html?user={{ theme_github_user }}&repo={{ theme_github_repo }}&type={{ theme_github_type }}&count={{ theme_github_count }}&size=large"
2122
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
2223
</p>
2324
{% endif %}
25+
{% endif %}
2426

2527
{% if theme_travis_button|lower != 'false' %}
2628
{% if theme_travis_button|lower == 'true' %}

0 commit comments

Comments
 (0)