fipamo/content/themes/fipamo-default-v2/archive.blade.php
ro 9c432db209
fix for link encoding issue
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
2024-10-29 12:05:50 -06:00

37 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