I made a liquid template for navigation menu and tried to add active css rule to current active menu item.
Here are my liquid tag to render the menu item:
I have set up a next.js markdown blog using mdx: https://mdxjs.com/.
I would like to be able to reference data in the frontmatter section within the mdx file itself. Something like this:
// my-file.mdx
---
title: "My blog post title"
# {title} //…
I'm making some changes to a Gatsby starter and ran into an annoying problem with fontawesome brand icons. The problem is that unlike most icons, that are called faPhone or something like that, the brand icons also need a prefix ,fab.
So I can make…
In Eleventy (11ty) the page source can define custom data in it's front-matter. E.g.:
---
title: this is front-matter data
---
Page content
{% myCustomTag valueOfArg1 %}
where the custom tag (also known as shortcode in Eleventy) is generating extra…
I am currently developing a personal blog using Jekyll (using this blog post for an easy setup guide). I am trying to re-use an HTML file so that one url "/" displays some text while a different url "/posts" displays something slightly different. To…
Using Jekyll 2.5.3, I've tried to set default values in _config.yml (I'm just playing around to get a feel for it right now). I'm trying to set a default layout right now on a site I'm serving locally. I have set --watch and that's working fine.…
I am setting the defaults in my _config.yml file but they are not being picked up:
defaults:
-
scope:
path: ""
type: "posts"
values:
layout: "post"
I am comparing it with another Jekyll site that I maintain where my…
I'd like to match keys and some array values inside a front matter to convert them to tags in a translation memory. Basically, any matched key and value will be filtered out and appear as non-translatable tag.
The system supports Java regexp.
Here's…
I am using Hexo to post my blog online and Hexo requires me to include a YAML Front Matter in my .md file so it can render the title in my online blog.
Manually adding the YAML Front Matter title file is tedious. How can I automatically generate the…
when I try to run the following it gives the Error Exception where it can't read the title on array. Can you let me know how to fix this?
**My post code from app/models and as below **
Am creating my first Jekyll (using version 4.0.0) powered site. Problem is the variables in Front Matter are not recognized.
HTML in _includes (writing-post-featured-image.html)
I run a Jekyll blog in multiple languages using the setup making Jekyll multilingual by Sylvain Durand without use of any plugin.
All posts have the following markup:
---
title: Hello world!
lang: en
ref: hello
---
The posts are using the normal…
I would like to know if it's possible to add if statement in Front Matter to be selective about using attributes depending on page.url
The pages are generated from .md file virtually from a plugin using a base template so I need to add some…