Skip to content

Commit ad6c51b

Browse files
authored
fix: remove next/previous text from blog footer (#6142)
* fix: remove next/previous text from blog footer * fix: use site_url instead of config_file_path
1 parent f676bc3 commit ad6c51b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

overrides/partials/footer.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
{% include ".icons/material/arrow-left.svg" %}
2424
</div>
2525
<div class="md-footer__title">
26-
<span class="md-footer__direction">
27-
{{ lang.t("footer.previous") }}
28-
</span>
26+
{% if "blog" not in config.site_url %}
27+
<span class="md-footer__direction">
28+
{{ lang.t("footer.previous") }}
29+
</span>
30+
{% endif %}
2931
<div class="md-ellipsis">
3032
{{ page.previous_page.title }}
3133
</div>
@@ -42,9 +44,11 @@
4244
rel="next"
4345
>
4446
<div class="md-footer__title">
45-
<span class="md-footer__direction">
46-
{{ lang.t("footer.next") }}
47-
</span>
47+
{% if "blog" not in config.site_url %}
48+
<span class="md-footer__direction">
49+
{{ lang.t("footer.next") }}
50+
</span>
51+
{% endif %}
4852
<div class="md-ellipsis">
4953
{{ page.next_page.title }}
5054
</div>

0 commit comments

Comments
 (0)