mas mejoras generales al ui, me gusta hacer eso
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('content')
|
||||
<h1>Admin Panel</h1>
|
||||
@endsection
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
@extends('base')
|
||||
|
||||
@section('content')
|
||||
<h1>Archivo</h1>
|
||||
<ul>
|
||||
@foreach($posts as $post)
|
||||
<li>
|
||||
<a href="{{ route('blog.show', ['post' => $post->id]) }}">{{$post->title}}</a> <span>({{$post->created_at->format('Y-m-d')}})</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<article>
|
||||
<h1>Archivo</h1>
|
||||
<ul>
|
||||
@foreach($posts as $post)
|
||||
<li>
|
||||
<a href="{{ route('blog.show', ['post' => $post->id]) }}">{{$post->title}}</a>
|
||||
<time datetime="{{ $post->created_at->toDateString() }}"> {{ $post->created_at->toFormattedDateString() }} </time>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
@foreach($posts as $post)
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{$post->title}}</h1>
|
||||
<h1><a class="post-title" href="{{ route('blog.show', ['post' => $post->id])}}">{{$post->title}}</a></h1>
|
||||
<time datetime="{{ $post->created_at->toDateString() }}"> {{ $post->created_at->toFormattedDateString() }} </time>
|
||||
</header>
|
||||
{!! $parse->text($post->md) !!}
|
||||
</article>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
@section('content')
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{$post->title}}</h1>
|
||||
<h1 class="post-title">{{$post->title}}</h1>
|
||||
</header>
|
||||
{!! $parse->text($post->md) !!}
|
||||
</article>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@extends('base')
|
||||
|
||||
@section('content')
|
||||
<h1>Home</h1>
|
||||
@endsection
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
@section('content')
|
||||
<article>
|
||||
<header>
|
||||
<h1>Now</h1>
|
||||
<h1 class="post-title">Now</h1>
|
||||
</header>
|
||||
{!! $parse->text($now->md) !!}
|
||||
</article>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
@foreach($projects as $project)
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{ $project->title }}</h1>
|
||||
<h1 class="post-title">{{ $project->title }}</h1>
|
||||
</header>
|
||||
|
||||
{!! $parse->text($project->md) !!}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
@foreach($setups as $setup)
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{$setup->title}}</h1>
|
||||
<h1 class="post-title">{{$setup->title}}</h1>
|
||||
</header>
|
||||
{!! $parse->text($setup->md) !!}
|
||||
</article>
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
@extends('base')
|
||||
|
||||
@php
|
||||
$parse = new Parsedown();
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{$setup->title}}</h1>
|
||||
</header>
|
||||
{!! $parse->text($setup->md) !!}
|
||||
</article>
|
||||
<hr/>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user