Skip to content

Commit

Permalink
fix: remove next/previous text from blog footer (#6142)
Browse files Browse the repository at this point in the history
* fix: remove next/previous text from blog footer

* fix: use site_url instead of config_file_path
  • Loading branch information
prushh authored Oct 24, 2024
1 parent f676bc3 commit ad6c51b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions overrides/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@
{% include ".icons/material/arrow-left.svg" %}
</div>
<div class="md-footer__title">
<span class="md-footer__direction">
{{ lang.t("footer.previous") }}
</span>
{% if "blog" not in config.site_url %}
<span class="md-footer__direction">
{{ lang.t("footer.previous") }}
</span>
{% endif %}
<div class="md-ellipsis">
{{ page.previous_page.title }}
</div>
Expand All @@ -42,9 +44,11 @@
rel="next"
>
<div class="md-footer__title">
<span class="md-footer__direction">
{{ lang.t("footer.next") }}
</span>
{% if "blog" not in config.site_url %}
<span class="md-footer__direction">
{{ lang.t("footer.next") }}
</span>
{% endif %}
<div class="md-ellipsis">
{{ page.next_page.title }}
</div>
Expand Down

0 comments on commit ad6c51b

Please sign in to comment.