From d6b53149777f4cd975b832f671c0001b94065e20 Mon Sep 17 00:00:00 2001 From: yequari Date: Thu, 10 Aug 2023 20:50:28 -0700 Subject: [PATCH] revamp links page to use hugo data files --- content/links.html | 119 ------------------------- content/links/_index.md | 4 + data/links/00_computing.yaml | 20 +++++ data/links/10_amusement.yaml | 11 +++ data/links/20_articles.yaml | 11 +++ data/links/30_foodforthought.yaml | 14 +++ layouts/links/list.html | 10 +++ layouts/partials/linklist.html | 10 +++ layouts/transformers/transformers.html | 19 ++++ themes/genesis/static/css/main.css | 2 +- 10 files changed, 100 insertions(+), 120 deletions(-) delete mode 100644 content/links.html create mode 100644 content/links/_index.md create mode 100644 data/links/00_computing.yaml create mode 100644 data/links/10_amusement.yaml create mode 100644 data/links/20_articles.yaml create mode 100644 data/links/30_foodforthought.yaml create mode 100644 layouts/links/list.html create mode 100644 layouts/partials/linklist.html create mode 100644 layouts/transformers/transformers.html diff --git a/content/links.html b/content/links.html deleted file mode 100644 index 5fabd77..0000000 --- a/content/links.html +++ /dev/null @@ -1,119 +0,0 @@ - ---- -title: Links ---- -

- This is a collection of pages and websites I have stumbled upon that I think are cool. Some are members of the greater Yesterweb community and others are pages I want to revisit or share. -

- - -

Friends

