Questions tagged [yaml-front-matter]
126 questions
2
votes
1 answer
html tags in foundation framework for email's frontmatter
Is it possible to add br tag in front-matter (using foundation for email)? Or line-break that's equivalent of
. I am trying to add something like: --- myTextHeadline: Text has a
line break. myText: Can text have an emphasis tag…
. I am trying to add something like: --- myTextHeadline: Text has a
line break. myText: Can text have an emphasis tag…

byte me
- 71
- 8
2
votes
1 answer
Is there a way to loop through the front matter of a jekyll collection?
I have a Jekyll collection which is not being output, but elements of which are being displayed on a single page, like this:
{% for element in site.collection %}
{{ element.content }}
{% endfor %}
I would like to be able to do something like…

dawaltco
- 338
- 1
- 11
2
votes
2 answers
Front-matter Conditional Build with Jekyll
What is the proper approach for generating a Jekyll site but excluding certain content based on Frontmatter.
For example, I have a any number of pages that have front-matter of "access: confidential" ... I want to build my jekyll site and have it…

empire29
- 3,729
- 6
- 45
- 71
2
votes
0 answers
Jekyll: different permalinks in different languages
I'm building my website on Jekyll in Czech and English. After launch it'll run on different domains but with same structure. But I need to have different permalinks for pages according to language.
E.g. page "About us" should be…

Lukáš Kraft
- 21
- 4
2
votes
1 answer
Bigcommerce Stencil declare custom front-matter variable
I would like to define a list of featured category IDs within my homepage template. Is it possible to define a custom variable in the front matter? I can't seem to get it working:
Here is the default front-matter in templates/pages/home.html with my…

flyingL123
- 7,686
- 11
- 66
- 135
2
votes
0 answers
How can I use a collection list outside its parent in another collection in assemble?
Trying to use a collection inside another directory is proving difficult.
Main collection dir:
/src/templates/roles/one.hbs
Etc etc
Then in my main pages dir:
/src/templates/pages/roles.hbs
I am trying to use a collection list inside the above…

M dunbavan
- 1,157
- 5
- 22
- 57
2
votes
3 answers
Jekyll includes and YAML frontmatter
Is it possible to offload frontmatter to an include in some manner? My Jekyll site uses a frontmatter variable for the page title, however I have some pages that share an include due to code repetition. Putting the frontmatter for the page title in…

RedBassett
- 3,469
- 3
- 32
- 56
2
votes
2 answers
Jekyll: including a post inside another post
Does Jekyll provide a way to include a post inside another post? I know that sounds a bit goofy, but I'm using it for a cooking/recipe site. Some of my recipes are made up of components, or other, smaller recipes.
I'm looking for a way to include a…

clark
- 195
- 1
- 8
1
vote
1 answer
Where is the official documentation for R Markdown YAML frontmatter?
I can't find the official documentation for R Markdown YAML frontmatter, for example for this option:
editor_options:
chunk_output_type: console
I've looked into R Markdown: The Definitive Guide (which, by the way, it's the book linked from the…

robertspierre
- 3,218
- 2
- 31
- 46
1
vote
1 answer
Hugo reference frontmatter image: in index.html
I have fontmatter that looks like
---
title: "My First Post"
date: 2023-04-07T22:11:00+02:00
draft: false
slug: "hi-first-post"
tags: ['tg1','tag2']
image: "images/featured.jpg"
---
in my index.html I have
{{ range .Site.RegularPages.ByDate.Reverse…

sourlemonaid
- 504
- 2
- 6
- 19
1
vote
1 answer
Jekyll adding unwanted space before and after links
I'm learning Jekyll. I finished the step by step tutorial: https://jekyllrb.com/docs/step-by-step/01-setup/
Variables seem to generate spaces before and after. Eg. item.name is now outputting the following:
Home
Blog…

aroni
- 45
- 3
1
vote
0 answers
how use frontmatter-markdown in react js I have a file.md and I want to use Frontend to extract some data
I have a file.md and I want to use Frontend to extract some data
This does not work for me
https://hmsk.github.io/frontmatter-markdown-loader/samples-react.html
---
title: "API",
description: "Restful API",
category: "API",
slug:…

ahmedsalama
- 23
- 4
1
vote
0 answers
Can't get values of nested frontMatter objects
I'm using gray-matter/frontMatter and remark-mdx to read values of an .mdx file in a nextJS project:
.mdx file:
details:
- pronoun: she/her
- favoriteThing: learning
- leastFavoriteThing: winter
- favoriteMovie: kiki's delivery service
-…

JordyJordyJordyJordan
- 137
- 1
- 9
1
vote
0 answers
Custom rendering on FrontMatter markdown (to re-write img src)
With the Frontmatter markdown compiler, it is possible to refer to completely custom components in the markdown, and then supply the component to render it in the .tsx
But what I am trying to do is render all img tags in a custom way.
Specifically,…

Michael Lorton
- 43,060
- 26
- 103
- 144
1
vote
1 answer
How to convert from Word to Markdown with Front Matter with pandoc
I want to convert a Word document to Markdown, so I can use the result with Jekyll.
This works partially:
pandoc "in.docx" -f docx -t markdown -o "out.md"
However, pandoc doesn't generate a (YAML) Front Matter block, and I can't find a command line…

doekman
- 18,750
- 20
- 65
- 86