Skip to content

Commit

Permalink
update tarot grid page to be mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
cesque committed Mar 6, 2024
1 parent cb36a8e commit fa97d55
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 32 deletions.
11 changes: 0 additions & 11 deletions app/tarot-grid/layout.js

This file was deleted.

19 changes: 0 additions & 19 deletions app/tarot-grid/page.js

This file was deleted.

2 changes: 1 addition & 1 deletion components/TarotGrid/TarotGrid.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '@/styles/breakpoints.scss';

.grid {
max-width: var(--width-full);
max-width: var(--width-full) !important;
padding: var(--spacing-medium);

display: grid;
Expand Down
10 changes: 10 additions & 0 deletions posts/tarot-grid.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

import TarotGrid from '@/components/TarotGrid/TarotGrid'

export const meta = {
title: 'Tarot Decks - Grid',
tags: ['personal', 'occult'],
hidden: true,
}

<TarotGrid />
3 changes: 2 additions & 1 deletion utils/getPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default async function getPosts() {
let tags = [...new Set(posts.map(post => post.meta.tags).flat())]

_data = {
posts,
allPosts: posts,
posts: posts.filter(post => !post.meta.hidden),
tags,
}

Expand Down

0 comments on commit fa97d55

Please sign in to comment.