What type of description are you looking to add? I only know about the title and tags; plus you can add a cover image that will show up on twitter, etc.
Some of the "descriptions" you see might just be the first few lines of the post?
I know this post is quite old but I just had the same question.
If you don't do anything then it just takes the first few lines of your article by default. If you want to set a custom description then there are two options that I could find. Option 1 seems much better to me.
Remove the ' before the --- below, I just added it before the --- to stop markdown reformatting it.
Add a frontmatter section containing a description field to the top of the article (it will only be visible in edit mode):
'---
description: A great article about how to set the description of an article on dev.to
'---
Change the editor to basic markdown on this page: dev.to/settings/ux. When you do that new posts will have this at the top when in edit mode. However then you have other things that you need to set manually that you :
'---
title:
published: false
description:
tags:
//cover_image: direct_url_to_image.jpg
'---
After setting that description field I see the custom description in the API.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What type of description are you looking to add? I only know about the title and tags; plus you can add a cover image that will show up on twitter, etc.
Some of the "descriptions" you see might just be the first few lines of the post?
Hmm well i am talking about this key "description"
curious as of how it can be filled?
Huh! Not sure actually :) @ben might know maybe? (don't know if @ mentions work here)
I know this post is quite old but I just had the same question.
If you don't do anything then it just takes the first few lines of your article by default. If you want to set a custom description then there are two options that I could find. Option 1 seems much better to me.
Remove the ' before the --- below, I just added it before the --- to stop markdown reformatting it.
Add a frontmatter section containing a description field to the top of the article (it will only be visible in edit mode):
'---
description: A great article about how to set the description of an article on dev.to
'---
Change the editor to basic markdown on this page: dev.to/settings/ux. When you do that new posts will have this at the top when in edit mode. However then you have other things that you need to set manually that you :
'---
title:
published: false
description:
tags:
//cover_image: direct_url_to_image.jpg
'---
After setting that description field I see the custom description in the API.