Skip to content

Commit

Permalink
Merge pull request #86 from Ajay9330/main
Browse files Browse the repository at this point in the history
Added favicons and dark mode for search
  • Loading branch information
aaronbrethorst authored Mar 18, 2024
2 parents 2048fcd + f86ee0c commit 5eb1c6b
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_layouts/default.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="<%= site.locale %>" x-data="{ themeMode: window.localStorage.getItem('mode') || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') }" :class="{'dark':themeMode=='dark','hidden':!themeMode}" class='hidden h-full' >
<html lang="<%= site.locale %>" x-data="{ themeMode: window.localStorage.getItem('mode') || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') }" :class="{'dark':themeMode=='dark','hidden':!themeMode}":data-theme=themeMode class='hidden h-full' >
<head>
<%= render "head", locals: { metadata: site.metadata, title: data.title } %>
</head>
Expand Down
5 changes: 5 additions & 0 deletions src/_partials/_head.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
</title>

<meta name="description" content="<%= metadata.description %>" />
<%# favicons %>
<link rel="apple-touch-icon" sizes="180x180" href="/images/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicons/favicon-16x16.png">
<link rel="manifest" href="/images/favicons/site.webmanifest">

<link
rel="stylesheet"
Expand Down
Binary file added src/images/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/favicons/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions src/images/favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

0 comments on commit 5eb1c6b

Please sign in to comment.