- - - - - diff --git a/content/links/_index.md b/content/links/_index.md new file mode 100644 index 0000000..8b0f7b1 --- /dev/null +++ b/content/links/_index.md @@ -0,0 +1,4 @@ +--- +title: Links +--- +This is a collection of links I want to share. Some are useful resources for learning, some are interesting articles, and some are just novel and fun. diff --git a/data/links/00_computing.yaml b/data/links/00_computing.yaml new file mode 100644 index 0000000..601cccc --- /dev/null +++ b/data/links/00_computing.yaml @@ -0,0 +1,20 @@ +name: Computing +links: + - name: Simple Balanced Ternary Computer Virtual Machine + description: A virtual machine simulating a base 3 computer. Alternatives to the traditional models of computing are of great interest to me and I want to learn more about programming in base 3. + url: https://sbtcvm.blogspot.com/?m=1 + - name: Shell Script Best Practices + description: A list of tips when writing shell scripts. Especially useful for me since I'm not super familiar with bash but use it on a daily basis. + url: https://sharats.me/posts/shell-script-best-practices/ + - name: The Lost Art of Structure Packing + description: An interesting look into how C structs work and how to squeeze some extra optimization out of them. + url: http://www.catb.org/esr/structure-packing/ + - name: how do i webmentions + description: An excellent tutorial on how to set up webmentions on your site, specifically tailored to neocities users. + url: https://webmentions.neocities.org + - name: How to create hover text using HTML and CSS + description: A tutorial explaining hover text without using JavaScript, which I used to set up this page. + url: https://sebhastian.com/html-hover-text/ + - name: Beej's Guides + description: Beej's Guides are all excellent tools to learn various programming languages and technologies. Notably useful for me are Beej's Guide to Network Programming and Beej's Guide to C (both volumes) + url: https://beej.us/guide/ diff --git a/data/links/10_amusement.yaml b/data/links/10_amusement.yaml new file mode 100644 index 0000000..97d3bed --- /dev/null +++ b/data/links/10_amusement.yaml @@ -0,0 +1,11 @@ +name: Amusement +links: + - name: The Gettysburg Powerpoint Presentation + description: A modern interpretation of the Gettysburg Address. + url: http://www.norvig.com/Gettysburg/index.htm + - name: How Unix programmers at restaurants search menus for their favorite plate + description: A real-world application of UNIX skills. + url: https://dev.to/miguelmota/how-unix-programmers-at-restaurants-search-menus--46ad + - name: Advanced PET + description: A web simulation of the old Megaman NT Warrior Advanced PET toy from the mid-2000s + url: https://xwellingtonx.github.io/advanced-pet/ diff --git a/data/links/20_articles.yaml b/data/links/20_articles.yaml new file mode 100644 index 0000000..ff7434f --- /dev/null +++ b/data/links/20_articles.yaml @@ -0,0 +1,11 @@ +name: Interesting Articles +links: + - name: Forget Comcast. Here's the DIY Approach to Internet Access + description: A Wired article about a Spanish engineer who built up a distributed wifi network to provide Internet to his town because telecom companies wouldn't. + url: https://www.wired.com/2016/07/forget-comcast-heres-the-diy-approach-to-internet-access/ + - name: Designing Windows 95's User Interface + description: A retrospective from someone who worked on the Windows 95 user interface detailing the design process and iteration that went into creating an interface that was accessible to both first-time computer users and existing power users. + url: https://socket3.wordpress.com/2018/02/03/designing-windows-95s-user-interface/ + - name: Writing when tech has broken the web's social contract + description: An article discussing how writing on the Internet is changing because of AI + url: https://www.baldurbjarnason.com/2023/tech-broke-the-webs-social-contract/https://www.baldurbjarnason.com/2023/tech-broke-the-webs-social-contract/ diff --git a/data/links/30_foodforthought.yaml b/data/links/30_foodforthought.yaml new file mode 100644 index 0000000..dcaaee6 --- /dev/null +++ b/data/links/30_foodforthought.yaml @@ -0,0 +1,14 @@ +name: Food for Thought +links: + - name: 32-Bit Cafe + url: "https://32bit.cafe" + description: Building a better internet + - name: Permacomputing Wiki + url: https://permacomputing.net + description: Permacomputing focuses on sustainable computing, inspired by permaculture, aiming to utilize existing compute resources rather than new ones. The wiki is very incomplete, but is something to keep an eye on as it grows. + - name: Building a Better World in your Backyard + url: https://permies.com/w/better-world + description: On the topic of permaculture, Building a Better World in your Backyard is a book describing how you can get started with permaculture and living a sustainable lifestyle. The website has lots of good resources and is often referenced by the book. You can also buy the book in bulk for cheap to distribute amongst your local community. + - name: The small things Manifesto + url: https://ajroach42.com/the-small-things-manifesto/ + description: A manifesto written by Andrew Roach proposing that we should try to do things on a human scale again, instead of trying to design everything to scale infinitely. diff --git a/layouts/links/list.html b/layouts/links/list.html new file mode 100644 index 0000000..cd6635f --- /dev/null +++ b/layouts/links/list.html @@ -0,0 +1,10 @@ +{{ define "main" }} +
+{{ .Content }} + +
+{{ end }} diff --git a/layouts/partials/linklist.html b/layouts/partials/linklist.html new file mode 100644 index 0000000..89ec07a --- /dev/null +++ b/layouts/partials/linklist.html @@ -0,0 +1,10 @@ + diff --git a/layouts/transformers/transformers.html b/layouts/transformers/transformers.html new file mode 100644 index 0000000..ea72159 --- /dev/null +++ b/layouts/transformers/transformers.html @@ -0,0 +1,19 @@ +{{ define "main" }} + +
+ {{ .Content }} +
+{{ end }} diff --git a/themes/genesis/static/css/main.css b/themes/genesis/static/css/main.css index 09b2af6..e43d7fe 100644 --- a/themes/genesis/static/css/main.css +++ b/themes/genesis/static/css/main.css @@ -300,7 +300,7 @@ decorative stuff :) position: absolute; z-index: 1; left: -50px; - top: 110%; + top: -250%; } .hover-links:hover:before {