Skip to content

Commit

Permalink
fixup! Switch from Gatsby to Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
john-kurkowski committed Apr 27, 2024
1 parent fd31d7a commit fc638fa
Show file tree
Hide file tree
Showing 17 changed files with 189 additions and 24 deletions.
5 changes: 4 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "stylelint-config-standard",
"extends": [
"stylelint-config-html",
"stylelint-config-standard"
],
"rules": {
"at-rule-no-unknown": [
true,
Expand Down
136 changes: 136 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-tailwindcss": "^0.5.14",
"stylelint": "^16.4.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-standard": "^36.0.0",
"typescript": "^5.4.5"
},
Expand Down
9 changes: 5 additions & 4 deletions src/components/layouts/page.astro
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
import Layout from '../components/layouts/base.astro'
import Layout from './base.astro'
const { frontmatter } = Astro.props
---

<!--Layout page={page}-->
<Layout>
<article>
<header class='post'>
<h2>{page.title}</h2>
<h2>{frontmatter.title}</h2>
</header>

<div class='post'>{props.children}</div>
<div class='post'><slot /></div>
</article>
</Layout>
2 changes: 1 addition & 1 deletion src/components/layouts/post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Layout from '../components/layouts/base.astro'
</time>
</header>

<div class='post'>{props.children}</div>
<div class='post'><slot /></div>

<div class='mt-8' id='disqus_thread'></div>
<noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/components/resume/experience.astro
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ const timeEndDisplay =
<address class='justify-self-end'>{props.location}</address>
</h5>

<div class='text-justify'>{props.children}</div>
<div class='text-justify'><slot /></div>
</div>
2 changes: 1 addition & 1 deletion src/content/posts/2011-10-06-avoid-git-first-drafts.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: Avoid Git First Drafts
categories: tech
tags: git
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Accumulating More Than One Failure In A ValidationNEL'
categories: tech
tags: scala
description: >-
This is an adaptation of an internal blog post I made for Gravity engineers.
To preface, Gravity likes to use 2 very predictable patterns throughout its
Scala codebase, which is very important for a TIMTOWTDI language like
Scala: the for-comprehension and ValidationNEL.
---

This is an adaptation of an internal blog post I made for
Expand Down
7 changes: 6 additions & 1 deletion src/content/posts/2013-10-16-credo.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Credo'
categories: tech
tags: engineering usability
description:
Here’s a collection of the high-level concepts I’ve adopted over the years. I
think they add human value—to customers & teammates alike—and GTD value. All
while keeping me happy with my career in the otherwise often bitter IT
ecosystem.
---

Here's a collection of the high-level concepts I've adopted over the years. I
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Good Ideas From Mobile Design That Are Good Everywhere'
categories: tech
tags: engineering usability
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Don’t Learn to Code, Learn to Program—But Come Back in 10 Years'
categories: tech
tags: engineering programming
description:
I want to discuss why programming and coding are not the same, and why I can
no longer support the Learn to Code movement. I can no longer tell my friends
to learn coding. Although I’m passionate about it, it’s too arcane and insular
for mainstream practice.
---

I want to discuss why programming and coding are not the same, and why I can no
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Ongoing Learning in Breadth & Depth'
categories: tech
tags: engineering programming javascript
description:
To those overwhelmed by all the programming languages and tools you can
learn, changing daily, I’d like to offer some peace of mind. In my previous
article, I questioned the rampant, disconnected proliferation of code. I don’t
know why it is stuck the way it is.
---

To those overwhelmed by all the programming languages and tools you can learn,
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2014-09-05-code-as-craft-as-career.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Code As Craft As Career?'
categories: tech
tags: engineering programming
Expand Down
2 changes: 1 addition & 1 deletion src/content/posts/2014-09-08-paint-by-types.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: 'Paint By Types'
categories: tech
tags: engineering programming fp haskell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: post
layout: ../../components/layouts/post.astro
title: '1st Class UX for Web Programmers'
categories: tech
tags: engineering usability
Expand Down
4 changes: 2 additions & 2 deletions src/content/about/index.md → src/pages/about.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
layout: base
layout: ../components/layouts/page.astro
title: 'About Me'
---

import Experience from '../../components/resume/experience'
import Experience from '../components/resume/experience.astro'

I'm a software consultant who helps with the **development** of the **user
experience (UX)**. With 10+ years in the game, I help you evolve your
Expand Down
16 changes: 10 additions & 6 deletions src/pages/posts/index.astro
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
---
import Layout from '../../components/layouts/base.astro'
import { getCollection } from 'astro:content'
const posts = await getCollection('posts')
posts.reverse()
---

<Layout>
<!-- Layout page={page} -->
<section class=''>
<h2 class='heading text-3xl'>Articles</h2>

<ul class='mx-2 mt-2'>
{
props.data.allMdx.edges.map(({ node }) => (
<li class='mt-10' key={node.id}>
<a class='link inline-block' href={node.fields.slug}>
{node.frontmatter.title}
posts.map((post) => (
<li class='mt-10'>
<a class='link inline-block' href={`/posts/${post.slug}`}>
{post.data.title}
</a>

<blockquote class='mt-2 px-4 text-sm italic text-gray-500'>
{node.frontmatter.description || node.excerpt}
{post.data.description}
</blockquote>
</li>
))
Expand Down

0 comments on commit fc638fa

Please sign in to comment.