Fix error when github options does not exist.

This commit is contained in:
Orne Brocaar 2016-06-29 18:32:11 +02:00
parent 56d252c6bb
commit 51549c61ee
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
{% if repo_name == "GitHub" and repo_url %}
<ul class="repo">
<li class="repo-download">
{% if config.extra.github.download_release %}
{% if config.extra.github and config.extra.github.download_release %}
{% set version = config.extra.version | default("../latest") %}
<a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank" title="Download" data-action="download">
<i class="icon icon-download"></i> Download

View File

@ -41,7 +41,7 @@
{% if repo_name == "GitHub" and repo_url %}
<ul class="repo">
<li class="repo-download">
{% if config.extra.github.download_release %}
{% if config.extra.github and config.extra.github.download_release %}
{% set version = config.extra.version | default("../latest") %}
<a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank"
title="Download" data-action="download">