Update (1)

This commit is contained in:
2023-12-03 22:26:55 +08:00
parent fd3a32f1ca
commit 4579917d36
2 changed files with 11 additions and 24 deletions

BIN
public/.DS_Store vendored

Binary file not shown.

View File

@@ -1,5 +1,5 @@
@foreach ($rss_posts as $key => $post)
<div class="card mb-1">
<div class="card mb-1 shadow border-0">
<div class="card-body">
<div class="d-grid d-md-flex justify-content-md-between">
<div class="w-100 mb-2">
@@ -8,29 +8,7 @@
</h3>
@if ($post->entities_keywords->count() > 0)
<div class="d-flex flex-wrap mb-1 gap-1">
{{-- @if ($post->entities) --}}
@foreach ($post->entities_keywords as $keyword)
{{-- @if ($keyword->type == 'entity') --}}
@if ($loop->iteration <= 3)
@if ($keyword->is_main)
<h4
class="mb-0 pb-1 d-inline badge bg-secondary border-secondary text-white border small fw-bold">
{{ $keyword->value }}
</h4>
@else
<h4 class="mb-0 pb-1 d-inline badge text-bg-light border small fw-normal">
{{ $keyword->value }}
</h4>
@endif
@elseif ($loop->iteration > 3 && count($post->entities_keywords) > 3)
<h4 class="mb-0 pb-1 d-inline badge text-bg-light border small fw-normal">
+{{ count($post->entities_keywords) - 3 }} more
</h4>
@break
@endif
{{-- @endif --}}
@endforeach
<div class="d-flex flex-wrap mb-2 gap-1">
{{-- @endif --}}
@@ -41,6 +19,15 @@ class="font-family-roboto-condensed mb-0 pb-1 d-inline badge bg-danger border-da
</h4>
@endif
</div>
<div class="mb-1 text-wrap d-flex flex-wrap gap-1 small">
<span class="word-wrap-break-word small">More about:</span> @foreach ($post->entities_keywords as $keyword)
@if ($keyword->type == 'entity')
<a class="word-wrap-break-word small"
href="{{ get_route_search_result($keyword->value_lowercased) }}">#{{ $keyword->value_lowercased }}</a>
@endif
@endforeach
</div>
@endif
<div class="small">