Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Frontmatter support #10

@krry

Description

@krry

Hiya, and thank you for this template 😸

I'm wondering if it supports/parses frontmatter, or could. Foam now allows us to put tags and such in the frontmatter, which I have started to do as another dimension of interlinkage.

And when I display my notes that contain frontmatter with this template, I see the frontmatter printed as though it were a horizontal line ---, a <p>, then a <h2>. I don't understand why it is parsed this way.

Here is an illustration. This markdown:

---
title: Projects
tags: PARA, zettlekasten, commonplace
timestamp: 2021-03-08 12:03:43
layout: page
---

# Projects

Here we keep teleological endeavors, ones with an end in sight.

becomes this markup:

<hr/>
<p>title: Projects
--
  | tags: PARA, zettlekasten, commonplace
  | timestamp: 2021-03-08 12:03:43</p>
<h2>layout: page</h2>
<h1>Projects</h1>
<p>Here we keep teleological endeavors, ones with an end in sight.</p>

So far I have tried to adding the remark-frontmatter plugin in the next.config.js as you instruct, and in combination with the remark-parse-frontmatter plugin. These seem to have no effect.

I'm stumped. Have you gotten frontmatter parsing to work? Do you have any pointers?

Thanks again. It's so great to be able to use Next and Vercel to publish my second brain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions