Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndr committed Feb 14, 2024
1 parent e2dd068 commit 4eefe7e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Empty file added gatsby-node.js
Empty file.
9 changes: 8 additions & 1 deletion src/pages/songs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import * as React from 'react'
import { graphql } from 'gatsby';

export default function SongsPage({}) {
export default function SongsPage({data}) {
const {allSqliteSongs: {nodes: allSongs}} = data;
return (
<main>
<p>Songs go here!</p>
<ul>
{allSongs.map(songData =>
<li><a href={`/song/${songData.id.replace(/\D/g, '')}`}>{songData.title}</a></li>
)}
</ul>
</main>
)
}
Expand Down
Empty file added src/templates/song.js
Empty file.

0 comments on commit 4eefe7e

Please sign in to comment.