Issue: Invalid title field value makes the content dashboard crash #349

Closed
opened 2026-10-05 02:42:13 +02:00 by adam · 13 comments
Owner

Describe the bug
Clicking on draft in the main window of dashboard causes it to "crash."

To Reproduce
Steps to reproduce the behavior:

  1. Open dashboard
  2. Click on "Drafts (12)"
  3. Watch it "freeze."

Expected behavior
Expected it to display all my articles in "draft" status (where draft: draft).

Screenshots
Dashboard:
Screen Shot 2022-10-02 at 19 04 16

After clicking drafts:
Screen Shot 2022-10-02 at 19 03 59

Desktop (please complete the following information):

  • OS: MacOS 12.5.1
  • Browser Chrome 105 and Safari 15.6.1
  • FM Version: 8.1.1

Additional context
Updated .frontmatter file:

{
  "$schema": "https://frontmatter.codes/frontmatter.schema.json",
  "frontMatter.taxonomy.contentTypes": [
    {
      "name": "default",
      "pageBundle": false,
      "previewPath": null,
      "fields": [
        {
          "title": "Title",
          "name": "title",
          "type": "string"
        },
        {
          "title": "Description",
          "name": "description",
          "type": "string"
        },
        {
          "title": "Publishing date",
          "name": "date",
          "type": "datetime",
          "default": "{{now}}",
          "isPublishDate": true
        },
        {
          "title": "Content preview",
          "name": "preview",
          "type": "image"
        },
        {
          "title": "Is in draft",
          "name": "draft",
          "type": "choice",
          "choices": ["draft", "in progress", "published"]
        },
        {
          "title": "Tags",
          "name": "tags",
          "type": "tags"
        },
        {
          "title": "Categories",
          "name": "categories",
          "type": "categories",
          "hidden": true
        }
      ]
    },
    {
      "name": "HEXO/post",
      "pageBundle": false,
      "previewPath": null,
      "fields": [
        {
          "title": "Title",
          "name": "title",
          "type": "string",
          "editable": true,
          "required": true
        },
        {
          "title": "Slug",
          "name": "slug",
          "type": "slug",
          "editable": true,
          "default": "{{slug}}"
        },
        {
          "title": "Description",
          "name": "excerpt",
          "type": "string",
          "editable": true
        },
        {
          "title": "Post Image (PNG / JPG / SVG)",
          "name": "img",
          "editable": true,
          "type": "image",
          "description": "This is the main photo displayed on the website. SVG is recommended, but sometimes not possible if too complex.",
          "isPreviewImage": true
        },
        {
          "title": "OpenGraph image (JPG / PNG)",
          "name": "openGraph_img",
          "type": "image",
          "description": "This is the image used by FB, Twitter, or any social media site. SVG _not_ supported.",
          "default": false,
          "editable": true
        },
        {
          "title": "Publish date",
          "name": "date",
          "type": "datetime",
          "default": "{{now}}",
          "isPublishDate": true,
          "editable": false,
          "required": true
        },
        {
          "title": "Updated time",
          "name": "updated",
          "type": "datetime",
          "default": "{{now}}",
          "editable": false,
          "single": true,
          "isModifiedDate": true
        },
        {
          "title": "Tags",
          "name": "tags",
          "type": "tags",
          "description": "Tags should be limited to a absolute max of 7; \n Ideally 3...",
          "taxonomyLimit": 10,
          "editable": true
        },
        {
          "title": "Categories",
          "name": "categories",
          "type": "categories",
          "description": "this is replaced by the HEXO plug-in [hexo-auto-category](https://github.com/xu-song/hexo-auto-category)",
          "hidden": true
        },
        {
          "title": "Post Language",
          "name": "lang",
          "type": "string",
          "description": "{ [ISO 639-1 Code](https://en.wikipedia.org/wiki/ISO_639-1) }",
          "default": "en",
          "editable": true,
          "single": true,
          "required": true
        },
        {
          "name": "divider",
          "type": "divider"
        },
        {
          "title": "Pin this post at top?",
          "name": "sticky",
          "description": "Select a priority between 1 and 98 (1 = very top) for this post to be displayed.",
          "type": "number",
          "default": 999,
          "editable": true,
          "single": true
        },
        {
          "title": "Enable comments?",
          "name": "comments",
          "type": "boolean",
          "description": "Enable DISQUS tool for comments?",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "title": "Enable ToC?",
          "name": "toc",
          "type": "boolean",
          "description": "Display the Table of Contents?",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "title": "Default ToC open?",
          "name": "tocOpen",
          "type": "boolean",
          "description": "Should the Table of Contents be open already?",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "title": "Allow indexing and search for this post's contents?",
          "name": "indexing",
          "type": "boolean",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "title": "Display tags on Home?",
          "name": "display_tag_onHome",
          "type": "boolean",
          "description": "Show the tags for this post in the feed pages?",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "title": "Show in top recommended section on home page?",
          "name": "recommendedSection",
          "type": "boolean",
          "description": "Display this post in the recommended section below the top 'HERO' banner?",
          "default": false,
          "editable": true,
          "single": true
        },
        {
          "title": "Show donate button?",
          "name": "donate",
          "type": "boolean",
          "description": "This is great for crowd funding your work. However, don't enable this for copy/paste news reports.",
          "default": false,
          "editable": true,
          "single": true
        },
        {
          "title": "Enable MathJax",
          "name": "mathjax",
          "type": "boolean",
          "description": "If using math formulas, good to enable this.",
          "default": false,
          "editable": true,
          "single": true
        },
        {
          "title": "Show share icons?",
          "name": "share",
          "type": "boolean",
          "description": "Display the SNS icons or bot to share this post.",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "name": "divider",
          "type": "divider"
        },
        {
          "title": "Display copyright notice on post?",
          "name": "copyright",
          "type": "boolean",
          "description": "Should enable this if copied from other _copyrighted_ source... Or, if you have copyrighted it, then enable.",
          "default": true,
          "editable": true,
          "single": true
        },
        {
          "title": "source Url",
          "name": "sourceUrl",
          "description": "Original post where this was copy/pasted.",
          "editable": true,
          "single": true
        },
        {
          "title": "source Author",
          "name": "sourceAuthor",
          "description": "{First_name} {LAST_NAME} -or- '@username'",
          "editable": true
        },
        {
          "title": "source Author Image",
          "name": "sourceAuthorImg",
          "default": false,
          "editable": true
        },
        {
          "title": "source Publisher Date",
          "name": "sourcePublishDate",
          "default": false,
          "editable": true,
          "single": true
        },
        {
          "title": "copyLicense",
          "name": "copyLicense",
          "type": "string",
          "description": "What type of license is this documented under? MIT/CC/Apache/etc.",
          "default": false,
          "editable": true,
          "single": true
        },
        {
          "title": "copyLicense URL",
          "name": "copyLicenseURL",
          "type": "string",
          "description": "URL where the license is fully explained.",
          "default": false,
          "editable": true,
          "single": true
        },
        {
          "title": "copyLicense Description",
          "name": "copyLicenseDesc",
          "type": "string",
          "default": false,
          "editable": true
        },
        {
          "name": "divider",
          "type": "divider"
        },
        {
          "title": "Location on Earth",
          "name": "geolocation",
          "type": "string",
          "description": "Provide either a coordinate or text string that Google Maps can display. Where did you write this post?",
          "default": "'Chiba, Japan'",
          "editable": true,
          "single": true
        },
        {
          "title": "Read Time (autogenerated)",
          "name": "readTime",
          "type": "number",
          "editable": false,
          "default": false,
          "single": true,
          "hidden": true
        },
        {
          "title": "Word Count (autogenerated)",
          "name": "wordCount",
          "type": "number",
          "default": false,
          "editable": false,
          "single": true,
          "hidden": true
        },
        {
          "title": "Draft Status",
          "name": "draft",
          "type": "choice",
          "choices": ["draft", "in progress", "published"],
          "default": "draft",
          "single": true,
          "editable": true
        },
        {
          "title": "Add to sitemap?",
          "name": "sitemap",
          "type": "boolean",
          "description": "Enabling this allows search engines to be aware of your articles/content.",
          "default": true,
          "single": true,
          "editable": true
        },
        {
          "title": "type",
          "name": "type",
          "type": "string",
          "default": "HEXO/post",
          "hidden": true
        }
      ]
    },
    {
      "name": "HEXO/page",
      "pageBundle": true,
      "fields": [
        {
          "title": "Title",
          "name": "title",
          "type": "string",
          "editable": true,
          "required": true
        },
        {
          "title": "Description",
          "name": "description",
          "type": "string",
          "editable": true
        },
        {
          "title": "Page Image",
          "name": "img",
          "editable": true,
          "type": "string",
          "isPreviewImage": true
        },
        {
          "title": "Publish date",
          "name": "date",
          "type": "datetime",
          "default": "{{now}}",
          "isPublishDate": true,
          "editable": false,
          "required": true
        },
        {
          "title": "layout",
          "name": "layout",
          "type": "string",
          "default": "page"
        },
        {
          "title": "Allow indexing and search for this post's contents?",
          "name": "indexing",
          "type": "boolean",
          "default": true,
          "editable": true,
          "single": true
        }
      ]
    }
  ],
  "frontMatter.taxonomy.tags": [/* ... */],
  "frontMatter.taxonomy.categories": [/* ... */],
  "frontMatter.content.defaultFileType": "md",
  "frontMatter.content.fmHighlight": true,
  "frontMatter.content.hideFm": false,
  "frontMatter.content.pageFolders": [
    {
      "title": "Scaffolds",
      "path": "[[workspace]]/scaffolds",
      "excludeSubdir": true
    },
    {
      "title": "Pages",
      "path": "[[workspace]]/source",
      "excludeSubdir": true
    },
    {
      "title": "Posts",
      "path": "[[workspace]]/source/_posts"
    },
    {
      "title": "Drafts",
      "path": "[[workspace]]/source/_drafts"
    }
  ],
  "frontMatter.content.publicFolder": "[[workspace]]/public",
  "frontMatter.data.folders": [
    {
      "id": "HEXO/data",
      "title": "Custom data",
      "file": "[[workspace]]/source/data/*.json",
      "fileType": "json"
    },
    {
      "id": "sponsors",
      "title": "Sponsors",
      "file": "[[workspace]]/source/data/sponsors.json",
      "fileType": "json",
      "labelField": "name",
      "schema": {
        "title": "Sponsors",
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "URL"
          },
          "description": {
            "type": "string",
            "title": "Description"
          }
        }
      }
    }
  ],
  "frontMatter.file.preserveCasing": true,
  "frontMatter.framework.id": "HEXO",
  "frontMatter.framework.startCommand": "hexo clean && hexo server",
  "frontMatter.preview.host": "http://127.0.0.0:4000/",
  "frontMatter.preview.pathName": "{{year}}/{{month}}{{day}}/{{slug}}.html",
  "frontMatter.taxonomy.dateFormat": "YYYY/MM/dd",
  "frontMatter.taxonomy.frontMatterType": "YAML",
  "frontMatter.taxonomy.seoContentLength": 2400, 
  "frontMatter.taxonomy.indentArrays": true,
  "frontMatter.templates.enabled": true,
  "frontMatter.templates.folder": ".frontmatter/templates",
  "frontMatter.templates.prefix": "",
  "frontMatter.content.draftField": {
    "name": "draft",
    "type": "choice",
    "choices": ["draft", "in progress", "published"]
  },
  "frontMatter.dashboard.content.pagination": true
}

