Skip to content

Commit

Permalink
Microdata removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Apr 5, 2019
1 parent 902e256 commit 7afbe38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
15 changes: 6 additions & 9 deletions src/resources/views/public/_list-item.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<li class="news-list-item" itemscope itemtype="http://schema.org/Article">
<a class="news-list-item-link" href="{{ $news->uri() }}" itemprop="url">
<img src="{!! $news->present()->image(540, 400) !!}" alt="">
<meta itemprop="image" content="{{ $news->present()->image() }}">
<li class="news-list-item">
<a class="news-list-item-link" href="{{ $news->uri() }}">
<img class="news-list-item-image" src="{!! $news->present()->image(540, 400) !!}" alt="">
<div class="news-list-item-info">
<h2 class="news-list-item-title" itemprop="name">{{ $news->title }}</h2>
<div class="news-list-item-date-wrapper">@lang('Published on')
<time class="news-list-item-date" itemprop="datePublished" datetime="{{ $news->date->toIso8601String() }}">{{ $news->present()->dateLocalized }}</time>
</div>
<div class="news-list-item-summary" itemprop="headline">{{ $news->summary }}</div>
<h2 class="news-list-item-title">{{ $news->title }}</h2>
<div class="news-list-item-date">{{ $news->present()->dateLocalized }}</div>
<div class="news-list-item-summary">{{ $news->summary }}</div>
</div>
</a>
</li>
15 changes: 6 additions & 9 deletions src/resources/views/public/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@

@include('core::public._btn-prev-next', ['module' => 'News', 'model' => $model])

<article class="news" itemscope itemtype="http://schema.org/Article">
<h1 class="news-title" itemprop="name">{{ $model->title }}</h1>
<img src="{!! $model->present()->image(null, 200) !!}" alt="">
<meta itemprop="image" content="{{ $model->present()->image() }}">
<div class="news-date-wrapper" class="date">@lang('Published on')
<time class="news-date" itemprop="datePublished" datetime="{{ $model->date->toIso8601String() }}">{{ $model->present()->dateLocalized }}</time>
</div>
<p class="news-summary" itemprop="headline">{{ nl2br($model->summary) }}</p>
<div class="news-body" itemprop="articleBody">{!! $model->present()->body !!}</div>
<article class="news">
<h1 class="news-title">{{ $model->title }}</h1>
<img class="news-image" src="{!! $model->present()->image(null, 200) !!}" alt="">
<div class="news-date">{{ $model->present()->dateLocalized }}</div>
<p class="news-summary">{{ nl2br($model->summary) }}</p>
<div class="news-body">{!! $model->present()->body !!}</div>
@include('files::public._documents')
@include('files::public._images')
</article>
Expand Down

0 comments on commit 7afbe38

Please sign in to comment.