Skip to content

Commit

Permalink
#402 Perbaiki artikel baru tidak tampil dan sesuaikan urutannya.
Browse files Browse the repository at this point in the history
  • Loading branch information
apidong authored May 25, 2022
1 parent a1e5dae commit ac91c1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/Page/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function index()
public function beritaDesa()
{
$this->data = $this->getFeeds();

$feeds = collect($this->data)->sortByDesc('date')->take(config('setting.jumlah_artikel_desa') ?? 30)->paginate(config('setting.artikel_desa_perhalaman') ?? 10);
$feeds->all();

Expand Down Expand Up @@ -88,7 +87,7 @@ private function getFeeds()
'feed_link' => $item->get_feed()->get_permalink(),
'feed_title' => $item->get_feed()->get_title(),
'link' => $item->get_link(),
'date' => \Carbon\Carbon::parse($item->get_date('U'))->translatedFormat('d F Y'),
'date' => \Carbon\Carbon::parse($item->get_date('U')),
'author' => $item->get_author()->get_name() ?? 'Administrator',
'title' => $item->get_title(),
'image' => get_tag_image($item->get_description()),
Expand Down
3 changes: 3 additions & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ Terima kasih pada [untuk diisi] yang terus berkontribusi. Terima kasih pula pada
2. [#333](https://github.com/OpenSID/OpenDK/issues/333) Sinkronisasi Data Pembangunan OpenSID ke OpenDK.
3. [#384](https://github.com/OpenSID/OpenDK/issues/384) Sediakan ganti password saat selesai login jika menggunakan password masih default.


#### Perbaikan BUG
1. [#401](https://github.com/OpenSID/OpenDK/issues/401) Perbaiki tidak bisa ubah gambar slider.
2. [#391](https://github.com/OpenSID/OpenDK/issues/391) Perbaiki gagal upload foto profil user.
3. [#402](https://github.com/OpenSID/OpenDK/issues/402) Perbaiki artikel baru tidak tampil dan sesuaikan urutannya.


#### TEKNIS
1. [#72](https://github.com/OpenSID/OpenDK/issues/72) Amankan route api penduduk dengan middleware.
2. Sesuaikan sebutan desa yang tidak muncul.

2 changes: 1 addition & 1 deletion resources/views/pages/berita/feeds.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="col-sm-8">
<h5 style="margin-top: 5px; text-align: justify;"><b><a href="{{ $item['link'] }}">{{ $item['title'] }}</a></b></h5>
<p style="font-size:11px;">
<i class="fa fa-calendar"></i>&ensp;{{ $item['date'] }}&ensp;|&ensp;
<i class="fa fa-calendar"></i>&ensp;{{ $item['date']->translatedFormat('d F Y') }}&ensp;|&ensp;
<i class="fa fa-user"></i>&ensp;{{ $item['author'] }}&ensp;|&ensp;
<i class="fa fa-globe"></i>&ensp;{{ $item['nama_desa'] }}
</p>
Expand Down

0 comments on commit ac91c1a

Please sign in to comment.