jekyllkramdown

How to put colon in a Jekyll/Kramdown post title?


The title of my Jekyll/Kramdown post contains a colon

---
layout: post
title: abc : def
---

and the page fails to generate. According to this answer, I should replace the colon by :, so I did that. In the preview on Github it showed correctly as a colon, but in the actual post it just showed :. What might be the fix here?


Solution

  • Found the solution. I just wrote

    title: "abc : def"