Add favicon, configurable in me.yml, with default
This commit is contained in:
parent
c9bc5e29af
commit
32964a413b
4 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,7 @@ with open(os.path.join(KEY_DIR, "me.yml")) as f:
|
||||||
ID = BASE_URL
|
ID = BASE_URL
|
||||||
SUMMARY = conf["summary"]
|
SUMMARY = conf["summary"]
|
||||||
ICON_URL = conf["icon_url"]
|
ICON_URL = conf["icon_url"]
|
||||||
|
FAVICON_URL = conf.get("favicon_url", "/static/favicon.png")
|
||||||
PASS = conf["pass"]
|
PASS = conf["pass"]
|
||||||
|
|
||||||
PROFILE_METADATA = conf.get("profile_metadata", {})
|
PROFILE_METADATA = conf.get("profile_metadata", {})
|
||||||
|
|
|
@ -4,6 +4,7 @@ domain: 'your-domain.tld'
|
||||||
https: true
|
https: true
|
||||||
summary: 'your summary'
|
summary: 'your summary'
|
||||||
icon_url: 'https://you-avatar-url'
|
icon_url: 'https://you-avatar-url'
|
||||||
|
#favicon_url: '/static/favicon.png'
|
||||||
#pass: '<bcrypt password hash>'
|
#pass: '<bcrypt password hash>'
|
||||||
#profile_metadata:
|
#profile_metadata:
|
||||||
# name1: 'value'
|
# name1: 'value'
|
||||||
|
|
BIN
static/favicon.png
Normal file
BIN
static/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 877 B |
|
@ -5,6 +5,7 @@
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>{% block title %}{{ config.NAME }}'s microblog{% endblock %}</title>
|
<title>{% block title %}{{ config.NAME }}'s microblog{% endblock %}</title>
|
||||||
|
<link rel="icon" type="image/png" href="{{ config.FAVICON_URL }}">
|
||||||
<link rel="stylesheet" href="/static/pure.css">
|
<link rel="stylesheet" href="/static/pure.css">
|
||||||
<link rel="authorization_endpoint" href="{{ config.ID }}/indieauth">
|
<link rel="authorization_endpoint" href="{{ config.ID }}/indieauth">
|
||||||
<link rel="token_endpoint" href="{{ config.ID }}/token">
|
<link rel="token_endpoint" href="{{ config.ID }}/token">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue