Fixed deprecated calls for template variables

This commit is contained in:
squidfunk 2017-04-05 11:32:45 +02:00 committed by Martin Donath
parent 6e5b9d0754
commit 315fa4b590
2 changed files with 5 additions and 6 deletions

View File

@ -127,9 +127,8 @@
<h2 id="__source">{{ lang.t('meta.source') }}</h2>
{% set path = (page.meta.path | default([""]) | first) %}
{% for file in page.meta.source %}
<a href="{{
[repo_url, path, file] | join('/') | replace('//', '/')
}}" title="{{ file }}" class="md-source-file">
<a href="{{ [config.repo_url, path, file] |
join('/') | replace('//', '/') }}" title="{{ file }}" class="md-source-file">
{{ file }}
</a>
{% endfor %}

View File

@ -253,9 +253,9 @@
double slashes afterwards. Not beautiful, but it will
catch a lot of use cases.
-->
<a href="{{
[repo_url, path, file] | join('/') | replace('//', '/')
}}" title="{{ file }}" class="md-source-file">
<a href="{{ [config.repo_url, path, file] |
join('/') | replace('//', '/') }}"
title="{{ file }}" class="md-source-file">
{{ file }}
</a>
{% endfor %}