Replaced Moment with Carbon #84
2 changed files with 7 additions and 4 deletions
|
@ -90,7 +90,7 @@ class SortingService
|
|||
if (isset($page['tags'])) {
|
||||
if (strpos($page['tags'], $tag) !== false) {
|
||||
array_push($tagged, [
|
||||
'title' => $page['title'],
|
||||
'title' => urldecode($page['title']),
|
||||
'slug' => $page['slug'],
|
||||
'path' => $page['path'],
|
||||
'feature' => $page['feature'],
|
||||
|
|
|
@ -14,14 +14,17 @@
|
|||
<div role="archive-month">
|
||||
<h3>{{ $data['full_month'] }}</h3>
|
||||
@foreach($data['pages'] as $page)
|
||||
@php
|
||||
$title = urldecode($page['title']);
|
||||
@endphp
|
||||
@if(isset($dynamicRender))
|
||||
@if($dynamicRender == 'true')
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
||||
@else
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $page['title'] }}</a><br/>
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $title }}</a><br/>
|
||||
@endif
|
||||
@else
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $page['title'] }}</a><br/>
|
||||
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue