Skip to content

Commit 2cbeed1

Browse files
committed
Update patch and moving overrides
- Updated actions.html override - Moved overrides to assets
1 parent 5806424 commit 2cbeed1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/overrides/partials/actions.html renamed to docs/assets/overrides/partials/actions.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@
3434

3535
<!-- View button -->
3636
{% if "content.action.view" in features %}
37+
{% if "/blob/" in page.edit_url %}
38+
{% set part = "blob" %}
39+
{% else %}
40+
{% set part = "edit" %}
41+
{% endif %}
3742
<a
38-
href="{{ page.edit_url | replace('edit', 'blob') }}"
43+
href="{{ page.edit_url | replace(part, 'blob') }}"
3944
title="{{ lang.t('action.view') }}"
4045
class="md-content__button md-icon"
4146
>

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repo_name: LittleLink Custom
88

99
theme:
1010
name: material
11-
custom_dir: docs/overrides
11+
custom_dir: docs/assets/overrides
1212
favicon: assets/img/logo/logo.svg
1313
logo: assets/img/logo/logo.svg
1414
icon:

0 commit comments

Comments
 (0)