fn_b/resources/views/components/app-layout.blade.php
2026-02-12 14:53:52 +08:00

56 lines
1.9 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
@props([
'sTitle' => config('app.title').' - '.config('app.name'),
'sDesc' => config('app.desc'),
'sKeywords' => config('app.keywords'),
'sSlug' => '',
'sOgType' => 'website',
'sOgImg' => 'sites/'.config("app.site_code_short").'/siteimg.jpg',
])
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="slug" content="{{ $sSlug }}">
<meta name="robots" content="index, follow">
{{-- SEO 三杰 --}}
<title>{{ $sTitle }}</title>
<meta name="description" content="{{ $sDesc }}">
<meta name="keywords" content="{{ $sKeywords }}">
<link rel="canonical" href="{{ url()->current() }}">
{{-- 社交媒体 Meta (Open Graph) - 现在的标准配置 --}}
<meta property="og:title" content="{{ $sTitle }}">
<meta property="og:description" content="{{ $sDesc }}">
<meta property="og:type" content="{{ $sOgType }}">
<meta property="og:url" content="{{ url()->current() }}">
<meta property="og:image" content="{{ $sOgImg }}">
{{-- 声明它是 PNG并告诉浏览器它的实际尺寸 --}}
<link rel="icon" type="image/png" href="sites/{{ config('app.site_code_short') }}/icon.png" sizes="166x166">
{{-- 强行喂给苹果,虽然它推荐 180,但 166 总比没有强 --}}
<link rel="apple-touch-icon" href="sites/{{ config('app.site_code_short') }}/icon.png">
{{-- 暂时没错颜色切换 --}}
<meta name="theme-color" content="#ffffff">
@vite(['resources/css/app.css', "resources/sites/".config("app.site_code_short")."/css/app.css",'resources/js/app.js'])
@stack('styles')
</head>
<body class="home blog">
<x-nav-bar />
{{ $slot }}
<x-footer />
@stack('scripts')
</body>
</html>