In the front matter section, if I set the title and description as follows:
---
layout: post
title: "ALTERNATIVE ECONOMIC DISCOURSE IN THE FILM 'THE TAKE'"
author: "Anang Putra Setiyawan, Ni Made Ras Amanda Gelgel, I Gusti Agung Alit Suryawati"
description: "Alternative Economic Discourse in the Film 'The Take'. Film is..."
categories: communication
tags: Not Available
---
I encounter an error like the following:
Error: YAML Exception reading C:/jurnal/_posts/komunikasi/2023-07-21-id-101064.md: (<unknown>): did not find expected key while parsing a block mapping at line 2 column 1
It seems that the issue lies in the apostrophe in the title?? (and possibly in the description section?). Is there a way to still use quotation marks in the front matter? In some cases, we need apostrophe marks in the title.
have you removed all the single quotes to see if that really is the issue?
did you try it without the double quotes?
I would simplify everything (no single or double quotes) till it works and then go forward until you know exactly what caused it. Single quotes should be ok one way or another.
certainly can’t have an extra colon in there as that is the separator between key and value, I think you can escape it somehow or maybe it works when quoted.
Keep in mind the normal apostrophe on the key board is ’ and does not curve one way or the other like this does:
I think that is a curly quote and those come in single and double and I have seen those cause issues, I avoid them.
Are you sure the file you are working on is utf-8 encoded? I can’t remember if that still causes issues if it is not but my guess is it needs to be utf-8. Since you are converting the content somehow maybe the thing exporting the files is not encoding them properly.
if you are using VS Code as your editor it will tell you the encoding of the file at the bottom - at least I think it does on its own, I don’t remember telling it to do this for me: