feat: added opensearch

This commit is contained in:
wonderlandpark 2021-05-11 22:45:18 +09:00
parent ec70ccae6c
commit a961846c65
2 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class MyDocument extends Document {
rel='stylesheet'
href='//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/solarized-dark.min.css'
/>
<link rel='search' type='application/opensearchdescription+xml' title='한국 디스코드봇 리스트' href='/opensearch.xml' />
<script src='//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js'></script>
<script
data-ad-client='ca-pub-4856582423981759'

7
public/opensearch.xml Normal file
View File

@ -0,0 +1,7 @@
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>한국 디스코드봇 리스트</ShortName>
<Description>국내 디스코드봇을 한 곳에서.</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://beta.koreanbots.dev/logo.png</Image>
<Url type="text/html" method="get" template="https://beta.koreanbots.dev/search?q={searchTerms}"/>
</OpenSearchDescription>