Answer the question
In order to leave comments, you need to log in
Jekyll article title?
As you know, Jekyll (static site generator) takes the title of the article from the file /_posts/2016-03-08-Hello-world.md . But if I need to specify "-" in the title of the article so that it is displayed in the title, how can I do this?
Answer the question
In order to leave comments, you need to log in
Jekyll was the first static site generator to introduce the concept of a "preface" - a way to add metadata to templates or markdown files. The lead consists of a small amount of YAML data at the beginning of each file, separated by three hyphens (---) from the end and from the beginning:
---
title: A blog post
date: 2014-09-01
tags: ["meta", "yaml"]
---
# Blogpost with meta data
This is a short example of a Markdown document with meta data as front matter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question