diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-12 14:50:15 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-12 14:50:15 +0500 |
| commit | 008abff7be3e9810fb3693bf8f33635d9524b5c2 (patch) | |
| tree | c9d9456bfcc18aefb2eeacd8581d0f3b00e3baf4 /index.php | |
| parent | 853d253a7dc0c7de6438310cd94a7ece2da9397c (diff) | |
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -1,12 +1,11 @@ <?php include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/time.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/post.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/partials.php'; + if (file_exists("{$_SERVER['DOCUMENT_ROOT']}/projects.json") && $contents = file_get_contents("{$_SERVER['DOCUMENT_ROOT']}/projects.json")) { $projects = json_decode($contents, true); } -if (file_exists("{$_SERVER['DOCUMENT_ROOT']}/links.json") && $contents = file_get_contents("{$_SERVER['DOCUMENT_ROOT']}/links.json")) { - $links = json_decode($contents, true); -} $posts = get_posts(); if (!empty($posts)) { @@ -27,9 +26,7 @@ if (!empty($posts)) { <body> <main> - <div class="rain"> - <p><img src="/static/img/pepe.png" alt="FeelsBadMan ☔ " width="18" height="18"> I'm just a memer</p> - </div> + <?php html_header(); ?> <?php if (isset($projects)): ?> <section class="projects"> <?php foreach ($projects as $p): ?> @@ -69,13 +66,6 @@ if (!empty($posts)) { alt="[rss]"></a></p> </div> <?php endif; ?> - <?php if (isset($links)): ?> - <div class="main-links"> - <?php foreach ($links as $l): ?> - <a href="<?= $l['url'] ?>"><img src="/static/img/<?= $l['icon'] ?>.png" alt=""><?= $l['title'] ?></a> - <?php endforeach; ?> - </div> - <?php endif; ?> </main> </body> |
