Home > Blockchain >  How can I add html in the description section on _config.yml for github page
How can I add html in the description section on _config.yml for github page

Time:12-06

title: My Profile
description: My description
theme: jekyll-theme-minimal

This is my code in the on _config.yml file so far. I would like to add html code to show the link for my website under my description.

CodePudding user response:

To add html code to the yml file, you can simply add html directly under the description topic. But if it is multi-line html code, I would suggest you to add > or | before your content to span your values to multiple lines. it is also easier to read and edit.

For example,

title: My Profile
description: >
    My description
    <br><br>
    <a href="your_website">website</a>
theme: jekyll-theme-minimal
  • Related