gray-matter
leerob.io
Our great sponsors
gray-matter | leerob.io | |
---|---|---|
17 | 59 | |
3,728 | 6,793 | |
- | - | |
3.3 | 8.7 | |
4 months ago | 6 days ago | |
JavaScript | MDX | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gray-matter
-
Building a flat-file CMS with Angular
Writing in markdown is super convenient, and supported by just about any text editor. To convert these .md files to browser-ready HTML, I wrote a simple little Node.js script using two great npm packages called gray-matter and showdown.
-
Eleventy vs. Next.js for static site generation
Next, install gray-matter to extract metadata from the front matter of markdown files, and marked to convert the markdown files to HTML:
-
Exploring the code behind Docusaurus
It turns out that Docusaurus uses an open source JavaScript parser called gray-matter to parse the front matter from markdown files! After installing gray-matter using npm and them importing it into the markdownUtils.ts file, all it takes is calling the matter method and passing the markdown file contents to get returned an Object with data and content (the data being the front matter and the content being the rest of the markdown file contents).
-
Create an Interactive Table of Contents for a Next.js Blog with Remark
Although we are building a custom table of contents, we won't have to write everything from scratch. To separate the Markdown/MDX content from the front matter, we'll use the Gray-matter package. It is optional in case you don't have front matter in your Markdown files. To process the Markdown itself, we'll use the Remark package. We'll also need the unist-util-visit package for traversing node trees and mdast-util-to-string for getting the text content of a node.
-
Create your own blog with MDX and NextJS
In this article we walk you through the process of creating a simple blog app using the popular React framework NextJS, gray-matter and next-mdx-remote.
-
NextJS 13 Blog Starter
In order to get post information (such as author, title, date, etc.) from our HTML without having them be apart of our rendered post we need a way to parse YAML front matter, this is where gray-matter comes in hand.
-
Create a Markdown Editor with Rust and React
It’s actually not part of the CommonMark spec, so you’ll often need a 3rd party library to parse it out on top of your Markdown parser. In JavaScript we use gray-matter which converts frontmatter into a JS object we can more easily use.
-
Turn a Markdown blog to a simple SSG
Over the past few weeks, I mostly wrote on how to template a Node.js application with EJS using Express. Then, I wrote an article showing how to create a Markdown blog in Node.js using EJS, Express, gray-matter and markdown-it. Today, I'll combine those tutorials to turn the Markdown blog, from the last tutorial, into a simple SSG.
-
Markdown blog with EJS
gray-matter, to parse the front matter from the Markdown files
-
Create Blog Post Bookmarks in Next.js
Luckily for us, there is a fantastic NPM package that can help us with this. Let’s install it.
leerob.io
-
Upgrade my blog to Next.js 13.4 with MDX, Prisma, Tailwindcss, Planetscale, Giscus and Contentlayer
Shen Lu's portfolio, inspired by leerob.io.
-
Next.js 13.4.8
This might be due to implementation. The same pattern on my site (without the entry/exit animation) is working as expected. http://leerob.io/
- Could you please suggest some Next.js project source codes, preferably v12 or fewer, that I can use to learn from?
-
I just redesigned two of my websites inspired by Lee Rob
So, while looking for websites to get inspired on, I found Lee Rob's website and I was amazed by how minimal and beautiful it is!
-
My portfolio built with Next.js, TypeScript, Firebase, and Vercel ✨
You've forked the site from leerob.io, no wonder it seemed to familiar lol
-
I made a full-stack portfolio site using Next.js and Tailwind!
The initial idea I had in my mind was a very minimal site with a minimal navbar that would look more like a sidebar, and the design would be somewhat inspired by leerob’s site. Apart from this, I also wanted my site to display some cool dynamic and real-time data like my Spotify data, my blog posts fetched from dev.to and a guestbook where people could leave messages for me!
-
Flutter Portfolio Suggestions
Here's mine, though still very unstable especially on mobile, design inspired by Leerob.
-
Moving my personal website from Gatsby to Next.js
Lee Robinson
-
How I created my personal website.
In terms of design inspiration, I took a lot of it from Lee Robinson and Delba's websites. They provide good material to anyone interested in learning about web development. Visit their blogs and YouTube channels for great educational content on different technologies used in the field.
-
Impact of React Suspense used with Nextjs on SEO?
I recently checked the source code of leerob.io. It made me very curious about how the homepage has been almost getting the perfect Light House score.
What are some alternatives?
front-matter - Extract YAML front matter from strings
react-markdown - Markdown component for React
remark - markdown processor powered by plugins part of the @unifiedjs collective
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
nextjs-notion-starter-kit - Deploy your own Notion-powered website in minutes with Next.js and Vercel.
HULL - 💀 Headless Shopify Starter – powered by Next.js + Sanity.io
docsify - 🃏 A magical documentation site generator.
next-markdown-blog - A lightly opinionated, full-featured Next.js blog managed through Git Workflows with markdown files.
next-markdown-blog
Assemble - Get the rocks out of your socks! Assemble makes you fast at web development! Used by thousands of projects for rapid prototyping, themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websites/static site generator, an alternative to Jekyll for gh-pages and more! Gulp- and grunt-friendly.
react-syntax-highlighter - syntax highlighting component for react with prismjs or highlightjs ast using inline styles
next-themes - Perfect Next.js dark mode in 2 lines of code. Support System preference and any other theme with no flashing