mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed view source button link
This commit is contained in:
parent
1287ce8cb2
commit
feef8cd6d5
@ -9,7 +9,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if "content.action.view" in features %}
|
{% if "content.action.view" in features %}
|
||||||
<a href="{{ page.edit_url | replace(edit, view) }}" title="{{ lang.t('action.view') }}" class="md-content__button md-icon">
|
<a href="{{ page.edit_url | replace('edit', 'raw') }}" title="{{ lang.t('action.view') }}" class="md-content__button md-icon">
|
||||||
{% set icon = config.theme.icon.view or "material/file-eye-outline" %}
|
{% set icon = config.theme.icon.view or "material/file-eye-outline" %}
|
||||||
{% include ".icons/" ~ icon ~ ".svg" %}
|
{% include ".icons/" ~ icon ~ ".svg" %}
|
||||||
</a>
|
</a>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<!-- View button -->
|
<!-- View button -->
|
||||||
{% if "content.action.view" in features %}
|
{% if "content.action.view" in features %}
|
||||||
<a
|
<a
|
||||||
href="{{ page.edit_url | replace(edit, view) }}"
|
href="{{ page.edit_url | replace('edit', 'raw') }}"
|
||||||
title="{{ lang.t('action.view') }}"
|
title="{{ lang.t('action.view') }}"
|
||||||
class="md-content__button md-icon"
|
class="md-content__button md-icon"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user