jonnybarnes.uk/resources/views/articles/show.blade.php

18 lines
611 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
@extends('master')
@section('title'){{ $article->published ? '' : '[Draft] ' }}{{ strip_tags($article->title) }} « @stop
@if (! $article->published)
@push('head')
<meta name="robots" content="noindex, nofollow">
@endpush
@endif
2016-05-19 15:01:28 +01:00
@section('content')
@unless ($article->published)
<aside class="draft-notice" role="note">
<strong>Draft</strong> — this post hasn’t been published yet. It isn’t listed on the site or in feeds, so only people with this link can see it.
</aside>
@endunless
@include('templates.article', ['article' => $article])
2016-05-19 15:01:28 +01:00
@stop