diff --git a/assets/static/opensearch.xml b/assets/static/opensearch.xml new file mode 100644 index 00000000..48909d2f --- /dev/null +++ b/assets/static/opensearch.xml @@ -0,0 +1,10 @@ + + Derpibooru + Derpibooru image search + UTF-8 + https://derpibooru.org/favicon.ico + https://derpibooru.org/favicon.svg + + + + diff --git a/lib/philomena_web.ex b/lib/philomena_web.ex index a4bccdf2..fd16f8ce 100644 --- a/lib/philomena_web.ex +++ b/lib/philomena_web.ex @@ -17,7 +17,7 @@ defmodule PhilomenaWeb do and import those modules here. """ - def static_paths, do: ~w(assets favicon.ico favicon.svg robots.txt) + def static_paths, do: ~w(assets favicon.ico favicon.svg robots.txt opensearch.xml) def controller do quote do diff --git a/lib/philomena_web/templates/layout/app.html.slime b/lib/philomena_web/templates/layout/app.html.slime index 29013972..d7842369 100644 --- a/lib/philomena_web/templates/layout/app.html.slime +++ b/lib/philomena_web/templates/layout/app.html.slime @@ -15,6 +15,7 @@ html lang="en" link rel="stylesheet" href=dark_stylesheet_path() media="(prefers-color-scheme: dark)" link rel="icon" href=~p"/favicon.ico" type="image/x-icon" link rel="icon" href=~p"/favicon.svg" type="image/svg+xml" + link rel="search" type="application/opensearchdescription+xml" title="Derpibooru" href=~p"/opensearch.xml" meta name="generator" content="philomena" meta name="theme-color" content="#618fc3" meta name="format-detection" content="telephone=no"