Skip to content

Commit

Permalink
Make Backlinks case insensitive
Browse files Browse the repository at this point in the history
This might cause too many false positives... We'll see.
  • Loading branch information
agude committed Oct 15, 2024
1 parent d2fdbb0 commit c686be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/book_backlinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2 class="book-backlink-section">Reviews that mention <span
{% assign sorted_titles = "" %}

{% for book in site.books %}
{% assign title = book.title | remove: "The " %}
{% assign title = book.title | remove: "The " | downcase | strip %}
{% assign sorted_titles = sorted_titles | append: title | append: "|" %}
{% endfor %}

Expand All @@ -37,7 +37,7 @@ <h2 class="book-backlink-section">Reviews that mention <span
{% for book in site.books %}
{% comment %}Check that our book is the right one to stay in alphabetical
order.{% endcomment %}
{% assign mod_title = book.title | remove: "The " %}
{% assign mod_title = book.title | remove: "The " | downcase | strip %}
{% if mod_title != sort_title %}
{% continue %}
{% endif %}
Expand Down

0 comments on commit c686be1

Please sign in to comment.