jonnybarnes.uk/resources/views/bookmarks/index.blade.php

35 lines
835 B
PHP

@extends('master')
@section('title')
Bookmarks «
@stop
@section('content')
<div class="h-feed">
@foreach($bookmarks as $bookmark)
<div class="h-entry">
<a class="u-bookmark-of<?php if ($bookmark->name !== null) { echo ' h-cite'; } ?>" href="{{ $bookmark->url }}">
@isset($bookmark->name)
{{ $bookmark->name }}
@endisset
@empty($bookmark->name)
{{ $bookmark->url }}
@endempty
</a> &nbsp; <a href="/bookmarks/{{ $bookmark->id }}">🔗</a>
@isset($bookmark->content)
<p>{{ $bookmark->content }}</p>
@endisset
@if($bookmark->tags_count > 0)
<ul>
@foreach($bookmark->tags as $tag)
<li><a href="/bookmarks/tagged/{{ $tag->tag }}">{{ $tag->tag }}</a></li>
@endforeach
</ul>
@endif
</div>
@endforeach
</div>
{{ $bookmarks->links() }}
@stop