aravindballa / gatsby-theme-andy

A Gatsby theme to build Andy style websites. 📑
344 stars 46 forks source link

Shadow BrainNote.js to remove file title as note header #32

Closed awalvie closed 1 year ago

awalvie commented 3 years ago

Hey, I use this repository to host markdown files written in Obsidian.md. Whenever a new note is rendered the note title is defaulted to be the file title. This seems to be the portion of the code that is doing the rendering. I'm not too experienced with JS and shadowing so I was hoping someone could help me with what the right code would be to remove this.

technolaaji commented 2 years ago

when you are creating a note, add in the frontmatter at the top of your markdown file

---
title: 'My Personal Codex'
---

it will change the name of the title from the file name to the title in the frontmatter