diff options
Diffstat (limited to 'notes')
| -rw-r--r-- | notes/index.php | 153 | ||||
| -rw-r--r-- | notes/notes.atom | 22 |
2 files changed, 85 insertions, 90 deletions
diff --git a/notes/index.php b/notes/index.php index e3398ae..d883e38 100644 --- a/notes/index.php +++ b/notes/index.php @@ -6,108 +6,83 @@ error_reporting(E_ALL); <!DOCTYPE html> <html lang="en"> <head> + <?php + $stag = $_GET["tag"]; + $nostag = empty($stag); + ?> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Notes</title> - <link href="../style.css" rel="stylesheet" type="text/css" media="all"> - <style> - .noteentry { - max-width: 100%; - list-style: none; - display: inline-block; - margin: var(--stdpadding) 0; - } - .noteentry h3 { - margin-top: 0; - } - /*ul h2:first-of-type::before { - content: "Articles - " - }*/ - .noteentry > * { - display: block; - box-sizing: border-box; - } - .entrytag { - font-size: .9em; - color: #bbbbbb; - font-style: italic; - display: inline-block; - margin-right: 1ch; - } - .entrydate { - font-weight: bold; - } - .entrytitle { - padding-left: initial; - border-left: initial; - } - </style> - <?php include($_SERVER['DOCUMENT_ROOT'] . '/seasonal.php'); ?> + <title><?php if(!$nostag) { echo("#$stag | ");} ?> notes | isopod.cool v4</title> + <link href="/style.css" rel="stylesheet" type="text/css" media="all"> </head> <body> - <?php include($_SERVER['DOCUMENT_ROOT'] . '/nav.php'); bg(); ?> - <h1>isonotes</h1> - <h2 id="caption">superfluous commentary</h2> - <nav> - <a href="notes.atom">atom feed</a> + <?php include($_SERVER['DOCUMENT_ROOT'] . '/header.php');?> + <main> + <h2><?php if(!$nostag) { echo("#$stag");} else { echo("isonotes"); } ?></h2> + <p class="h2caption">good writing + superfluous commentary</p> + <nav class="pagenav"> + <ul> + <li><a href="https://blog.jim-nielsen.com/2023/notes-dot-jim-nielsen-dot-com/">what?</a></li> + <li><a href="notes.atom">atom feed</a></li> + <?php + $content = simplexml_load_file("notes.atom"); + $year = "-69420"; + $yc = 0; + foreach($content->entry as $entry) { + $nyr = substr($entry->published, 0, 4); + if($nyr != $year) { + $year = $nyr; + echo "<li><a href='#$year'>$year</a></li>"; + } + } + ?> + </ul> + </nav> + <?php - $content = simplexml_load_file("notes.atom"); + if(!$nostag) { + echo "<p class='backlink'><a href='.'>All notes</a></p>"; + } + echo "<ul id='articles'>"; $year = "-69420"; $yc = 0; foreach($content->entry as $entry) { - $nyr = substr($entry->published, 0, 4); - if($nyr != $year) { - $year = $nyr; - echo "<a href='#$year'>$year</a>"; - } - } - ?> - </nav> - <?php - $stag = $_GET["tag"]; - $nostag = empty($stag); - if(!$nostag) { - echo "<a style='display: block; margin-top: 1rem; margin-bottom: 1rem;' href='.'>All notes</a>"; - } - $year = "-69420"; - $yc = 0; - $yeag = false; - foreach($content->entry as $entry) { - - if($yeag) { - echo "<hr>"; - } else { - $yeag = true; - } - $pfilt = false; - if(!$nostag) { - foreach($entry->category as $cat) { - $term = $cat["term"]; - if($stag == $term) { - $pfilt = true; + $pfilt = false; + if(!$nostag) { + foreach($entry->category as $cat) { + $term = $cat["term"]; + if($stag == $term) { + $pfilt = true; + } } } - } - if($pfilt or $nostag) { - $nyr = substr($entry->published, 0, 4); - if($nyr != $year) { - $year = $nyr; - echo "<h2 id='$year'>$year</h2>"; - } - $dt = substr($entry->published, 0, 10); - $ti = $entry->title; - $cats = ""; - foreach($entry->category as $cat) { - $term = $cat["term"]; - $cats = $cats."<a class='entrytag' href='?tag=".$term."'>".$term."</a>"; + if($pfilt or $nostag) { + $nyr = substr($entry->published, 0, 4); + if($nyr != $year) { + $year = $nyr; + echo "<h3 id='$year'>$year</h3>"; + } + $dt = substr($entry->published, 0, 10); + $ti = $entry->title; + $cats = ""; + foreach($entry->category as $cat) { + $term = $cat["term"]; + $cats = $cats."<a class='entrytag' href='?tag=".$term."'>".$term."</a>"; + } + + $entryurl = $entry->link["href"]; + $entryprotocol = preg_replace("/:\/\/(.*)/", "://", $entryurl); + $entrysite = preg_replace(array("/(.*):\/\//", "/\/(.*)/"), "", $entryurl); + + echo("<li><article class='blogentry'><p class='entrydate'><time>$dt</time> • <a href='$entryprotocol$entrysite'>$entrysite</a></p><h4 class='entrytitle'><a href='".$entry->link["href"]."'>$ti</h4></a><div class='entrysummary'>$entry->summary</div><p>$cats</p></article></li>"); } - - echo "<article class='noteentry'><time class='entrydate'>$dt</time><h3 class='entrytitle'><a href='".$entry->link["href"]."'>$ti</h3></a>$entry->summary<span>$cats</span></article>"; } - } - ?> - + echo "</ul>"; + ?> + </main> + + <?php include($_SERVER['DOCUMENT_ROOT'] . '/footer.php');?> </body> </html> diff --git a/notes/notes.atom b/notes/notes.atom index 56a58b9..f4cf62d 100644 --- a/notes/notes.atom +++ b/notes/notes.atom @@ -3,7 +3,7 @@ <title>isopod.cool notes</title> <id>https://isopod.cool/notes/</id> <link rel="alternate" href="https://isopod.cool/notes/"></link> - <updated>2025-07-05T00:00:00+00:00</updated> + <updated>2026-02-14T00:00:00+00:00</updated> <author> <name>Hannah Isopod</name> <uri>https://isopod.cool/</uri> @@ -13,6 +13,26 @@ <category term="links"/> <category term="tech"/> <entry> + <title>fuck windows: dreaming of an honest computer</title> + <id>https://www.joewintergreen.com/fuck-windows-dreaming-of-an-honest-computer/</id> + <link rel="alternate" href="https://www.joewintergreen.com/fuck-windows-dreaming-of-an-honest-computer/" type="html" title="fuck windows: dreaming of an honest computer"></link> + <published>2026-02-14T00:00:00+00:00</published> + <updated>2026-02-14T00:00:00+00:00</updated> + <summary><p>This is probably the most sober assessment I've seen of why Linux is so desirable of late. This right here is the main factor that motivated me to adopt Linux as my daily driver OS 5 years ago.</p><p>Is Linux good? Debatable. Is it better than Windows? Depends. Is it actively hostile to you? Does it exist to harvest your data and juice the usage stats for Microsoft's LLM chatbot? Fuck no.</p></summary> + <category term="capitalism"/> + <category term="windows"/> + </entry> + <entry> + <title>WORSHIP OF THE ENGINEER</title> + <id>https://www.sheeeeeeeep.art/the-worship-of-engineering.html</id> + <link rel="alternate" href="https://www.sheeeeeeeep.art/the-worship-of-engineering.html" type="html" title="WORSHIP OF THE ENGINEER"></link> + <published>2026-02-14T00:00:00+00:00</published> + <updated>2026-02-14T00:00:00+00:00</updated> + <summary><p>BECAUSE SOFTWARE SENT PEOPLE TO THE MOON.<br>BECAUSE SOFTWARE SENT PEOPLE TO THE MOON.<br>BECAUSE SOFTWARE SENT PEOPLE TO THE MOON.<br>BECAUSE SOFTWARE SENT PEOPLE TO THE MOON.</p></summary> + <category term="ai"/> + <category term="society"/> + </entry> + <entry> <title>Playing "Minecraft" without Minecraft</title> <id>https://lenowo.org/viewtopic.php?t=5</id> <link rel="alternate" href="https://lenowo.org/viewtopic.php?t=5" type="html" title="Playing 'Minecraft' without Minecraft"></link> |
