Load favicon from a favicon.png file if it exists
Some checks failed
Laravel Pint / Laravel Pint (pull_request) Has been cancelled
PHP Unit / PHPUnit test suite (pull_request) Has been cancelled

This means different people will be able to use their own avatar/favicon
This commit is contained in:
Jonny Barnes 2024-08-23 18:55:08 +01:00
parent 9abe4a6110
commit 37a8e4bba8
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
8 changed files with 4 additions and 22 deletions

View file

@ -19,7 +19,9 @@
<link rel="token_endpoint" href="{{ route('indieauth.token') }}">
<link rel="micropub" href="{{ route('micropub-endpoint') }}">
<link rel="webmention" href="{{ config('app.url') }}/webmention">
<link rel="shortcut icon" href="{{ config('app.url') }}/assets/img/memoji-orange-bg-small-fs8.png">
@if (File::exists(public_path('assets/img/favicon.png')))
<link rel="icon" href="{{ config('app.url') }}/assets/img/favicon.png">
@endif
@if (File::exists(public_path('gpg.key')))
<link rel="pgpkey" href="{{ config('app.url')}}/gpg.key">
@endif