diff --git a/docs/_templates/components/navLink.blade.php b/docs/_templates/components/navLink.blade.php
index 99a2f4a79..ebdd5a1dd 100644
--- a/docs/_templates/components/navLink.blade.php
+++ b/docs/_templates/components/navLink.blade.php
@@ -2,10 +2,13 @@
'branded' => false,
'url' => '#',
'label' => '',
+ 'mobileNav' => false
])
!$mobileNav,
+ 'block' => $mobileNav,
'hover:text-link' => !$branded,
'text-link hover:text-primary' => $branded
]) href="{{ $url }}">{{ $label }}
diff --git a/docs/_templates/components/sidebar.blade.php b/docs/_templates/components/sidebar.blade.php
index a47e58411..1666e7ffc 100644
--- a/docs/_templates/components/sidebar.blade.php
+++ b/docs/_templates/components/sidebar.blade.php
@@ -24,20 +24,17 @@ class="nav-close hover:opacity-60 h-18 w-18 absolute right-20"
-
- @foreach ($tree as $key => $item)
- @unless($key === '')
- -
- {{ $item['title'] }}
-
- @endunless
- @endforeach
- -
-
- {{ $tree[$currentSegment]['title'] ?? '' }}
-
+
+
+
+
+
+ @if (!empty($tree[$currentSegment]['items'] ?? []))
+ -
+
+ {{ $tree[$currentSegment]['title'] ?? '' }}
+
- @if (!empty($tree[$currentSegment]['items'] ?? []))
@endforeach
- @endif
-
+
+ @endif
+
+
+
+
diff --git a/docs/_templates/components/sidebarSimple.blade.php b/docs/_templates/components/sidebarSimple.blade.php
new file mode 100644
index 000000000..effc98c93
--- /dev/null
+++ b/docs/_templates/components/sidebarSimple.blade.php
@@ -0,0 +1,35 @@
+
diff --git a/docs/_templates/layout.blade.php b/docs/_templates/layout.blade.php
index 9cecec007..b01576d12 100644
--- a/docs/_templates/layout.blade.php
+++ b/docs/_templates/layout.blade.php
@@ -84,6 +84,7 @@ class="overflow-x-hidden page--{{ Str::slug(Str::replace(['/', '.html'], ['-', '
{!! $content !!}
+
@elseif ($currentSegment === 'blog' && strpos($url, 'index.html'))
{{-- blog index --}}
@@ -91,6 +92,7 @@ class="overflow-x-hidden page--{{ Str::slug(Str::replace(['/', '.html'], ['-', '
{!! $content !!}
+
@elseif ($currentSegment === 'docs' || $currentSegment === 'guides')
@@ -121,12 +123,13 @@ class="overflow-x-hidden page--{{ Str::slug(Str::replace(['/', '.html'], ['-', '
@endif
- @elseif (strpos($url, 'index.html'))
+ @elseif (strpos($url, 'index.html') || strpos($url, 'welcome.html'))
{{-- home --}}
{{$title}}
{!! $content !!}
+
@elseif ($currentSegment === 'blog')
{{-- blog details --}}
@@ -135,12 +138,14 @@ class="overflow-x-hidden page--{{ Str::slug(Str::replace(['/', '.html'], ['-', '
{!! $content !!}
+
@else
{{-- capture for any other page type --}}
{{$title}}
{!! $content !!}
+
@endif
diff --git a/docs/_templates/style.css b/docs/_templates/style.css
index aaa32d810..ee8605747 100644
--- a/docs/_templates/style.css
+++ b/docs/_templates/style.css
@@ -39,18 +39,14 @@
margin-left: 0 !important;
z-index: 11;
height: 100%;
- padding-top: 30px;
+ padding-top: 28px;
padding-left: 40px;
min-width: 300px;
width: 40%;
- padding-bottom: 60px;
+ padding-bottom: 28px;
transition: all 0.4s;
}
-.isMobile .sidebar > ul {
- padding-bottom: 60px;
-}
-
.isMobile.openNav .sidebar {
left: -10px;
}