diff options
Diffstat (limited to 'theme')
-rw-r--r-- | theme/templates/ebook/summary.html | 3 | ||||
-rw-r--r-- | theme/templates/website/includes/summary.html | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/theme/templates/ebook/summary.html b/theme/templates/ebook/summary.html index 9a67d28..2e540a6 100644 --- a/theme/templates/ebook/summary.html +++ b/theme/templates/ebook/summary.html @@ -4,10 +4,9 @@ {% macro articles(_articles) %} {% for item in _articles %} - {% set externalLink = item.path|isExternalLink %} <li> {% if item.path %} - {% if !externalLink %} + {% if item.external %} <a href="{{ basePath }}/{{ item.path|contentLink }}">{{ item.title }}</a> {% else %} <a target="_blank" href="{{ item.path }}">{{ item.title }}</a> diff --git a/theme/templates/website/includes/summary.html b/theme/templates/website/includes/summary.html index ffe9f16..39f5295 100644 --- a/theme/templates/website/includes/summary.html +++ b/theme/templates/website/includes/summary.html @@ -1,9 +1,8 @@ {% macro articles(_articles) %} {% for item in _articles %} - {% set externalLink = item.path|isExternalLink %} - <li class="chapter {% if item.path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path and not externalLink %}data-path="{{ item.path|contentLink }}"{% endif %}> + <li class="chapter {% if item.path == _input %}active{% endif %}" data-level="{{ item.level }}" {% if item.path and not item.external %}data-path="{{ item.path|contentLink }}"{% endif %}> {% if item.path %} - {% if not externalLink %} + {% if not item.external %} <a href="{{ basePath }}/{{ item.path|contentLink }}"> <i class="fa fa-check"></i> {% if item.level != "0" %} |