Thoughts / Feature Request #9

Closed
opened 2026-10-05 02:21:49 +02:00 by adam · 8 comments
Owner

Hey, good morning, I was thinking about a feature I would love.

I could write my own plugin but decided to google first and see what exists.

I want to be able to specify content lengths for my frontmatter fields.

Basically I want to maintain a small settings in a dict.

{
Title: 60,
Description: 140,
}

Then when I write a title or description, if I go over the above char counts the additional characters get highlighted with a red background. For SEO purposes mostly.

Is this something you would consider adding?

Hey, good morning, I was thinking about a feature I would love. I could write my own plugin but decided to google first and see what exists. I want to be able to specify content lengths for my frontmatter fields. Basically I want to maintain a small settings in a dict. ``` { Title: 60, Description: 140, } ``` Then when I write a title or description, if I go over the above char counts the additional characters get highlighted with a red background. For SEO purposes mostly. Is this something you would consider adding? <!-- github-sync-id:683338407 -->
adam closed this issue 2026-10-05 02:21:49 +02:00
Author
Owner

Hi @Fasani, this would be a great enhancement to the plugin. The title check is already in place for some time only the check for the description is missing now.

Do you want to have it as a configurable setting?

Hi @Fasani, this would be a great enhancement to the plugin. The title check is already in place for some time only the check for the description is missing now. Do you want to have it as a configurable setting? <!-- github-comment-id:678117072 -->
Author
Owner

Oh ok great, I didn't realize, will install now and check it out. I think as long as it fits best practices for SEO title and description for me that would be great no need for custom. Can always be extended later if requests come.

Oh ok great, I didn't realize, will install now and check it out. I think as long as it fits best practices for SEO title and description for me that would be great no need for custom. Can always be extended later if requests come. <!-- github-comment-id:678118464 -->
Author
Owner

Works great, if you are interested I also use:

date: 2020-08-01T20:49:44.000Z
updated: 2020-08-12T20:49:44.000Z

Would it be possible to add updated?

I have a few plugins which I can now replace by this plugin! Great work!

Works great, if you are interested I also use: ``` date: 2020-08-01T20:49:44.000Z updated: 2020-08-12T20:49:44.000Z ``` Would it be possible to add `updated`? I have a few plugins which I can now replace by this plugin! Great work! <!-- github-comment-id:678124037 -->
Author
Owner

I can also open a PR and contribute if you're busy :-)

I can also open a PR and contribute if you're busy :-) <!-- github-comment-id:678124224 -->
Author
Owner

Looking here: https://gohugo.io/content-management/front-matter/
updated should probably be lastmod;

Also why is the date not in quotes? On the above page, they have the inverse approach everything not quoted except the date. The plugin seems to do it the other way around.

But maybe these things are Hugo specific. BTW I have no opinion here as I do not know much about frontmatter, just general questions :-)

Looking here: https://gohugo.io/content-management/front-matter/ `updated` should probably be `lastmod`; Also why is the date not in quotes? On the above page, they have the inverse approach everything not quoted except the date. The plugin seems to do it the other way around. But maybe these things are Hugo specific. BTW I have no opinion here as I do not know much about frontmatter, just general questions :-) <!-- github-comment-id:678131236 -->
Author
Owner

FYI, I do not have:

{
  "frontMatter.taxonomy.noPropertyValueQuotes": ["date"]
}

in my config so I would expect the date to be quoted but my experience was that it is not quoted when inserting it.

FYI, I do not have: ``` { "frontMatter.taxonomy.noPropertyValueQuotes": ["date"] } ``` in my config so I would expect the date to be quoted but my experience was that it is not quoted when inserting it. <!-- github-comment-id:678132739 -->
Author
Owner

@Fasani why, no idea actually. I had issues in the past with Hugo and dates. When they were with quotes, I had some formatting issues. Found an article back then where someone proposed to use it without. That is why it got implemented. If you do not experience any issues with it. I would just ignore it ☺️.

PRs are always welcome.

@Fasani why, no idea actually. I had issues in the past with Hugo and dates. When they were with quotes, I had some formatting issues. Found an article back then where someone proposed to use it without. That is why it got implemented. If you do not experience any issues with it. I would just ignore it ☺️. PRs are always welcome. <!-- github-comment-id:678455053 -->
Author
Owner

The description check has now been implemented in version 1.3.0. Feel free to test it out.

The description check has now been implemented in version `1.3.0`. Feel free to test it out. <!-- github-comment-id:678660120 -->
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#9