negrel / hugo-theme-pico

:black_circle: Pico is a minimalist, readable, responsive, light and beautiful Hugo theme.

Home Page:https://sponge-bob.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experience section: How to use markdown lists?

phloose opened this issue · comments

Thanks for the great and simplistic theme! Like the title says, i was not able to find out how to use markdown lists in the description section a single experience. I saw that you yourself did this on you homepage negrel.dev. Could you elaborate on how to achieve this?

Hello and thank you !
The following code snippet is used on my website:

[[period]]
  title = "Student"
  subtitle = "[IUT Networks & Telecommunications](https://www.iut-rt.net/)"
  location = "Marseille, France"
  date_start = "2018-09-03"
  date_end = "2020-07-11"
  description = """
- OOP
- Network architecture
- Web development
  """

I think that the multi-line string (see TOML spec) is what you're looking for.
You may want to switch to YAML if you prefer.

Thanks a lot! Another question regarding links in the subtitle or elsewhere in the description: Is it possible to open them in a separate window? At the moment when a user clicks on a link he will leave the site.

Yes, by default, only absolute links are opened in a new tab (see layouts/_default/_markup/render-link.html). So you have two solutions:

  • Write an absolute URL for pages to open in a new tab.
  • Write html in your markdown and allow unsafe rendering (see goldmark renderer options)