Skip to content

Commit

Permalink
fix page name & update logo
Browse files Browse the repository at this point in the history
  • Loading branch information
staugur committed Jan 20, 2021
1 parent d9daec1 commit c76559b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- master
- dev
- test
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down
Binary file modified src/static/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/templates/control/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<label class="layui-form-label">站点名称</label>
<div class="layui-input-block">
<input type="text" name="title_name" value="{{ g.site.title_name }}"
placeholder="站点名称,统一标题后缀,默认picbed" autocomplete="off"
placeholder="站点名称,统一标题后缀,默认sapic" autocomplete="off"
class="layui-input">
</div>
</div>
Expand Down Expand Up @@ -88,7 +88,7 @@
<label class="layui-form-label">登录欢迎文案</label>
<div class="layui-input-block">
<input type="text" name="login_title" value="{{ g.site.login_title }}"
placeholder="登录页面的标题文字,默认是:登录你的Picbed" autocomplete="off"
placeholder="登录页面的标题文字,默认是:登录你的Sapic" autocomplete="off"
class="layui-input">
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/public/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{% block content %}
<div class="login-area">
<h3 class="title">{{ g.site.login_title or '登录你的Picbed' }}</h3>
<h3 class="title">{{ g.site.login_title or '登录你的Sapic' }}</h3>
<form class="layui-form" action="">
<div class="layui-form-item">
<div class="layui-input-block">
Expand Down
12 changes: 6 additions & 6 deletions src/templates/public/userscript.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Upload to picbed <{{ request.host }}@{{ g.userinfo.username }}>
// @version 0.2.1
// @description 上传图片到picbed
// @version 0.2.2
// @description 上传图片到 picbed/sapic
// @author staugur
// @namespace https://www.saintic.com/
// @include http://*
Expand All @@ -10,9 +10,9 @@
// @exclude https://*.aliyun.com/*
// @grant GM_info
// @created 2020-05-27
// @modified 2020-08-18
// @github https://github.com/staugur/picbed
// @supportURL https://github.com/staugur/picbed/issues/
// @modified 2021-01-20
// @github https://github.com/sapicd/sapic
// @supportURL https://github.com/sapicd/sapic/issues/
// @updateURL {{ url_for('front.userscript', LinkToken=g.userinfo.ucfg_userscript_token, _external=True) }}
// @icon {{ g.site.favicon or url_for('static', filename='img/favicon.png', _external=True) }}
// ==/UserScript==
Expand Down Expand Up @@ -182,4 +182,4 @@
}
}
}, true);
})();
})();
2 changes: 1 addition & 1 deletion src/templates/ref/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
{% endif %}
Copyright &copy; <script>document.write(new Date().getFullYear());</script>
{{ g.site.footer }} All rights reserved.
Powered by <a href="https://github.com/staugur/picbed" target="_blank">picbed</a>
Powered by <a href="https://github.com/sapicd/sapic" target="_blank">sapic</a>
2 changes: 1 addition & 1 deletion src/templates/ref/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="author" content="SaintIC">
<meta name="keywords" content="{{ g.site.seo_keywords or 'SaintIC,picbed,图床' }}">
<meta name="keywords" content="{{ g.site.seo_keywords or 'SaintIC,picbed,sapic,sapicd,图床' }}">
<meta name="description" content="{{ g.site.seo_description or Doc }}">
<link rel="alternate" type="application/atom+xml" title="{{ g.userinfo.ucfg_feed_name or ('The RSS of ' + g.userinfo.username) }} - {{ g.site_name }} Feed" href="{{ url_for('front.feed') }}">
<link href="{{ g.site.favicon or url_for('static', filename='img/favicon.png') }}" rel="icon" type="image/x-icon" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/front.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def feed():
data = [dict(zip(fields, i)) for i in result if i]
xml = render_template('public/feed.xml', items=sorted(
data,
key=lambda k: int(k.get('ctime')),
key=lambda k: int(k.get('ctime', 0)),
reverse=True
)[:10])
response = make_response(xml)
Expand Down

0 comments on commit c76559b

Please sign in to comment.