diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-06-30 00:07:21 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-06-30 00:07:21 +0200 |
commit | 1f23d65f32e37d0c6d703951d6735c9926f8521c (patch) | |
tree | 57cd1399dd05a088b2a2fb3d6bdc5d0dc3a2961b /_site/home | |
parent | 5c5014a95ae79af4b052b5011e7d0c11d6eae6a6 (diff) | |
download | unchainedtech-1f23d65f32e37d0c6d703951d6735c9926f8521c.tar.gz unchainedtech-1f23d65f32e37d0c6d703951d6735c9926f8521c.tar.bz2 unchainedtech-1f23d65f32e37d0c6d703951d6735c9926f8521c.zip |
Really done this time
Diffstat (limited to '_site/home')
-rw-r--r-- | _site/home/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_site/home/index.php b/_site/home/index.php index 2425013..62a076d 100644 --- a/_site/home/index.php +++ b/_site/home/index.php @@ -13,7 +13,7 @@ <div class="card-body"> <h2><?= $item["title"] ?></h2> <p><?= $item["content"]["mini"] ?></p> - <a class="btn btn-primary" href="/article/<?= $id ?>">Read more</a> + <a class="btn btn-primary" href="/article/<?= $item["id"] ?>">Read more</a> <span style="margin-top: 10px;display:block;"><small><?php $dt = DateTime::createFromFormat('Ymd', $item["date"]); @@ -31,7 +31,7 @@ <div class="list-group"> <?php $index = 0;foreach ($list as $id => $item): ?> <?php if ($index >= 3 && $index < 100): ?> - <a href="/article/<?= $id ?>" class="list-group-item list-group-item-action"><?= $item["title"] ?></a> + <a href="/article/<?= $item["id"] ?>" class="list-group-item list-group-item-action"><?= $item["title"] ?></a> <?php endif; ?> <?php $index++;endforeach; ?> </div> |