From 21bbe9607a2193446cd0ccc7b364edd05cbb860f Mon Sep 17 00:00:00 2001 From: xunuwu Date: Tue, 20 May 2025 20:25:49 +0200 Subject: [PATCH] factor out data into _data folder --- _data/projects.json | 12 ++++++++++++ _data/socials.json | 32 ++++++++++++++++++++++++++++++++ index.html | 30 ------------------------------ 3 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 _data/projects.json create mode 100644 _data/socials.json diff --git a/_data/projects.json b/_data/projects.json new file mode 100644 index 0000000..517f5b7 --- /dev/null +++ b/_data/projects.json @@ -0,0 +1,12 @@ +[ + { + "title": "nixos config", + "info": "configuration files for all my nixos computers", + "link": "https://github.com/xunuwu/nixos-config" + }, + { + "title": "waymouse", + "info": "a cli utility for simulating mouse inputs on wayland", + "link": "https://github.com/xunuwu/waymouse" + } +] diff --git a/_data/socials.json b/_data/socials.json new file mode 100644 index 0000000..792eebb --- /dev/null +++ b/_data/socials.json @@ -0,0 +1,32 @@ +[ + { + "name": "discord", + "handle": "@xunuwu", + "link": "https://discord.com/users/821827926504112129" + }, + { + "name": "bluesky", + "handle": "owoxun.bsky.social", + "link": "https://bsky.app/profile/owoxun.bsky.social" + }, + { + "name": "roblox", + "handle": "@xunuwu", + "link": "https://www.roblox.com/users/149009823" + }, + { + "name": "last.fm", + "handle": "xunuwu", + "link": "https://www.last.fm/user/xunuwu" + }, + { + "name": "github", + "handle": "xunuwu", + "link": "https://github.com/xunuwu" + }, + { + "name": "steam", + "handle": "xunuwu", + "link": "https://steamcommunity.com/id/xunuwu/" + } +] diff --git a/index.html b/index.html index 8506966..4ef5b4e 100644 --- a/index.html +++ b/index.html @@ -1,33 +1,3 @@ ---- -socials: - - name: discord - handle: "@xunuwu" - link: "https://discord.com/users/821827926504112129" - - name: bluesky - handle: owoxun.bsky.social - link: "https://bsky.app/profile/owoxun.bsky.social" - - name: roblox - handle: "@xunuwu" - link: "https://www.roblox.com/users/149009823" - - name: last.fm - handle: xunuwu - link: "https://www.last.fm/user/xunuwu" - - name: github - handle: xunuwu - link: "https://github.com/xunuwu" - - name: steam - handle: xunuwu - link: "https://steamcommunity.com/id/xunuwu/" - -# info field is optional, title and link are mandatory -projects: - - title: nixos config - info: configuration files for all my nixos computers - link: https://github.com/xunuwu/nixos-config - - title: waymouse - info: a cli utility for simulating mouse inputs on wayland - link: https://github.com/xunuwu/waymouse ----