base.blade.php 722 B

1234567891011121314151617181920212223242526
  1. {{-- resources/views/layouts/base.blade.php
  2. 全站 HTML 骨架。不含任何导航、页脚、布局结构。
  3. 所有子布局继承此文件。
  4. --}}
  5. <!doctype html>
  6. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
  7. <head>
  8. <meta charset="utf-8" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
  10. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  11. <title>@yield('title', 'WikiPāli · 巴利佛典百科')</title>
  12. {{-- 基础样式由子布局通过 @vite 注入 --}}
  13. @stack('styles')
  14. </head>
  15. <body class="@yield('body-class')">
  16. <div class="page">
  17. @yield('page')
  18. </div>
  19. @stack('scripts')
  20. </body>
  21. </html>