mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
tada
This commit is contained in:
@@ -6,14 +6,26 @@
|
||||
<title>{{ title }} - Media Collector</title>
|
||||
<!-- Bootstrap CSS CDN -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- In the head section of app.twig -->
|
||||
{% if app_env == 'production' %}
|
||||
<link rel="stylesheet" href="{{ base_url() }}/build/assets/app-{{ manifest['resources/js/app.js'].file|replace({'.js': '.css'}) }}">
|
||||
{% if manifest['resources/css/app.css'] is defined %}
|
||||
<link rel="stylesheet" href="{{ base_url() }}/build/assets/{{ manifest['resources/css/app.css'].file }}">
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ base_url() }}/app.css">
|
||||
<link rel="stylesheet" href="{{ base_url() }}/public/css/app.css">
|
||||
{% endif %}
|
||||
<!-- Favicon -->
|
||||
<link rel="icon" type="image/svg+xml" href="{{ base_url() }}/favicon.svg">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<!-- In the head section -->
|
||||
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<!-- Before closing </head> tag -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
{% if app_env == 'production' and manifest['resources/js/app.js'] is defined %}
|
||||
<script type="module" src="{{ base_url() }}/build/assets/{{ manifest['resources/js/app.js'].file }}"></script>
|
||||
{% else %}
|
||||
<script type="module" src="{{ base_url() }}/resources/js/app.js"></script>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body class="bg-light">
|
||||
<!-- Navigation -->
|
||||
@@ -88,15 +100,5 @@
|
||||
<main class="container-fluid py-4">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
|
||||
<!-- Scripts -->
|
||||
{% if app_env == 'production' %}
|
||||
<script type="module" src="{{ base_url() }}/build/assets/{{ manifest['resources/js/app.js'].file }}"></script>
|
||||
{% else %}
|
||||
<script type="module" src="{{ base_url() }}/resources/js/app.js"></script>
|
||||
{% endif %}
|
||||
|
||||
<!-- Bootstrap JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user