diff options
Diffstat (limited to '')
-rw-r--r-- | index.php (renamed from index.html) | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -38,9 +38,13 @@ </hgroup> <p>My best repos are</p> <ul> + <li><a href="https://git.squi.bid/wallheaven">Wallheaven</a> - + A private frontend for wallhaven written in + <a href="https://php.net">php</a>! + </li> <li><a href="https://git.squi.bid/eat-it">eat it</a> - Eat It is a <a href="https://mpv.io", title="Mpv's Website">Mpv</a> - package manager writter in <a href="https://lua.org", + package manager written in <a href="https://lua.org", title="Lua's Website">Lua</a> with the intent of making Mpv scripts easier to update and use.</li> <li><a href="https://git.squi.bid/coreutils">coreutils</a> - @@ -60,9 +64,22 @@ </p> </hgroup> <p id="blogpreview"> - <!-- b script marker blog --> - If this is here I forgot to generate the blog list. - <!-- e script marker blog --> + <?php + $path = "blog"; + $files = scandir($path."/"); + $i = 0; + foreach ($files as $file) { + if (preg_match("/.+?(?=\.html|\.php)/", $file, $matches)) { + if ($i > 4) + break; + $tags = get_meta_tags($path.'/'.$file); + printf('<a href='.$path.'/%s>%s</a><span>%s</span><br>', + $matches[0], str_replace("-", " ", $matches[0]), + $tags["date"] ? $tags["date"] : "¯\_(ツ)_/¯"); + $i++; + } + } + ?> </p> <a href="/blog">more...</a> </div> |