mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 02:08:46 -04:00
Fixed meta source only rendering first character
This commit is contained in:
@@ -264,13 +264,12 @@
|
||||
{% block source %}
|
||||
{% if page.meta.source %}
|
||||
<h2 id="__source">{{ lang.t("meta.source") }}</h2>
|
||||
{% set path = (page.meta.path | default([""]) | first) %}
|
||||
{% for file in page.meta.source %}
|
||||
<a href="{{ [config.repo_url, path, file] | join('/') }}"
|
||||
title="{{ file }}" class="md-source-file">
|
||||
{{ file }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% set path = (page.meta.path | default([""])) %}
|
||||
{% set file = page.meta.source %}
|
||||
<a href="{{ [config.repo_url, path, file] | join('/') }}"
|
||||
title="{{ file }}" class="md-source-file">
|
||||
{{ file }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user