diff --git a/app.py b/app.py index e01ae86..79b54dc 100644 --- a/app.py +++ b/app.py @@ -24,6 +24,7 @@ DEFAULT_DATA = { "subtitle2": "", "footer_label": "", "footer_href": "", + "profile_image": "", "sections": [], } } @@ -119,6 +120,7 @@ def edit_header(page_key): page["subtitle2"] = request.form.get("subtitle2", page.get("subtitle2", "")).strip() 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() save_data(data) return redirect(url_for("admin_dashboard")) @@ -137,6 +139,7 @@ def add_page(): "subtitle2": "", "footer_label": "", "footer_href": "", + "profile_image": "", "sections": [], } save_data(data) diff --git a/data/links.json b/data/links.json index 8c1bd96..ab1d8a0 100644 --- a/data/links.json +++ b/data/links.json @@ -5,6 +5,7 @@ "subtitle2": "Here are all my important links for you!", "footer_label": "Cinnamon Version", "footer_href": "honey.html", + "profile_image": "https://c.tenor.com/rfib5QqA0ncAAAAd/tenor.gif", "sections": [ { "id": "s_important", @@ -96,6 +97,7 @@ "subtitle2": "Some Stuff", "footer_label": "Honey Version", "footer_href": "index.html", + "profile_image": "https://c.tenor.com/rfib5QqA0ncAAAAd/tenor.gif", "sections": [ { "id": "s_pangolin", diff --git a/templates/admin.html b/templates/admin.html index a8efbb9..b952265 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -137,6 +137,10 @@ +
+ {% if page.profile_image %}{{ page.subtitle }}
{% endif %} {% if page.subtitle2 %}{{ page.subtitle2 }}
{% endif %}