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:
@@ -26,7 +26,7 @@
|
|||||||
{% if repo_name == "GitHub" and repo_url %}
|
{% if repo_name == "GitHub" and repo_url %}
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<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") %}
|
{% set version = config.extra.version | default("../latest") %}
|
||||||
<a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank" title="Download" data-action="download">
|
<a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank" title="Download" data-action="download">
|
||||||
<i class="icon icon-download"></i> Download
|
<i class="icon icon-download"></i> Download
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
{% if repo_name == "GitHub" and repo_url %}
|
{% if repo_name == "GitHub" and repo_url %}
|
||||||
<ul class="repo">
|
<ul class="repo">
|
||||||
<li class="repo-download">
|
<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") %}
|
{% set version = config.extra.version | default("../latest") %}
|
||||||
<a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank"
|
<a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank"
|
||||||
title="Download" data-action="download">
|
title="Download" data-action="download">
|
||||||
|
|||||||
Reference in New Issue
Block a user