Skip to content

Commit

Permalink
feat: Pinned Timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone committed Feb 8, 2024
1 parent 37231a8 commit 0ee0020
Show file tree
Hide file tree
Showing 7 changed files with 1,563 additions and 13 deletions.
22 changes: 11 additions & 11 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ const config: GatsbyConfig = {
includeInDevelopment: true,
},
},
`gatsby-plugin-image`,
// `gatsby-plugin-image`,
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 600,
linkImagesToOriginal: true,
backgroundColor: "none",
},
},
// {
// resolve: `gatsby-remark-images`,
// options: {
// maxWidth: 600,
// linkImagesToOriginal: true,
// backgroundColor: "none",
// },
// },
{
resolve: `gatsby-remark-prismjs`,
options: {
Expand Down Expand Up @@ -160,7 +160,7 @@ const config: GatsbyConfig = {
acl: null,
},
},
`gatsby-plugin-sharp`,
// `gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-sitemap`,
options: {
Expand Down Expand Up @@ -237,7 +237,7 @@ const config: GatsbyConfig = {
},
};
}),
`gatsby-transformer-sharp`,
// `gatsby-transformer-sharp`,
`gatsby-transformer-yaml`,
],
};
Expand Down
4 changes: 3 additions & 1 deletion src/features/Timeline/TimelineList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ interface TimelineItemProps {
item: TimelineListProps["groups"]["group"][number]["nodes"][number];
}

const TimelineItem = ({ item }: TimelineItemProps): JSX.Element | null => {
export const TimelineItem = ({
item,
}: TimelineItemProps): JSX.Element | null => {
switch (item.__typename) {
case "ArticlesYaml": {
return <TimelineArticleCard key={item.id} item={item} />;
Expand Down
Loading

0 comments on commit 0ee0020

Please sign in to comment.