diff options
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> |