mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix error when github options does not exist.
This commit is contained in:
parent
56d252c6bb
commit
51549c61ee
@ -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
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user