Keep the public site readable after import (nbsp, highlighter, wrapping code, compact pager) and finish the admin extras already in this tree: sticky levels, preview, page cache, and live llms.txt. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
327 B
PHP
20 lines
327 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Blog\Controllers;
|
|
|
|
use App\Models\Post;
|
|
|
|
class HomeController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
$posts = blog_paginate(
|
|
Post::query()->published()->orderedForList()
|
|
);
|
|
|
|
return theme_view('index', compact('posts'));
|
|
}
|
|
}
|