@extends('nexus.layouts.app') @section('page-title', $mode === 'new' ? 'New Post' : 'Edit: ' . $slug) @section('sys-mode', 'BLOG') @php $fm = old() ?: $frontmatter; $get = fn($k, $d = '') => old($k, $fm[$k] ?? $d); $kwRaw = $get('keywords', []); $keywordsStr = is_array($kwRaw) ? implode(', ', $kwRaw) : $kwRaw; $field = "width: 100%; padding: 9px 11px; background: #0a0a0a; border: 1px solid #2a2a2a; color: #eaeaea; font-family: 'IBM Plex Mono', monospace; font-size: 12px; border-radius: 2px; box-sizing: border-box; outline: none; transition: border-color 0.15s;"; $label = "display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #7a7a7a; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;"; $panel = "background: #111; border-top: 1px solid #2a2a2a; padding: 20px 24px; margin-bottom: 16px;"; $sectionH = "font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #7a7a7a; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px;"; $req = '*'; @endphp @section('head') @endsection @section('content') @if(session('status'))
{{ session('status') }}
@endif @if($errors->any())
FIX ERRORS:
@endif
@csrf
{{-- FILE TREE --}}
Posts +
@foreach($allPosts as $p)
{{ \Illuminate\Support\Str::limit($p['title'], 48) }}
{{ $p['category'] ?: '—' }}
@endforeach @if(empty($allPosts))
No posts yet
@endif

Content

lowercase, hyphens only · renaming moves the file
0 words · 0 min read Ln 1, Col 1

Publish

Writes resources/blog/posts/{slug}.md and clears view cache.

Metadata

SEO

Images

leave blank to auto-use category blueprint
@endsection