From 38f59ba682df7942661d0907e68d38eab52e2d74 Mon Sep 17 00:00:00 2001 From: cyclotruc Date: Wed, 25 Dec 2024 09:37:38 +0000 Subject: [PATCH] Improve social preview handling --- src/main.py | 4 ---- src/static/apple-touch-icon.png | Bin 0 -> 3273 bytes src/static/favicon-64.png | Bin 0 -> 1019 bytes src/static/favicon.svg | 1 + src/templates/base.jinja | 21 +++++++++++++++++---- 5 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 src/static/apple-touch-icon.png create mode 100644 src/static/favicon-64.png create mode 100644 src/static/favicon.svg diff --git a/src/main.py b/src/main.py index 02b42ff..3fe9423 100644 --- a/src/main.py +++ b/src/main.py @@ -57,10 +57,6 @@ async def api_docs(request: Request): "api.jinja", {"request": request} ) -@app.get('/favicon.ico') -async def favicon(): - return FileResponse('static/favicon.ico') - @app.get("/robots.txt") async def robots(): return FileResponse('static/robots.txt') diff --git a/src/static/apple-touch-icon.png b/src/static/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..8be4d7c2bb3744766311f61567a3225743116801 GIT binary patch literal 3273 zcmeHK`9IWO7yk^J8M0<6CRBFG5RrYdZ`r;@WFjSFnX-(%VTR&sODTzA%uupRjmbJv zS-!GNmK2dMVJz9kl0lx)_xa&@etG_a=k>bhp4UD1ea=1i-gED{H_5@yf{#an2LJ#* zD@#)+HmB?p6wIy-y1}Q}j62ZMH3R?-3hxsL$jLnd0KCywrspn1E*06j#)6`o#H<2f-ASL-EvBu*mepmLjHt)N+4vPE7; zu%`ogKuxulOS=cJ*^YqW;WO*LZ6(=ri?g%D7?03z(LKA@O3P>^G3#X`Rb^vkV8!Hu z|0>Fx1H5n4fIon)0{>C)YY^k+_PAp+0|gue-2p+7Gg`IM2+lZfmq}=_oBf0i*D$ft zTVm*gLZ7B_UL+sai$uiGL3%XE-MCoexjCQ=4QYz;_{`^dmfVxt_Fh-eXA`Dk4@W9_ zOW(@OBv9q1geFy)6?L~qr=R-!ZnnC3c)*IoL1(iZhMKP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G<2}&o(mHoj#hBk8Q?8`%vo0xX-?Y=)Auv+@m2yfc{YZHBt?sFL zEd^xCnDZB~xAd-{j(ih~H&uIGS;41l;o+=5_CiYbJB-@!xJTXB*sDYEe;IASPOn6$AxpbWlMm-36LPW+sKEwG|yiL5BnV;b!Hwmfx6ZXUTQby=KSV zc|Z8V&hPi$?E8Iq^M3E`GDOUnF>}yX5K%o5wGt6Lq*@}1pl)C*J(#q$8i+_MH-LJ6 zFuV63MZ?Ed=sC2LI9O}HE3$%6K|}#^0x17I)$=Zh{wtyYWv?TQ0nFapO5PC=zo@%}a< zN>&^IgAv%5nJxHLDiyyUiB%i`gAv%G+a^M2A)*~u}u>Zja3u?gAw@B zY(mWZSh3wlA{y+I0LXs5@F@V}Cr@_}V;fucq+;_vjx^nBDD*)gFYI7NYUZyGSrbptp zEC9~ke1M5lXX38Du|ur#87IWfUaPX%H!UL7U2+6Kt1JLg z({ug;xLDdDR#1Ffh;2wsx7k;%(I7OuztHAlS*_q3G-No!A_fS)BPUB70bue<0CN{5 zz+bJ#_I(FYR`*_L9~-~g82~@M5UlU6C00+$SBmjZo>8Im*^GL z8zmL>jsW=P5deA)mYVIVo_zZC-)rlb9RQj=20-7%b@h*@J&|$^dX{i z);GQN3O3bMTx!`!{tOWXksB<@yqbCo0KWF?$jvs|ivWxwi42`p1-YxnKL8{%FaX46 z0F?X)nD{TK|6uBN0QfPv;};;iUYgpKb=YGsP1&3Lj?6>i_t%kxwzM1U?7C6{No>o_ pls)<4WLIi6k4f_6nK2{ZvOhd-6ye>U5&-}J002ovPDHLkV1g6!!K(lO literal 0 HcmV?d00001 diff --git a/src/static/favicon.svg b/src/static/favicon.svg new file mode 100644 index 0000000..f9b0ae4 --- /dev/null +++ b/src/static/favicon.svg @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/src/templates/base.jinja b/src/templates/base.jinja index 9eab756..3ef8bd7 100644 --- a/src/templates/base.jinja +++ b/src/templates/base.jinja @@ -9,13 +9,26 @@ + + + + + + + + + + + + + - - - + + + - + {% block title %}Git ingest{% endblock %}