M2: 主题系统(sablog经典+modern简约)+ 前台全部页面 + 老 URL 301 兼容 + markdown 双份导入
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Blog\Controllers;
|
||||
|
||||
use App\Models\Link;
|
||||
use App\Models\Post;
|
||||
|
||||
class LinkController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$links = Link::query()->where('visible', true)->orderBy('display_order')->orderBy('name')->get();
|
||||
|
||||
return theme_view('links', compact('links'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user