Fix url and conditionally show section
This commit is contained in:
parent
c8be0baa1f
commit
78dbc49f1a
1 changed files with 12 additions and 10 deletions
|
@ -11,15 +11,17 @@
|
||||||
{% include_block page.body %}
|
{% include_block page.body %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{% if page.get_download_link or page.project_url %}
|
||||||
<section class="text-center">
|
<section class="text-center">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
{% if page.get_download_link %}
|
{% if page.get_download_link %}
|
||||||
<a class="btn btn-primary btn-xl" href="{{ page.get_download_link }}">Download {{ page.title }}</a>
|
<a class="btn btn-primary btn-xl" href="{{ page.get_download_link }}">Download {{ page.title }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.url %}
|
{% if page.project_url %}
|
||||||
<a class="btn btn-github btn-xl" href="{{ page.project_url }}"><i class="fa fa-github fa-lg"></i> View Project</a>
|
<a class="btn btn-github btn-xl" href="{{ page.project_url }}"><i class="fa fa-github fa-lg"></i> View Project</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in a new issue