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 (isset($page['tags'])) {
|
||||||
if (strpos($page['tags'], $tag) !== false) {
|
if (strpos($page['tags'], $tag) !== false) {
|
||||||
array_push($tagged, [
|
array_push($tagged, [
|
||||||
'title' => $page['title'],
|
'title' => urldecode($page['title']),
|
||||||
'slug' => $page['slug'],
|
'slug' => $page['slug'],
|
||||||
'path' => $page['path'],
|
'path' => $page['path'],
|
||||||
'feature' => $page['feature'],
|
'feature' => $page['feature'],
|
||||||
|
|
|
@ -14,14 +14,17 @@
|
||||||
<div role="archive-month">
|
<div role="archive-month">
|
||||||
<h3>{{ $data['full_month'] }}</h3>
|
<h3>{{ $data['full_month'] }}</h3>
|
||||||
@foreach($data['pages'] as $page)
|
@foreach($data['pages'] as $page)
|
||||||
|
@php
|
||||||
|
$title = urldecode($page['title']);
|
||||||
|
@endphp
|
||||||
@if(isset($dynamicRender))
|
@if(isset($dynamicRender))
|
||||||
@if($dynamicRender == 'true')
|
@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
|
@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
|
@endif
|
||||||
@else
|
@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
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue