mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed deprecated calls for template variables
This commit is contained in:
@@ -127,9 +127,8 @@
|
|||||||
<h2 id="__source">{{ lang.t('meta.source') }}</h2>
|
<h2 id="__source">{{ lang.t('meta.source') }}</h2>
|
||||||
{% set path = (page.meta.path | default([""]) | first) %}
|
{% set path = (page.meta.path | default([""]) | first) %}
|
||||||
{% for file in page.meta.source %}
|
{% for file in page.meta.source %}
|
||||||
<a href="{{
|
<a href="{{ [config.repo_url, path, file] |
|
||||||
[repo_url, path, file] | join('/') | replace('//', '/')
|
join('/') | replace('//', '/') }}" title="{{ file }}" class="md-source-file">
|
||||||
}}" title="{{ file }}" class="md-source-file">
|
|
||||||
{{ file }}
|
{{ file }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -253,9 +253,9 @@
|
|||||||
double slashes afterwards. Not beautiful, but it will
|
double slashes afterwards. Not beautiful, but it will
|
||||||
catch a lot of use cases.
|
catch a lot of use cases.
|
||||||
-->
|
-->
|
||||||
<a href="{{
|
<a href="{{ [config.repo_url, path, file] |
|
||||||
[repo_url, path, file] | join('/') | replace('//', '/')
|
join('/') | replace('//', '/') }}"
|
||||||
}}" title="{{ file }}" class="md-source-file">
|
title="{{ file }}" class="md-source-file">
|
||||||
{{ file }}
|
{{ file }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user