yaml-front-matter | A to the point yaml front matter parser | YAML Processing library
kandi X-RAY | yaml-front-matter Summary
kandi X-RAY | yaml-front-matter Summary
A to the point yaml front matter parser
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a value from an array using dot notation .
- Parses a YAML document .
- Checks if a key exists in an array .
- Get matter .
- Parse a file .
- Checks if value is accessible .
- Return a value .
- Get the message body .
yaml-front-matter Key Features
yaml-front-matter Examples and Code Snippets
Community Discussions
Trending Discussions on yaml-front-matter
QUESTION
I'm adapting this starter project as my own blog. I'm referring to this Eleventy document to get the post excerpt.
My code:I started by editing my .eleventy.js to enable gray-matter excerpt, per the above document, like so:
...ANSWER
Answered 2020-Aug-05 at 07:59As per the documentation, eleventy makes the excerpt available under the page
variable (see Eleventy supplied data), not as a 'top-level' property of a collection item. The page
variable is part of the data
object of a collection item. If you use post.data.page.excerpt
instead of post.excerpt
it will work as expected:
QUESTION
I have following code on server side:
...ANSWER
Answered 2020-May-04 at 08:11It seems in this case the error shows because the version of ts-node
being used does not support ES Module syntax, as is being discussed here. I found out from that ticket that ts-node v8.10.0
provides experimental support, so maybe updating it will get this working. I don't know of any other solutions, but you should be able to run the files by compiling the .ts
to .js
and run them with node
instead of ts-node
. Let me know otherwise, I'm happy to dig a little further.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install yaml-front-matter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page