diff --git a/config.py b/config.py index 2d278dd..01c9651 100644 --- a/config.py +++ b/config.py @@ -67,6 +67,7 @@ with open(os.path.join(KEY_DIR, "me.yml")) as f: ID = BASE_URL SUMMARY = conf["summary"] ICON_URL = conf["icon_url"] + FAVICON_URL = conf.get("favicon_url", "/static/favicon.png") PASS = conf["pass"] PROFILE_METADATA = conf.get("profile_metadata", {}) diff --git a/config/me.sample.yml b/config/me.sample.yml index 4b5112f..00901b9 100644 --- a/config/me.sample.yml +++ b/config/me.sample.yml @@ -4,6 +4,7 @@ domain: 'your-domain.tld' https: true summary: 'your summary' icon_url: 'https://you-avatar-url' +#favicon_url: '/static/favicon.png' #pass: '' #profile_metadata: # name1: 'value' diff --git a/static/favicon.png b/static/favicon.png new file mode 100644 index 0000000..644d6e8 Binary files /dev/null and b/static/favicon.png differ diff --git a/templates/layout.html b/templates/layout.html index 7f386c6..3b084ee 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -5,6 +5,7 @@ {% block title %}{{ config.NAME }}'s microblog{% endblock %} +