--- { "title": "How to Share blogs", "language": "zh-CN" } --- # How to share a blog ## Write a blog file To write a blog file, you must first include Front Matter information in the header,It mainly contains the following contents: | Variable | default | description | |--------|----------------------------|----------| | title| - | Blog title| | description | - | Blog description| | date | - | Blog date | | metaTitle | article | Mark blog file | | language | en/zn-CN | language | | layout | Article | Layout of the components | | sidebar | false | Hide the sidebar | The title, description and date fields are filled in by the blog writer, while the other fields are fixed values。 File header example: ``` --- { "title": "This is title", "description": "This is description", "date": "2021-11-03", "metaTitle": "article", "language": "zh-CN", "layout": "Article", "sidebar": false } --- ``` At the same time add Apache License content after the file header: ``` ``` Finally, write the content of the blog body。 ## Blog file storage directory After the blog file is written, put it in the corresponding directory. The Chinese language directory is:zh-CN/article/articles/,The directory corresponding to the English language is:en/article/articles/。 ## View blog Write a blog and put it in the corresponding directory, you can go to view the blog。Click the latest news button on the homepage to enter the blog list page, and click the blog title again to view the blog details。