Skip to content

Commit

Permalink
Update node binary
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro committed Mar 29, 2024
1 parent 00b1800 commit add23f1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: '20.12.0'
cache: 'yarn'

- name: Git checkout
uses: actions/checkout@v3

Expand Down
35 changes: 35 additions & 0 deletions src/BlogIndex.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { JSX, Component } from "solid-js";
import { css } from "@linaria/core";
import cn from "classnames";
import { Title } from "@solidjs/meta";
import { For, NoHydration } from "solid-js/web";
import Text from "~/atoms/Text.md";
import Counter from "~/components/Counter";
import { getArticles } from "~/ssg/getArticles";

const list = getArticles();

interface Props {
children?: JSX.Element;
}

const BlogIndex: Component<Props> = (props) => {
return (
<main class={cn(_BlogIndex)}>
<Title>Hello World</Title>
<ul class="mb-8 text-colors-secondary-800">
<For each={list}>
{(item) => (
<li>
<a href={item.url}>{item.title}</a>
</li>
)}
</For>
</ul>
</main>
);
};

const _BlogIndex = css``;

export default BlogIndex;

0 comments on commit add23f1

Please sign in to comment.