feat: implement dynamic favicon management with site settings support across all layouts

This commit is contained in:
Ümit Tunç
2026-05-20 06:13:19 +03:00
parent 4168e1c8d4
commit 51ae8fdd9c
5 changed files with 4 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 636 KiB

+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="description" content="@yield('meta_description', 'Trunçgil Teknoloji')">
<meta name="author" content="Trunçgil Teknoloji">
<title>@yield('title', 'Trunçgil Teknoloji')</title>
<link rel="shortcut icon" href="{{ asset('html/assets/img/favicon.png') }}">
<link rel="shortcut icon" href="{{ ($favicon_path = setting('site_favicon')) ? (str_starts_with($favicon_path, 'http') ? $favicon_path : asset($favicon_path)) : asset('assets/img/favicon.png') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('html/assets/fonts/unicons/unicons.css') }}">
<link rel="stylesheet" href="{{ asset('html/assets/css/plugins.css') }}">
<link rel="stylesheet" href="{{ asset('html/style.css') }}">
+1 -1
View File
@@ -8,7 +8,7 @@ $favicon_path = setting('site_favicon');
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ setting('seo_meta_title') }} - {{ $meta['title'] ?? ($settings->default_meta_title ?? config('app.name')) }}</title>
<meta name="description" content="{{ $meta['description'] ?? (setting('seo_meta_description') ?? '') }}">
<link rel="icon" href="{{ asset('storage/' . $favicon_path) }}">
<link rel="icon" href="{{ $favicon_path ? (str_starts_with($favicon_path, 'http') ? $favicon_path : asset($favicon_path)) : asset('assets/img/favicon.png') }}">
<style>
<?php echo setting('custom_css') ?>
+1 -1
View File
@@ -37,7 +37,7 @@ $favicon_path = setting('site_favicon');
<meta name="twitter:image" content="{{ $seo_image }}">
@endif
<link rel="icon" href="{{ asset('storage/' . $favicon_path) }}">
<link rel="icon" href="{{ $favicon_path ? (str_starts_with($favicon_path, 'http') ? $favicon_path : asset($favicon_path)) : asset('assets/img/favicon.png') }}">
<link rel="stylesheet" href="{{ asset('html/style.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('assets/fonts/unicons/unicons.css') }}">
<link rel="stylesheet" href="{{ asset('assets/css/plugins.css') }}">
@@ -1,4 +1,4 @@
<link href="https://cdn.prod.website-files.com/67fea42b19018db93e3fe132/css/gsap-webflow-offbrand.webflow.shared.1d2cc8aa4.min.css" rel="stylesheet" type="text/css"/><script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script><link href="https://cdn.prod.website-files.com/67fea42b19018db93e3fe132/681222b3ec7ebf1b78b5aac3_favicon.jpg" rel="shortcut icon" type="image/x-icon"/><link href="https://cdn.prod.website-files.com/67fea42b19018db93e3fe132/68122359a3aa462b4e80111c_webclip.jpg" rel="apple-touch-icon"/><script>
<link href="https://cdn.prod.website-files.com/67fea42b19018db93e3fe132/css/gsap-webflow-offbrand.webflow.shared.1d2cc8aa4.min.css" rel="stylesheet" type="text/css"/><script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script><link href="{{ ($favicon_path = setting('site_favicon')) ? (str_starts_with($favicon_path, 'http') ? $favicon_path : asset($favicon_path)) : asset('assets/img/favicon.png') }}" rel="shortcut icon" type="image/png"/><link href="https://cdn.prod.website-files.com/67fea42b19018db93e3fe132/68122359a3aa462b4e80111c_webclip.jpg" rel="apple-touch-icon"/><script>
history.scrollRestoration = "manual";
</script>