Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add metadata in Github-Flavoured-Markdown?

I would like to add metadata information to my markdown files like author, tags, ... . Is it possible to add metadata to a github-flavoured-markdown file, like you can do with multimarkdown?

like image 856
Peter Avatar asked Nov 08 '22 00:11

Peter


1 Answers

How you add metadata to a markdown file will depend on how that file is rendered on web. If you are using GitHub pages to turn that markdown into HTML for your website then the GitHub support is likely to offer you some advice.

However if you're not using GitHub Pages, you'll need to discuss this with whatever tool or renderer you're using to turn your markdown into HTML.

For example in my case I was using GitHub pages to turn that markdown into HTML. As I was using one of their builtin themes they asked me to modify the content of the layout file that I was inheriting in order to add more metadata items to it.

like image 69
Abhey Rana Avatar answered Nov 15 '22 10:11

Abhey Rana