diff --git a/app.py b/app.py index 79b54dc..b1bc590 100644 --- a/app.py +++ b/app.py @@ -25,6 +25,7 @@ DEFAULT_DATA = { "footer_label": "", "footer_href": "", "profile_image": "", + "favicon": "🍯", "sections": [], } } @@ -121,6 +122,7 @@ def edit_header(page_key): page["footer_label"] = request.form.get("footer_label", page.get("footer_label", "")).strip() page["footer_href"] = request.form.get("footer_href", page.get("footer_href", "")).strip() page["profile_image"] = request.form.get("profile_image", page.get("profile_image", "")).strip() + page["favicon"] = request.form.get("favicon", page.get("favicon", "")).strip() save_data(data) return redirect(url_for("admin_dashboard")) @@ -140,6 +142,7 @@ def add_page(): "footer_label": "", "footer_href": "", "profile_image": "", + "favicon": "🍯", "sections": [], } save_data(data) diff --git a/data/links.json b/data/links.json index ab1d8a0..7b6e461 100644 --- a/data/links.json +++ b/data/links.json @@ -89,7 +89,8 @@ } ] } - ] + ], + "favicon": "🍯" }, "honey": { "title": "My Links", @@ -181,6 +182,7 @@ } ] } - ] + ], + "favicon": "🍯" } } \ No newline at end of file diff --git a/templates/admin.html b/templates/admin.html index b952265..c2b7276 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -141,6 +141,10 @@ +
+ + +
diff --git a/templates/page.html b/templates/page.html index 5513ef8..63bda69 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,7 +4,7 @@ Honey | Links - +