Tweaking of code, along with deleting cached view files have got tests working locally again
This commit is contained in:
parent
721cbc541b
commit
c50d8a7b51
7 changed files with 56 additions and 50 deletions
24
resources/views/article.blade.php
Normal file
24
resources/views/article.blade.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
{{ strip_tags($article->title) }} «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@if($article->url != '')<article class="link h-entry">@else<article class="h-entry">@endif
|
||||
<header>
|
||||
<h1 class="p-name">
|
||||
<a href="@if($article->url == ''){{ $article->link }}@else{{ $article->url }}@endif">{{ $article->title }}</a>
|
||||
</h1>
|
||||
<span class="post-info">Posted <time class="dt-published" title="{{ $article->tooltip_time }}" datetime="{{ $article->w3c_time }}">{{ $article->human_time }}</time> - <a title="Permalink" href="{{ $article->link }}">⚓</a></span>
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{!! $article->main !!}
|
||||
</div>
|
||||
</article>
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
||||
36
resources/views/articles.blade.php
Normal file
36
resources/views/articles.blade.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Articles «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (count($articles) == 0)
|
||||
<p>No articles exist for this time.</p>
|
||||
@endif
|
||||
|
||||
@foreach ($articles as $article)
|
||||
@if ($article->url != '')<article class="link h-entry">@else<article class="h-entry">@endif
|
||||
<header>
|
||||
<h1 class="p-name">
|
||||
@if($article->url == '')
|
||||
<a href="{{ $article->link }}">{{ $article->title }}</a>
|
||||
@else
|
||||
<a href="{{ $article->url }}">{{ $article->title }}</a>
|
||||
@endif
|
||||
</h1>
|
||||
<span class="post-info">Posted <time class="dt-published" title="{{ $article->tooltip_time }}" datetime="{{ $article->w3c_time }}">{{ $article->human_time }}</time> - <a title="Permalink" href="{{ $article->link }}">⚓</a></span>
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{!! $article['main'] !!}
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
{{ $articles->links() }}
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Contacts «
|
||||
Contacts «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@foreach($contacts as $contact)
|
||||
@include('templates.contact', array('contact' => $contact))
|
||||
@include('templates.contact', ['contact' => $contact])
|
||||
@endforeach
|
||||
@stop
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Articles «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@if (count($data) == 0)
|
||||
<p>No articles exist for this time.</p>
|
||||
@endif
|
||||
@foreach ($data as $article)
|
||||
@if ($article['url'] != '')<article class="link h-entry">@else<article class="h-entry">@endif
|
||||
<header>
|
||||
<h1 class="p-name">
|
||||
<a href="@if($article['url'] == ''){{ $article['link'] }}@else{{ $article['url'] }}@endif">{{ $article['title'] }}</a>
|
||||
</h1>
|
||||
<span class="post-info">Posted <time class="dt-published" title="{{ $article['tooltip_time'] }}" datetime="{{ $article['w3c_time'] }}">{{ $article['human_time'] }}</time> - <a title="Permalink" href="{{ $article['link'] }}">⚓</a></span>
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{!! $article['main'] !!}
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
{!! $data->render() !!}
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
||||
44
resources/views/note.blade.php
Normal file
44
resources/views/note.blade.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
{{ strip_tags($note->note) }} « Notes «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="h-entry">
|
||||
@include('templates.note', ['note' => $note])
|
||||
@foreach($replies as $reply)
|
||||
<div class="u-comment h-cite">
|
||||
<a class="u-author h-card mini-h-card" href="{{ $reply['url'] }}">
|
||||
<img src="{{ $reply['photo'] }}" alt="" class="photo u-photo logo"> <span class="fn">{{ $reply['name'] }}</span>
|
||||
</a> said at <a class="dt-published u-url" href="{{ $reply['source'] }}">{{ $reply['date'] }}</a>
|
||||
<div class="e-content p-name">
|
||||
{!! $reply['reply'] !!}
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@if(count($likes) > 0)<h1 class="notes-subtitle">Likes</h1>@endif
|
||||
@foreach($likes as $like)
|
||||
<a href="{{ $like['url'] }}"><img src="{{ $like['photo'] }}" alt="profile picture of {{ $like['name'] }}" class="like-photo"></a>
|
||||
@endforeach
|
||||
@if(count($reposts) > 0)<h1 class="notes-subtitle">Reposts</h1>@endif
|
||||
@foreach($reposts as $repost)
|
||||
<p><a class="h-card vcard mini-h-card p-author" href="{{ $repost['url'] }}">
|
||||
<img src="{{ $repost['photo'] }}" alt="profile picture of {{ $repost['name'] }}" class="photo u-photo logo"> <span class="fn">{{ $repost['name'] }}</span>
|
||||
</a> reposted this at <a href="{{ $repost['source'] }}">{{ $repost['date'] }}</a>.</p>
|
||||
@endforeach
|
||||
<!-- these empty tags are for https://brid.gy’s publishing service -->
|
||||
<a href="https://brid.gy/publish/twitter"></a>
|
||||
<a href="https://brid.gy/publish/facebook"></a>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
|
||||
<script defer src="/assets/js/links.js"></script>
|
||||
<link rel="stylesheet" href="/assets/frontend/mapbox-gl.css">
|
||||
<script defer src="/assets/js/maps.js"></script>
|
||||
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
||||
48
resources/views/notes.blade.php
Normal file
48
resources/views/notes.blade.php
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Notes «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="h-feed">
|
||||
<!-- the following span stops microformat parses going haywire generating
|
||||
a name property for the h-feed -->
|
||||
<span class="p-name"></span>
|
||||
@foreach ($notes as $note)
|
||||
<div class="h-entry">
|
||||
@include('templates.note', ['note' => $note])
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
{!! $notes->render() !!}
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
|
||||
<script defer src="/assets/js/links.js"></script>
|
||||
<link rel="stylesheet" href="/assets/frontend/mapbox-gl.css">
|
||||
<script defer src="/assets/js/maps.js"></script>
|
||||
|
||||
<script defer src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
||||
|
||||
@section('bio')
|
||||
@if ($homepage === true)
|
||||
<div class="h-card">
|
||||
<p>My name is <span class="p-name p-author">Jonny Barnes</span>, and <a rel="me" href="https://jonnybarnes.uk" class="u-url"><code>jonnybarnes.uk</code></a> is my site. I’m from <a href="https://en.wikipedia.org/wiki/Manchester" class="h-adr p-adr"><span class="p-locality">Manchester</span>, <abbr class="p-country-name" title="United Kingdom">UK</abbr></a>.</p>
|
||||
<p>I am active to varying degrees on several <a href="https://indieweb.org/silo">silos</a>:</p>
|
||||
<ul class="social-list">
|
||||
<li>I keep in touch with friends on <a rel="me" href="https://www.facebook.com/jonnybarnes" class="u-url">Facebook</a></li>
|
||||
<li>I follow people I find interesting on <a rel="me" href="https://twitter.com/jonnybarnes" class="u-url">Twitter</a></li>
|
||||
<!--<li>I geek out on <a rel="me" href="https://alpha.app.net/jonnybarnes" class="u-url">app.net</a></li>-->
|
||||
<li>I exist on <a rel="me" href="https://plus.google.com/117317270900655269082" class="u-url">Google+</a></li>
|
||||
<!--<li>I post photos to <a rel="me" href="http://www.flickr.com/photos/22212133@N03/" class="u-url">flickr</a></li>-->
|
||||
<li>I push code to <a rel="me" href="https://github.com/jonnybarnes" class="u-url">GitHub</a></li>
|
||||
<li>I scrobble songs to <a rel="me" href="https://last.fm/user/jonnymbarnes" class="u-url">last.fm</a> that I listen to on <a rel="me" href="https://open.spotify.com/user/jonnybarnes89" class="u-url">Spotify</a></li>
|
||||
</ul>
|
||||
<p>My usual online nickname is normally <code class="nickname">jonnybarnes</code> for other services. Here’s a <a href="/assets/img/jmb-bw.png" class="u-photo photo">profile pic</a>. I also have a <a class="pgpkey" href="/assets/jonnybarnes-public-key-ecc.asc">PGP key</a>, with <a href="/notes/5g">fingerprint</a>.</p>
|
||||
</div>
|
||||
@endif
|
||||
@stop
|
||||
|
|
@ -11,7 +11,12 @@
|
|||
@foreach($articles as $article)
|
||||
<item>
|
||||
<title>{{ strip_tags($article->title) }}</title>
|
||||
<description><![CDATA[{{ $article->main }}@if($article->url)<p><a href="{{ config('app.url') }}{{ $article->link }}">Permalink</a></p>@endif]]></description>
|
||||
<description>
|
||||
<![CDATA[
|
||||
{{ $article->main }}
|
||||
@if($article->url)<p><a href="{{ config('app.url') }}{{ $article->link }}">Permalink</a></p>@endif
|
||||
]]>
|
||||
</description>
|
||||
<link>@if($article->url != ''){{ $article->url }}@else{{ config('app.url') }}{{ $article->link }}@endif</link>
|
||||
<guid>{{ config('app.url') }}{{ $article->link }}</guid>
|
||||
<pubDate>{{ $article->pubdate }}</pubDate>
|
||||
|
|
|
|||
Loading…
Reference in a new issue