ismnoiet / jekyll-posts-generator

Generate jekyll posts from the terminal
10 stars 5 forks source link

indentation of tags causes Jekyll throw an error message #4

Closed andy5995 closed 6 years ago

andy5995 commented 6 years ago

indentation of tags causes Jekyll throw an error message

This was a problem after I added the -t code in my patch. All the lines were indented by 4 spaces, and Jekyll apparently looks for hyphens in the first column.

This seems to be the format Jekyll likes best:

---
layout: post
title: World needs revolution in mental health care Dainius Pūras
date:   2017-10-30 02:00:00 -0500
tags:
- doctors
- press releases
- human rights
- UN
categories:
- EN
href: http://www.ohchr.org/EN/NewsEvents/Pages/DisplayNews.aspx?NewsID=21689&LangID=E
---
andy5995 commented 6 years ago

Just learned that tags can be in this format:

tags: [colour, USA, Vegas]

I don't know how long that's been a feature, but I'm using Jekyll 3.6.2.

That would obviously be preferable to all the dashes. The string could be passed from the command line without any changes.

andy5995 commented 6 years ago

I noticed on some other Jekyll-run sites that indentation shouldn't be a problem, so I tested this again, and couldn't reproduce.

So sorry, another false bug report. I'll definitely examine the file more closely next time.