Hugo setup for Frontmatter


Hugo and Frontmatter

This Site is built with Hugo from Markdown files. Try IT!

To simplify Hugo management there is FrontMatter CMS, a (vs) code plugin

I had a little struggle to get the preview working because hugo and frontmatter used different paths

to get Frontmatter preview to follow the url scheme of hugo

after setting up hugo and using

[permalinks]
posts = "/posts/:slug/"

after initialization of the content type in Frontmatter

in frontmatter.json adjust the preview path

{
  "description": "",
  "frontMatter.framework.id": "hugo",
  "frontMatter.content.publicFolder": "static",
  "frontMatter.preview.host": "http://localhost:1313",
  "frontMatter.content.pageFolders": [
    {
      "title": "post",
      "filePrefix": null,
      "previewPath": "/posts",
      "contentTypes": ["post"],
      "path": "[[workspace]]/content/posts"
    }
  ]
}