small bug where links in the archive and tag templates where being rendered as url encoded strings, so that needed to be decoded so it displays as normal text
36 lines
1.5 KiB
PHP
36 lines
1.5 KiB
PHP
@extends('fipamo-default-v2.base')
|
|
|
|
@section('title', $title)
|
|
|
|
@section('main-content')
|
|
<article>
|
|
<h1>{{ $title }}</h1>
|
|
|
|
<div role="archives">
|
|
@foreach($archive as $item)
|
|
<div role="archive-$item">
|
|
<h2>{{ $item['year'] }}</h2>
|
|
@foreach($item['year_data'] as $data)
|
|
<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'] }}">{{ $title }}</a><br/>
|
|
@else
|
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'].".html" }}">{{ $title }}</a><br/>
|
|
@endif
|
|
@else
|
|
<a href="{{ "/".$item['year']."/".$data['month']."/".$page['slug'] }}">{{ $title }}</a><br/>
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</article>
|
|
@endsection
|