Skip to content

Commit

Permalink
Add title tags
Browse files Browse the repository at this point in the history
  • Loading branch information
amenk committed Sep 29, 2024
1 parent 7873acf commit 0d03beb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions resources/views/layouts/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('pageTitle', config('app.name'))</title>
@vite('resources/css/app.css')
@vite('resources/js/app.js')
</head>
Expand Down
9 changes: 4 additions & 5 deletions resources/views/page/area.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@section('pageTitle')
Places in {{ $area->getFullName() }}
@endsection

@extends('layouts.index')
<h1></h1>

<header>
<h1 class="text-3xl px-5 mt-10 md:flex text-center items-center max-w-5xl mx-auto">
Expand All @@ -14,10 +17,6 @@
@endif
</header>





<section>
<div class="px-5 py-2 max-w-5xl mx-auto">
<div class="grid md:grid-cols-2 lg:grid-cols-3 grid-flow-row auto-rows-fr mt-6 w-full">
Expand Down
4 changes: 4 additions & 0 deletions resources/views/page/overview.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@extends('layouts.index')

@section('pageTitle')
{{ ucfirst(Fallback::resolve($type->plural)) }} in {{ Fallback::resolve($area->names) }}
@endsection

@section('content')
<header>
<h1 class="text-3xl px-5 mt-10 md:flex text-center items-center max-w-5xl mx-auto">
Expand Down
4 changes: 4 additions & 0 deletions resources/views/page/place.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@extends('layouts.index')

@section('pageTitle')
{{ Fallback::field($main->tags, 'name') }} - {{ Fallback::resolve($type->name) }} in {{ $branches[0]->area->getFullName() }}
@endsection

@section('content')
<style>
/* Animate the fade out effect */
Expand Down

0 comments on commit 0d03beb

Please sign in to comment.