Skip to content

Commit

Permalink
Merge pull request #1242 from phil-opp/improve-comment-link
Browse files Browse the repository at this point in the history
Add `in:title` qualifier for discussion links
  • Loading branch information
phil-opp authored Sep 14, 2023
2 parents 5b67cb0 + 87d0ce5 commit 684ef64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/templates/snippets.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% if search_term is number %}
{% set discussion_url = "https://github.com/phil-opp/blog_os/discussions/" ~ search_term %}
{% else %}
{% set search_term_encoded = `"` ~ search_term ~ `"` | urlencode %}
{% set search_term_encoded = `"` ~ search_term ~ `"` ~ ` in:title` | urlencode %}
{% set discussion_url = `https://github.com/phil-opp/blog_os/discussions/categories/` ~ category_path ~ `?discussions_q=` ~ search_term_encoded %}
{% endif %}

Expand Down

0 comments on commit 684ef64

Please sign in to comment.