opensearch
This commit is contained in:
parent
17b816b949
commit
6c674f2d68
4 changed files with 11 additions and 3 deletions
8
common/static/opensearch.xml
Normal file
8
common/static/opensearch.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<ShortName>NeoDB</ShortName>
|
||||
<Description>输入关键字或站外条目链接,搜索NeoDB书影音游戏</Description>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
<Image type="image/jpeg" width="64" height="64">https://neodb.social/static/img/logo-square.jpg</Image>
|
||||
<Url type="text/html" template="https://neodb.social/search/?q={searchTerms}"/>
|
||||
</OpenSearchDescription>
|
|
@ -40,6 +40,7 @@
|
|||
<link rel="stylesheet" href="{% static 'lib/css/rating-star.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/boofilsic.min.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'lib/css/neo.css' %}">
|
||||
<link rel="search"type="application/opensearchdescription+xml" title="NeoDB" href="{% static 'opensearch.xml' %}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -11,18 +11,16 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{% if user == request.user %}
|
||||
<title>{{ site_name }} - {% trans '我的个人主页' %}</title>
|
||||
{% else %}
|
||||
<title>{{ site_name }} - {{user.display_name}}</title>
|
||||
{% endif %}
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="{% static 'js/mastodon.js' %}"></script>
|
||||
<script src="{% static 'js/home.js' %}"></script>
|
||||
<link rel="stylesheet" href="{% static 'css/boofilsic.min.css' %}">
|
||||
|
||||
<link rel="search"type="application/opensearchdescription+xml" title="NeoDB" href="{% static 'opensearch.xml' %}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.1/dist/js.cookie.min.js"></script>
|
||||
<title>{{ site_name }} - {% trans '登录' %}</title>
|
||||
<link rel="search"type="application/opensearchdescription+xml" title="NeoDB" href="{% static 'opensearch.xml' %}">
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
|
|
Loading…
Add table
Reference in a new issue