📝 I should mention that clicking on "In progress (1)" and "Published (1365)" has no issue. This suggest the issue is due to the file location as Hexo doesn't mix drafts with published articles.

**Describe the bug** Clicking on draft in the main window of dashboard causes it to "crash." **To Reproduce** Steps to reproduce the behavior: 1. Open dashboard 2. Click on "Drafts (12)" 3. Watch it "freeze." **Expected behavior** Expected it to display all my articles in "draft" status (where `draft: draft`). **Screenshots** Dashboard: ![Screen Shot 2022-10-02 at 19 04 16](https://user-images.githubusercontent.com/1673222/193448799-a1e16fb2-e8bd-4fb4-aaf3-f1a16074e98b.png) After clicking drafts: ![Screen Shot 2022-10-02 at 19 03 59](https://user-images.githubusercontent.com/1673222/193448813-a310d78c-9d3e-4ccd-ad34-667b0976b412.png) **Desktop (please complete the following information):** - OS: MacOS 12.5.1 - Browser Chrome 105 and Safari 15.6.1 - FM Version: 8.1.1 **Additional context** Updated `.frontmatter` file: ```json { "$schema": "https://frontmatter.codes/frontmatter.schema.json", "frontMatter.taxonomy.contentTypes": [ { "name": "default", "pageBundle": false, "previewPath": null, "fields": [ { "title": "Title", "name": "title", "type": "string" }, { "title": "Description", "name": "description", "type": "string" }, { "title": "Publishing date", "name": "date", "type": "datetime", "default": "{{now}}", "isPublishDate": true }, { "title": "Content preview", "name": "preview", "type": "image" }, { "title": "Is in draft", "name": "draft", "type": "choice", "choices": ["draft", "in progress", "published"] }, { "title": "Tags", "name": "tags", "type": "tags" }, { "title": "Categories", "name": "categories", "type": "categories", "hidden": true } ] }, { "name": "HEXO/post", "pageBundle": false, "previewPath": null, "fields": [ { "title": "Title", "name": "title", "type": "string", "editable": true, "required": true }, { "title": "Slug", "name": "slug", "type": "slug", "editable": true, "default": "{{slug}}" }, { "title": "Description", "name": "excerpt", "type": "string", "editable": true }, { "title": "Post Image (PNG / JPG / SVG)", "name": "img", "editable": true, "type": "image", "description": "This is the main photo displayed on the website. SVG is recommended, but sometimes not possible if too complex.", "isPreviewImage": true }, { "title": "OpenGraph image (JPG / PNG)", "name": "openGraph_img", "type": "image", "description": "This is the image used by FB, Twitter, or any social media site. SVG _not_ supported.", "default": false, "editable": true }, { "title": "Publish date", "name": "date", "type": "datetime", "default": "{{now}}", "isPublishDate": true, "editable": false, "required": true }, { "title": "Updated time", "name": "updated", "type": "datetime", "default": "{{now}}", "editable": false, "single": true, "isModifiedDate": true }, { "title": "Tags", "name": "tags", "type": "tags", "description": "Tags should be limited to a absolute max of 7; \n Ideally 3...", "taxonomyLimit": 10, "editable": true }, { "title": "Categories", "name": "categories", "type": "categories", "description": "this is replaced by the HEXO plug-in [hexo-auto-category](https://github.com/xu-song/hexo-auto-category)", "hidden": true }, { "title": "Post Language", "name": "lang", "type": "string", "description": "{ [ISO 639-1 Code](https://en.wikipedia.org/wiki/ISO_639-1) }", "default": "en", "editable": true, "single": true, "required": true }, { "name": "divider", "type": "divider" }, { "title": "Pin this post at top?", "name": "sticky", "description": "Select a priority between 1 and 98 (1 = very top) for this post to be displayed.", "type": "number", "default": 999, "editable": true, "single": true }, { "title": "Enable comments?", "name": "comments", "type": "boolean", "description": "Enable DISQUS tool for comments?", "default": true, "editable": true, "single": true }, { "title": "Enable ToC?", "name": "toc", "type": "boolean", "description": "Display the Table of Contents?", "default": true, "editable": true, "single": true }, { "title": "Default ToC open?", "name": "tocOpen", "type": "boolean", "description": "Should the Table of Contents be open already?", "default": true, "editable": true, "single": true }, { "title": "Allow indexing and search for this post's contents?", "name": "indexing", "type": "boolean", "default": true, "editable": true, "single": true }, { "title": "Display tags on Home?", "name": "display_tag_onHome", "type": "boolean", "description": "Show the tags for this post in the feed pages?", "default": true, "editable": true, "single": true }, { "title": "Show in top recommended section on home page?", "name": "recommendedSection", "type": "boolean", "description": "Display this post in the recommended section below the top 'HERO' banner?", "default": false, "editable": true, "single": true }, { "title": "Show donate button?", "name": "donate", "type": "boolean", "description": "This is great for crowd funding your work. However, don't enable this for copy/paste news reports.", "default": false, "editable": true, "single": true }, { "title": "Enable MathJax", "name": "mathjax", "type": "boolean", "description": "If using math formulas, good to enable this.", "default": false, "editable": true, "single": true }, { "title": "Show share icons?", "name": "share", "type": "boolean", "description": "Display the SNS icons or bot to share this post.", "default": true, "editable": true, "single": true }, { "name": "divider", "type": "divider" }, { "title": "Display copyright notice on post?", "name": "copyright", "type": "boolean", "description": "Should enable this if copied from other _copyrighted_ source... Or, if you have copyrighted it, then enable.", "default": true, "editable": true, "single": true }, { "title": "source Url", "name": "sourceUrl", "description": "Original post where this was copy/pasted.", "editable": true, "single": true }, { "title": "source Author", "name": "sourceAuthor", "description": "{First_name} {LAST_NAME} -or- '@username'", "editable": true }, { "title": "source Author Image", "name": "sourceAuthorImg", "default": false, "editable": true }, { "title": "source Publisher Date", "name": "sourcePublishDate", "default": false, "editable": true, "single": true }, { "title": "copyLicense", "name": "copyLicense", "type": "string", "description": "What type of license is this documented under? MIT/CC/Apache/etc.", "default": false, "editable": true, "single": true }, { "title": "copyLicense URL", "name": "copyLicenseURL", "type": "string", "description": "URL where the license is fully explained.", "default": false, "editable": true, "single": true }, { "title": "copyLicense Description", "name": "copyLicenseDesc", "type": "string", "default": false, "editable": true }, { "name": "divider", "type": "divider" }, { "title": "Location on Earth", "name": "geolocation", "type": "string", "description": "Provide either a coordinate or text string that Google Maps can display. Where did you write this post?", "default": "'Chiba, Japan'", "editable": true, "single": true }, { "title": "Read Time (autogenerated)", "name": "readTime", "type": "number", "editable": false, "default": false, "single": true, "hidden": true }, { "title": "Word Count (autogenerated)", "name": "wordCount", "type": "number", "default": false, "editable": false, "single": true, "hidden": true }, { "title": "Draft Status", "name": "draft", "type": "choice", "choices": ["draft", "in progress", "published"], "default": "draft", "single": true, "editable": true }, { "title": "Add to sitemap?", "name": "sitemap", "type": "boolean", "description": "Enabling this allows search engines to be aware of your articles/content.", "default": true, "single": true, "editable": true }, { "title": "type", "name": "type", "type": "string", "default": "HEXO/post", "hidden": true } ] }, { "name": "HEXO/page", "pageBundle": true, "fields": [ { "title": "Title", "name": "title", "type": "string", "editable": true, "required": true }, { "title": "Description", "name": "description", "type": "string", "editable": true }, { "title": "Page Image", "name": "img", "editable": true, "type": "string", "isPreviewImage": true }, { "title": "Publish date", "name": "date", "type": "datetime", "default": "{{now}}", "isPublishDate": true, "editable": false, "required": true }, { "title": "layout", "name": "layout", "type": "string", "default": "page" }, { "title": "Allow indexing and search for this post's contents?", "name": "indexing", "type": "boolean", "default": true, "editable": true, "single": true } ] } ], "frontMatter.taxonomy.tags": [/* ... */], "frontMatter.taxonomy.categories": [/* ... */], "frontMatter.content.defaultFileType": "md", "frontMatter.content.fmHighlight": true, "frontMatter.content.hideFm": false, "frontMatter.content.pageFolders": [ { "title": "Scaffolds", "path": "[[workspace]]/scaffolds", "excludeSubdir": true }, { "title": "Pages", "path": "[[workspace]]/source", "excludeSubdir": true }, { "title": "Posts", "path": "[[workspace]]/source/_posts" }, { "title": "Drafts", "path": "[[workspace]]/source/_drafts" } ], "frontMatter.content.publicFolder": "[[workspace]]/public", "frontMatter.data.folders": [ { "id": "HEXO/data", "title": "Custom data", "file": "[[workspace]]/source/data/*.json", "fileType": "json" }, { "id": "sponsors", "title": "Sponsors", "file": "[[workspace]]/source/data/sponsors.json", "fileType": "json", "labelField": "name", "schema": { "title": "Sponsors", "type": "object", "required": [ "name", "url" ], "properties": { "name": { "type": "string", "title": "Name" }, "url": { "type": "string", "title": "URL" }, "description": { "type": "string", "title": "Description" } } } } ], "frontMatter.file.preserveCasing": true, "frontMatter.framework.id": "HEXO", "frontMatter.framework.startCommand": "hexo clean && hexo server", "frontMatter.preview.host": "http://127.0.0.0:4000/", "frontMatter.preview.pathName": "{{year}}/{{month}}{{day}}/{{slug}}.html", "frontMatter.taxonomy.dateFormat": "YYYY/MM/dd", "frontMatter.taxonomy.frontMatterType": "YAML", "frontMatter.taxonomy.seoContentLength": 2400, "frontMatter.taxonomy.indentArrays": true, "frontMatter.templates.enabled": true, "frontMatter.templates.folder": ".frontmatter/templates", "frontMatter.templates.prefix": "", "frontMatter.content.draftField": { "name": "draft", "type": "choice", "choices": ["draft", "in progress", "published"] }, "frontMatter.dashboard.content.pagination": true } ``` 📝 I should mention that clicking on "In progress (1)" and "Published (1365)" has no issue. This suggest the issue is due to the file location as Hexo doesn't mix drafts with published articles. <!-- github-sync-id:1393714157 -->
adam closed this issue 2026-10-05 02:42:13 +02:00
Author
Owner

Think an error is encountered in the webview. Can you open the command palette and search for Developer: Toggle Developer Tools. After you execute this command, you will get a similar devtools experience as in your browser. Can you check if there are any related errors to this action?

Think an error is encountered in the webview. Can you open the command palette and search for `Developer: Toggle Developer Tools`. After you execute this command, you will get a similar devtools experience as in your browser. Can you check if there are any related errors to this action? <!-- github-comment-id:1264626845 -->
Author
Owner

@lorezyra, I have added a HEXO project to our samples: https://github.com/FrontMatter/project-samples/tree/main/hexo

Would you be able to help out by adding some sample config/content to reproduce this issue? Having a real-world Hexo sample will help to get better support in the future.

@lorezyra, I have added a HEXO project to our samples: https://github.com/FrontMatter/project-samples/tree/main/hexo Would you be able to help out by adding some sample config/content to reproduce this issue? Having a real-world Hexo sample will help to get better support in the future. <!-- github-comment-id:1264634125 -->
Author
Owner
Here's what I see: ![Screen Shot 2022-10-02 at 22 36 30](https://user-images.githubusercontent.com/1673222/193457020-e8ea52c3-bfc0-4a84-86ec-36bb509b44f3.png) ![Screen Shot 2022-10-02 at 22 36 50](https://user-images.githubusercontent.com/1673222/193457030-31b5e4ee-55b7-47ee-bbac-ebcba6f87aee.png) <img width="555" alt="Screen Shot 2022-10-02 at 22 40 21" src="https://user-images.githubusercontent.com/1673222/193457128-89569302-e230-4503-8342-0469572bcf81.png"> - https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%7B%20title%20%7D%7D <!-- github-comment-id:1264647111 -->
Author
Owner

Related to #434

Related to #434 <!-- github-comment-id:1264662398 -->
Author
Owner

Sorry, I accidentally clicked on close while scrolling. Seems you did the same 😁.

If your sample content contains the same issue as this one, I don't need anything more.

If it doesn't, there seems to be something odd in the processing of the file content. Would you be able to share some of your draft content?

Sorry, I accidentally clicked on close while scrolling. Seems you did the same 😁. If your sample content contains the same issue as this one, I don't need anything more. If it doesn't, there seems to be something odd in the processing of the file content. Would you be able to share some of your draft content? <!-- github-comment-id:1264671431 -->
Author
Owner

Sure, but I need some 🛌💤 sleep. Almost 1am in Tokyo...

Sure, but I need some 🛌💤 sleep. Almost 1am in Tokyo... <!-- github-comment-id:1264672976 -->
Author
Owner

You deserve it! Have a good night!

You deserve it! Have a good night! <!-- github-comment-id:1264674117 -->
Author
Owner

Based on the error message, I have been able to reproduce it. Seems that this is related to an invalid title set to: {{ title }}.

The card tries to render a title as a string, but the article passes an object.

I will do an update to fix this by setting an <invalid title> field value on the card.

image

Based on the error message, I have been able to reproduce it. Seems that this is related to an invalid title set to: `{{ title }}`. The card tries to render a title as a string, but the article passes an object. I will do an update to fix this by setting an `<invalid title>` field value on the card. ![image](https://user-images.githubusercontent.com/2900833/193468547-775da4ff-5df2-41f3-99b3-34ad6b387e3b.png) <!-- github-comment-id:1264698014 -->
Author
Owner

Has been fixed in the latest beta version.

Has been fixed in the latest beta version. <!-- github-comment-id:1264700134 -->
Author
Owner

Based on the error message, I have been able to reproduce it. Seems that this is related to an invalid title set to: {{ title }}.

The card tries to render a title as a string, but the article passes an object.

I will do an update to fix this by setting an <invalid title> field value on the card.

That should come from the scaffolds (templates). Looks like scaffolds/temp.md file. Hexo uses "scaffolds" like you employ "templates." But FM is treating that folder like a place for articles.

> Based on the error message, I have been able to reproduce it. Seems that this is related to an invalid title set to: `{{ title }}`. > > The card tries to render a title as a string, but the article passes an object. > > I will do an update to fix this by setting an `<invalid title>` field value on the card. > That should come from the scaffolds (templates). Looks like `scaffolds/temp.md` file. Hexo uses "scaffolds" like you employ "templates." But FM is treating that folder like a place for articles. <!-- github-comment-id:1264825935 -->
Author
Owner

Okay, looks like you're right... I found an old post.md in the /source/_drafts/ folder. I must have forgot that I moved it there. Moved it back to scaffolds... Also, I removed the scaffolds folder from frontMatter.data.folders config. Seems to work better now. FM no longer "crashes."

Screen Shot 2022-10-03 at 11 41 06

Okay, looks like you're right... I found an old `post.md` in the `/source/_drafts/` folder. I must have forgot that I moved it there. Moved it back to scaffolds... Also, I removed the scaffolds folder from `frontMatter.data.folders` config. Seems to work better now. FM no longer "crashes." ![Screen Shot 2022-10-03 at 11 41 06](https://user-images.githubusercontent.com/1673222/193492380-bff317e5-e2af-493b-9622-bb8d4feb451e.png) <!-- github-comment-id:1264856928 -->
Author
Owner

⚠️ Hexo scaffold files have at least 2 different fields that have variables in the markdown by default. Typically: {{ title }} and {{ date }}.

⚠️ Hexo scaffold files have at least 2 different fields that have variables in the markdown by default. Typically: `{{ title }}` and `{{ date }}`. <!-- github-comment-id:1264872435 -->
Author
Owner

I'll also check the date part!

Seems that invalid dates were already covered.

~I'll also check the date part!~ Seems that invalid dates were already covered. <!-- github-comment-id:1264968956 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#349