Skip to content

Commit

Permalink
added icon and fixed search for č, š, ž
Browse files Browse the repository at this point in the history
  • Loading branch information
cecepasinechka committed Mar 8, 2024
1 parent a6148f4 commit 44b2b8c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{% endif %}

<!-- Favicon -->
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="{{ site.baseurl }}/flavicon.ico" type="image/x-icon" />

<!-- Android Lolipop Theme Color -->
<meta name="theme-color" content="#141414">
Expand Down
8 changes: 4 additions & 4 deletions _layouts/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
{% assign posts = site.posts | where_exp:"post", "post.is_generated != true" %}
{% for post in posts %}
{
"title": "{{ post.title | escape }}",
"keywords": "{{ post.keywords | join: ', ' }}",
"author": "{% for author in post.author %}{{ author }}{% unless forloop.last %}, {% endunless %}{% endfor %}",
"title": "{{ post.title | escape | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}",
"keywords": "{{ post.keywords | join: ', ' | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}",
"author": "{% for author in post.author %}{{ author | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}{% unless forloop.last %}, {% endunless %}{% endfor %}",
"url": "{{ site.baseurl }}{{ post.url }}",
"description": "{{ post.description | strip_newlines | lstrip | replace: '"', '' }}"
"description": "{{ post.description | strip_newlines | lstrip | replace: '"', '' | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z"}}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]
61 changes: 60 additions & 1 deletion assets/js/scripts.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed favicon.ico
Binary file not shown.
Binary file added flavicon.ico
Binary file not shown.

0 comments on commit 44b2b8c

Please sign in to comment.