Questions tagged [yaml-front-matter]

126 questions
1
vote
1 answer

Jekyll content blocks in posts

so I've searched high and low for a solution but can't quite find anything that works in a clean way. What I'd like to do is define a content block and use that content block not only in the post itself but in a loop of posts as well. Consider it…
Greg Thompson
  • 886
  • 4
  • 12
  • 31
1
vote
1 answer

Jekyll: Printing Nested Front Matter

I'm trying to print my front matter to the page, but I'm having a problem printing this nested data to the page. .md file gallery: row: image: { url: 'img.jpg', ratio: '1.7486338798' } image: { url: 'img.jpg', ratio: '1.7486338798'…
realph
  • 4,481
  • 13
  • 49
  • 104
1
vote
1 answer

Jekyll custom date

I want use bellow code to display custom date in my Jekyll site {% assign m = page.date | date: "%-m" %} {% case m %} {% when '1' %}Januar {% when '2' %}Februar {% when '3' %}März {% when '4' %}April {% when '5' %}Mai {% when '6' %}Juni {% when…
3835
  • 11
  • 1
0
votes
1 answer

Is there any way to apply object-position to a div (without using )?

I'm trying to adjust an image in a
on a jenkyll template minimal-mistakes. Because the default html uses div for both images and video (I think?) it does not use the appropriate tags to be able to implement object-position. The part I'm…
MiguelP
  • 416
  • 2
  • 12
0
votes
1 answer

Ruby has problem with single file trying to parse YAML (frontmatter) from Jekyll project

So I am successfully parsing frontmatter with YAML.load_file(stringForFilePath, permitted_classes: ['Date']) on a whole bunch of files except on a single file I get this error: control characters are not allowed at line 1 column 1…
user1086516
  • 887
  • 3
  • 9
  • 21
0
votes
0 answers

How can I correctly import a list of images defined in markdown frontmatter into an astro layout?

I am building a portfolio website with Astro, where each project has an object with media defined in its markdown frontmatter, like so: media: - text: "descriptive text about first cluster of images" paths:…
Artmole
  • 143
  • 6
0
votes
1 answer

How to access the front matter in a docusaurus website?

I am working on a docusaurus based website which has front matter available in the following format. --- id: introduction title: Welcome to Rowy slug: / --- I am integrating Cusdis (an open source commment system plugin) and I wish to consume the…
Bhavya Verma
  • 101
  • 1
  • 6
0
votes
1 answer

Jekyll: Error: This file is already being loaded + unrecognized front matter

I have a jekyll based blog. When I try to build it I get this error: ... Generating... Jekyll Feed: Generating feed for posts Warning on line 1, column 1 of /home/john/Projects/blackblog/assets/css/index.sass: This selector doesn't have…
Jan Černý
  • 1,268
  • 2
  • 17
  • 31
0
votes
1 answer

Front Matter is Appearing on Page

I have layout chaining on an 11ty site. When I add front matter to the base template, the front matter gets rendered and appears in the browser. I don't understand why. Note: Also using nunjucks. base.njk: --- test1: hello --- HTML…
Jcott
  • 1
  • 1
0
votes
0 answers

Keep indentation for array value in parsed YAML frontmatter

I am using https://github.com/waiting-for-dev/front_matter_parser to parse and update values in the frontmatter of my markdown files. The following code removes the original indentation of two spaces for array values: require…
Christian
  • 4,902
  • 4
  • 24
  • 42
0
votes
1 answer

How to define Jekyll frontmatter with a nested list

I'm trying to define the sections of a page in the frontmatter of my Jekyll post like so: --- title: Foobar sections: - First - Second - Third --- This works fine, but I would now need to have some sections with nested items; no matter how I try,…
kontur
  • 4,934
  • 2
  • 36
  • 62
0
votes
0 answers

BigCommerce Updating global context variable

I am trying to add additional data to objects already stored in the global context by front matter. I am assigning front matter results to a global context variable in the home.html page --- products: new: limit:…
0
votes
1 answer

Eleventy linking post author to author bio

I'm working on a site that essentially has posts, those posts have tags and also authors. there will only ever be one author per post. I have the blogs working as intended as well as the tags, what I've hit a stumbling block with is relating an…
Daz Lee
  • 144
  • 1
  • 9
0
votes
0 answers

How should ElasticSearch be configured to index JSON meta data structures in text files?

When adding front matter to a markdown document in i.e. GitLab, I am able to find the property using fulltext search. --- title: "My subject" author: "Jane Doe" tags: - tag: Book - tag: Popular - tag: Romance --- # Chapter 1 - This is my…
Dennis
  • 871
  • 9
  • 29
0
votes
1 answer

Using yq in Front Matter .md files with conditional operations

I have Front Matter files like this: --- title: BMW i320 M3 150HP Petrol 2020 category: sportscar color: metal --- MD content Starts Here Lorem ipsum Lorem Ipsum Lorem Ipsun Lorem ipsum Lorem Ipsum Lorem Ipsun Using kislyuk's python-yq, I managed…
1 2 3
8 9