These snippets, while useful and interesting, didn't quite make it into the repository due to either having very specific use-cases or being outdated. However we felt like they might still be useful to some readers, so here they are.
Click on a snippet's name to view its code.
{posts && diff --git a/src/docs/pages/list.js b/src/docs/pages/list.js index b9bd2bde4..77d936f46 100644 --- a/src/docs/pages/list.js +++ b/src/docs/pages/list.js @@ -64,7 +64,12 @@ const ListPage = props => { { url: 'about', title: 'About', - description: 'A few word about us, our goals and our projects.' + description: 'A few word about us, our goals and our projects.', + }, + { + url: 'beginner', + title: 'Beginner snippets', + description: 'Snippets aimed towards individuals at the start of their web developer journey.', } ]; @@ -111,7 +116,7 @@ const ListPage = props => { to={`/archive`} hex={props.isDarkMode ? '#434E76' : '#FFFFFF'} > - Archived + Archived snippets {archivedSnippets .filter(snippet => snippet.archived) diff --git a/src/docs/templates/TagPage.js b/src/docs/templates/TagPage.js index 59c38ce64..80e709197 100644 --- a/src/docs/templates/TagPage.js +++ b/src/docs/templates/TagPage.js @@ -61,7 +61,7 @@ export const tagPageQuery = graphql` allMarkdownRemark( limit: 1000 sort: { fields: [frontmatter___title], order: ASC } - filter: { frontmatter: { tags: { regex: $tagRegex } } } + filter: { fileAbsolutePath: { regex: "/snippets(?!_archive)/" }, frontmatter: { tags: { regex: $tagRegex } } } ) { totalCount edges {