Add new links, fix title-gen edge case

This commit is contained in:
Paul W. 2024-10-10 00:51:55 -04:00
parent 910f531207
commit f9021b7712
Signed by: lambdapaul
GPG Key ID: 0D207B4EBC14B1BD
6 changed files with 15 additions and 7 deletions

View File

@ -4,7 +4,6 @@ import Pages from '../public/external.json';
function QuickLinks() { function QuickLinks() {
return ( return (
<div className='block'> <div className='block'>
<h2>Quick Links</h2>
{ {
Object.entries(Pages).map(([title, link], i) => { Object.entries(Pages).map(([title, link], i) => {
const extern = link.match(/^http/) && `blue extern` || ''; const extern = link.match(/^http/) && `blue extern` || '';

View File

@ -30,6 +30,8 @@ function Title() {
if (pagePath !== '/') { if (pagePath !== '/') {
const subPaths = pagePath.split('?')[0].split('#')[0].split('/'); const subPaths = pagePath.split('?')[0].split('#')[0].split('/');
for (const p of subPaths.slice(1, subPaths.length)) { for (const p of subPaths.slice(1, subPaths.length)) {
if (!p)
continue;
splitPath.push({ name: currRoot[p].title, path: p }); splitPath.push({ name: currRoot[p].title, path: p });
if (currRoot === undefined if (currRoot === undefined

View File

@ -8,7 +8,6 @@ const config = {
{ {
test: /\.ya?ml$/, test: /\.ya?ml$/,
use: 'js-yaml-loader', use: 'js-yaml-loader',
}, },
{ {
test: /\.svg$/, test: /\.svg$/,

View File

@ -9,15 +9,17 @@ function AboutPage() {
<Layout > <Layout >
<section className='block'> <section className='block'>
<p>Paul&apos;s Personal Website. I go by <a href='https://github.com/LambdaPaul'>@LambdaPaul</a> on GitHub and <a href='https://x.com/lambda_paul'>@lambda_paul</a> on X/Twitter.</p> <p>Paul&apos;s Personal Website. I go by <a href='https://github.com/LambdaPaul'>@LambdaPaul</a> on GitHub and <a href='https://x.com/lambda_paul'>@lambda_paul</a> on X/Twitter.</p>
<p>Why did I create this? <p>I also have a Gitea server at <a href='https://git.paulw.xyz'>git.paulw.xyz</a> and a Pleroma (ActivityPub/Mastodon-compatible) server at <a href='https://social.paulw.xyz'>social.paulw.xyz</a> as back-ups for my GitHub and X/Twitter.</p>
<p>Why did I create this? Why do I have the back-ups?</p>
<p>
The original motivation was to just play with Next.js as it pretty much did the things I wanted web pages to do. But it came at the cost of needless complexity. As I use the JavaScript/ECMAScript/Whatever-you-want-to-call-it-script more and more, I am convinced that it is not a platform worth pursuing because the more complex it gets, the less control I have over what it does and this platform and its users seems to be okay with that sort of loss. I have been instead pivoting toward things that impressed and got me interested in working with computers.</p> The original motivation was to just play with Next.js as it pretty much did the things I wanted web pages to do. But it came at the cost of needless complexity. As I use the JavaScript/ECMAScript/Whatever-you-want-to-call-it-script more and more, I am convinced that it is not a platform worth pursuing because the more complex it gets, the less control I have over what it does and this platform and its users seems to be okay with that sort of loss. I have been instead pivoting toward things that impressed and got me interested in working with computers.</p>
<p>Most services/products are keen on going against what Steph Ango calls <a href='https://stephango.com/file-over-app'>File over app</a>, a philosophy in which you prioritize data over software, and anticipate and embrace the eventual death of software. People instead want subscription services that barely support open formats and sometimes do not support exporting data to commonly used formats. The goal here is to avoid storing artifacts under locations that are easily not accessible, not under my control, and does not lock me out of using it with other software. The only reason I have not completely abandoned this is thanks to my decision to rely on Markdown files alone. Had it been reliant on any cloud software, I would have started over.</p> <p>Most services/products are keen on going against what Steph Ango calls <a href='https://stephango.com/file-over-app'>File over app</a>, a philosophy in which you prioritize data over software, and anticipate and embrace the eventual death of software. People instead want subscription services that barely support open formats and sometimes do not support exporting data to commonly used formats. The goal here is to avoid storing artifacts under locations that are easily not accessible, not under my control, and does not lock me out of using it with other software. The only reason I have not completely abandoned this is thanks to my decision to rely on Markdown files alone. Had it been reliant on any cloud software, I would have started over.</p>
<p>Got any questions, concerns, or issues? Contact me via email: <code>lambdapaul [at] pm [dot] me</code>.</p> <p>Got any questions, concerns, or issues? Contact me via email: <code>contact [at] paulw [dot] xyz</code>.</p>
</section> </section>
<hr /> <hr />
<section className='block'> <section className='block'>
<p>Source for this site is available on GitHub: <a href='https://github.com/LambdaPaul/www'>https://github.com/LambdaPaul/www</a></p> <p>Source for this site is available on GitHub: <a href='https://github.com/LambdaPaul/www'>github.com/LambdaPaul/www</a> and <a href='https://git.paulw.xyz/LambdaPaul/www'>git.paulw.xyz/LambdaPaul/www</a></p>
<p>Relevant information regarding the source is available on the repo and is also provided below.</p> <p>Relevant information regarding the source is available on the repo and is also provided below.</p>
</section> </section>
<section className='block'> <section className='block'>

View File

@ -7,12 +7,12 @@ import RecentPosts from '../components/recent-posts';
import RootInfo from '../public/home.json'; import RootInfo from '../public/home.json';
function Nav() { function Nav() {
const nav = RootInfo; const nav = Object.entries(RootInfo);
return ( return (
<div className='block'> <div className='block'>
<h2>Navigation</h2> <h2>Navigation</h2>
{ {
Object.entries(nav).map(([slug, info], i) => { nav.map(([slug, info], i) => {
return <Link key={i} href={slug} className='button green'>{info.title}</Link> return <Link key={i} href={slug} className='button green'>{info.title}</Link>
}) })
} }

View File

@ -10,5 +10,11 @@
}, },
"sitemap": { "sitemap": {
"title": "Site Map" "title": "Site Map"
},
"https://git.paulw.xyz": {
"title": "Git.PaulW.XYZ"
},
"https://social.paulw.xyz": {
"title": "Social.PaulW.XYZ"
} }
} }