farmOS / farmOS.org

Repository for the official farmOS.org website.
https://farmOS.org
10 stars 6 forks source link

Use Front Matter blocks for page meta and other info #18

Closed jgaehring closed 2 years ago

jgaehring commented 2 years ago

I've talked a little on the forum, in issue #13 and elsewhere about this need. Basically, Front Matter is supported out of the box with gatsby-transformer-remark, which I have already installed and am using to transform all our markdown into pages. It's really a matter of deciding on some consistent variables (as I've said elsewhere, I think title, date and slug are good variables to start with), add those variables to the GraphQL queries in the template and the createPages hook, and finally use those variables them for generating paths, rendering layouts, adding SEO metadata, etc.

jgaehring commented 2 years ago

I added this to the beta milestone, but frankly, if a specific need for it doesn't arise in the course of adding other repos (#17) and migrating content from the old site (#12), then this shouldn't be a blocker.

jgaehring commented 2 years ago

Closing this, since it should be resolved once #49 is merged.