jekyll blog new line (minimal-mistake)

Viewed 486

jekyll blog(minimal-mistakes thema) has a space to introduce myself. enter image description here

I want to write on two lines in this space.
For example

hello
world

I know that to edit this page, i need to touch the _config.yml file.

# Site Author
author:
  name             : "Choi Young-jin"
  avatar           : "/assets/images/images/avatar.png"

  bio              : "**^^**" <-----------Parts to change

  42 intra ID: yochoi
  location         : "Seoul"
  email            : "amateur.toss@gmail.com"
  links:
    - label: "Email"
      icon: "fas fa-fw fa-envelope-square"
      # url: "amateur.toss@gmail.com"
    - label: "GitHub"
      icon: "fab fa-fw fa-github"
      url: "https://github.com/amateurtoss"

The escape character does not work.

  bio: "hello\nworld"

What if I want to show the string in two lines?

2 Answers

Well it's markdown, so you should do

  bio: |-
    hello

    world

(That's a YAML block scalar, which is interpreted literally and ends with the next item on the same or lesser indentation level as bio)

You can of course also do

  bio: "hello\n\nworld"

But it's less obvious what happens here.

You can use HTML in the bio string, so you can simply use a HTML linebreak:

  bio: "hello<br>world"

The above is the only way in which I managed to have a single line break. All other options lead to either no line break or an empty line between the two lines.

Related