Skip to content

Commit

Permalink
Fixed bugs in socials search
Browse files Browse the repository at this point in the history
Signed-off-by: George Araújo <[email protected]>
  • Loading branch information
george-gca committed Dec 12, 2024
1 parent e9401d2 commit 158caf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/scripts/search.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
{%- capture social_url %}"https://discord.com/users/{{ social[1] }}"{% endcapture -%}
{%- when "email" -%}
{%- assign social_id = "social-email" -%}
{%- assign social_title = "{{ site.data[site.active_lang].strings.search.email }}" -%}
{%- assign social_title = site.data[site.active_lang].strings.search.email -%}
{%- capture social_url %}"mailto:{{ social[1] | encode_email }}"{% endcapture -%}
{%- when "facebook_id" -%}
{%- assign social_id = "social-facebook" -%}
Expand Down Expand Up @@ -364,7 +364,7 @@
{%- else -%}
{%- assign social_id = "social-" | append: social[0] -%}
{%- assign social_title = social[0] | capitalize -%}
{%- assign social_url = social[1].url -%}
{%- capture social_url %}"{{ social[1].url }}"{% endcapture -%}
{%- endcase -%}
{
id: '{{ social_id }}',
Expand Down

0 comments on commit 158caf0

Please sign in to comment.