update website look and add a new blogpost
This commit is contained in:
169
index.php
169
index.php
@ -3,85 +3,114 @@
|
||||
<head>
|
||||
<title>Squibid's Site</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- prevent darkreader extension from messing with our already dark site -->
|
||||
<meta name="darkreader-lock" />
|
||||
<!-- prevent darkreader from messing with our already dark site -->
|
||||
<meta name="darkreader-lock"/>
|
||||
</head>
|
||||
<body style="background-color: #161617;">
|
||||
<body>
|
||||
<div id="master">
|
||||
<header>
|
||||
<h1 id="font"><a href="/">Squibid's</a> Website</h1>
|
||||
<h1 id="font"><a href="/">Squibid</a></h1>
|
||||
</header>
|
||||
<hr style="color: #f7f7f7;">
|
||||
<div id="left">
|
||||
<div id="group"> <!-- Welcome Section -->
|
||||
<hgroup>
|
||||
<h2 id="font">Welcome</h2>
|
||||
</hgroup>
|
||||
<p>
|
||||
Hi my name is Squibid, and this is my website! I will be using it
|
||||
for anything that I find interesting along with some of my personal
|
||||
projects and a blog.
|
||||
<br><br>
|
||||
Got a question? <a href="mailto:me@zacharyscheiman.com",
|
||||
title="me@zacharyscheiman.com">Email me</a>.
|
||||
It's not likely that I will respond fast as I do not check my
|
||||
messages often.
|
||||
</p>
|
||||
</div>
|
||||
<br>
|
||||
<div id="group"> <!-- Git Section -->
|
||||
<hgroup>
|
||||
<h2 id="font", style="margin-bottom: 0;">Pinned Git Repos</h2>
|
||||
<p style="margin-top: 0;">
|
||||
my best projects
|
||||
</p>
|
||||
</hgroup>
|
||||
<p>My best repos are</p>
|
||||
<div id="group"> <!-- Welcome Section -->
|
||||
<p>
|
||||
Welcome to my website. I do a bunch of coding, I try to lean towards
|
||||
lower level languages (mostly C) as I find it more fun when there's a
|
||||
challenge. As for the content of this website: I put blog posts up
|
||||
when I've got something interesting to talk about and host my own git
|
||||
server with stuff I make (you can find the things I'm proud of below).
|
||||
</p>
|
||||
<p>
|
||||
Thank you for visiting, if you've got something you wanna say to me,
|
||||
feel free to contact me somewhere below:
|
||||
<ul>
|
||||
<li><a href="https://git.squi.bid/squibid/wiz">wiz</a> - An idle event
|
||||
manager for Wayland. Written in C!</li>
|
||||
<li><a href="https://git.squi.bid/squibid/eat-it">eat it</a> -
|
||||
Eat It is a <a href="https://mpv.io", title="Mpv's Website">Mpv</a>
|
||||
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="mailto:me@zacharyscheiman.com">email</a></li>
|
||||
<li><a href="https://github.com/squibid">github.com</a></li>
|
||||
<li><a href="https://codeberg.org/squibid">codeberg.org</a></li>
|
||||
</ul>
|
||||
<p><a href="https://git.squi.bid/squibid">more...</a></p>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
<div id="right">
|
||||
<div id="group"> <!-- Blog Section -->
|
||||
<hgroup>
|
||||
<h2 id="font", style="margin-bottom: 0;">My Blog</h2>
|
||||
<p style="text-align: center; margin-top: 0;">
|
||||
<a href="/blog/rss.xml", title="rss">subscribe</a>
|
||||
</p>
|
||||
</hgroup>
|
||||
<p id="blogpreview">
|
||||
<?php include('misc/tools.php'); blog_entries("blog", 5); ?>
|
||||
|
||||
<div id="group"> <!-- Git Section -->
|
||||
<h2 id="font", style="margin-bottom: 0;">Pinned Git Repos</h2>
|
||||
<p>My best projects:</p>
|
||||
<ul>
|
||||
<li><a href="https://git.squi.bid/squibid/wiz">wiz</a> - An idle event
|
||||
manager for Wayland. Written in C!</li>
|
||||
<!-- <li><a href="https://git.squi.bid/squibid/eat-it">eat it</a> - -->
|
||||
<!-- Eat It is a <a href="https://mpv.io", title="Mpv's Website">Mpv</a> -->
|
||||
<!-- 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> -->
|
||||
</ul>
|
||||
<p><a href="https://git.squi.bid/squibid">more...</a></p>
|
||||
</div>
|
||||
|
||||
<div id="group"> <!-- Blog Section -->
|
||||
<hgroup>
|
||||
<h2 id="font", style="margin-bottom: 0;">My Blog</h2>
|
||||
<a href="/blog/rss.xml", title="rss">(rss btw)</a>
|
||||
</hgroup>
|
||||
<br>
|
||||
<?php
|
||||
$path = "blog";
|
||||
$limit = isset($_GET['all_blog']) ? false : 5;
|
||||
|
||||
$files = scandir($path."/");
|
||||
$entries = [];
|
||||
$i = 0;
|
||||
|
||||
/* get all the files */
|
||||
foreach ($files as $file) {
|
||||
if (is_dir($path.'/'.$file) && $file[0] != ".") {
|
||||
$tags = get_meta_tags($path.'/'.$file.'/index.html');
|
||||
$entries[$i][0] = preg_replace("/\//", "", $tags["date"]);
|
||||
$entries[$i][1] = $file;
|
||||
$entries[$i][2] = $tags["date"];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
/* reverse the list */
|
||||
rsort($entries);
|
||||
|
||||
/* print the blogs out */
|
||||
printf('<table id="bloglist">');
|
||||
$i = 0;
|
||||
for (; $i < count($entries); $i++) {
|
||||
if ($limit && $i > $limit - 1) {
|
||||
break;
|
||||
}
|
||||
$file = $entries[$i][1];
|
||||
$age = $entries[$i][2];
|
||||
printf('<tr><td><a href=/%s/%s>%s</a></td><td class="date">%s</td></tr>',
|
||||
$path, $file, str_replace("-", " ", $file),
|
||||
$age ? $age : "¯\_(ツ)_/¯");
|
||||
}
|
||||
printf('<tr><td><a href=%s>%s</a></td></tr>',
|
||||
isset($_GET['all_blog']) ? "/" : "/?all_blog",
|
||||
isset($_GET['all_blog']) ? "...less" : "more...");
|
||||
printf('</table>');
|
||||
?>
|
||||
</div>
|
||||
<div id="group"> <!-- People Section -->
|
||||
<hgroup>
|
||||
<h2 id="font", style="margin-bottom: 0;">Interesting People</h2>
|
||||
<p style="margin-top: 0;">
|
||||
(nvim users)
|
||||
</p>
|
||||
<a href="/blog">more...</a>
|
||||
</div>
|
||||
<div id="group"> <!-- People Section -->
|
||||
<hgroup>
|
||||
<h2 id="font", style="margin-bottom: 0;">Interesting People</h2>
|
||||
<p style="margin-top: 0;">
|
||||
(nvim users)
|
||||
</p>
|
||||
</hgroup>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://lunarflamestudios.com">lunarflamestudios.com</a>
|
||||
- Fantastic game studio run by the amazing Adrian aka Phantom.
|
||||
<li>
|
||||
<a href="https://eggbert.xyz/">eggbert.xyz</a>
|
||||
- Insanely intelligent developer who writes good blog posts and
|
||||
great code.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</hgroup>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://lunarflame.dev">lunarflame.dev</a>
|
||||
- Fantastic game studio run by the amazing Adrian aka Phantom.
|
||||
<li>
|
||||
<a href="https://eggbert.xyz/">eggbert.xyz</a>
|
||||
- Insanely intelligent developer who writes good blog posts and
|
||||
great code.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user