liquid Questions

7

I am working with an input string like 'James "Jim" Smith' with a person's nickname being double quoted within a string. I have been trying to find if a person has a nickname by using the...
Reredos asked 29/5, 2017 at 23:27

3

i've got a static content site and I actually don't want articles display in reverse chronological order, using jekyll/liquid, what are some creative ways I can accomplish this without having to re...
Recite asked 25/3, 2014 at 21:57

2

I'm editing the Section/collection-template.liquid file (this file is referenced to by the Template file "collection.liquid"). My goal is to show a specific collection by it's Title. I've tried a...
Purport asked 6/4, 2018 at 19:1

3

Solved

I am using Jekyll and Github pages, testing locally using bundle exec jekyll serve. Everything else works fine so far. My posts are in a /_posts folder off of the root, and are outputted correctly...
Leclaire asked 2/11, 2014 at 18:38

2

Solved

I can't. I know. Shopify imposes a limit when it comes to the number of products one can loop through on a page. The current limit is 50. Actually, this is not true. One can loop through all ...
Flyleaf asked 30/1, 2016 at 18:54

3

Solved

When calling items from an array in a Liquid template, how do you call does not contain or not in array?
Cordelier asked 13/6, 2015 at 18:30

4

Solved

I am setting up a basic Github-hosted Jekyll website (so minimal, I am not even bothering to change the default theme). I have a nested site with a small number of first-tier pages that I would lik...
Servant asked 22/8, 2014 at 17:21

3

Solved

I'm using Jekyll on GitHub pages, and I want to have hierarchical categories like this: animals -> mammals -> cats -> _posts -> housecat.md, tiger.md animals -> mammals -> dogs -> _posts -> poodl...
Lett asked 1/8, 2016 at 13:27

6

I am trying to check if my current page is a collection page not a single product page in some collection. I mean for example if someone goes to collection page of shoes then I can check using col...
Pains asked 8/10, 2016 at 12:11

5

How can I use Jekyll to test for the existence of a file? To clarify, I want to run an {% if %} statement to check if an image file exists with the same name as the page I am on. On my page in th...
Maymaya asked 13/5, 2013 at 18:33

4

Solved

Is it possible to {% include file.html %} without the tags inside it getting rendered? I've tried {% include file.html | escape_once %} which gives an error running it through {% raw %} {% includ...
Magenta asked 7/6, 2016 at 19:57

4

Solved

I have frontmatter that looks like this: products: - item: item name price: 39.50 - item: item number two price: 12.50 How can I output these variables in liquid with trailing zero's? Note t...
Colatitude asked 16/6, 2016 at 14:30

8

Solved

I am using the standard jekyll installation to maintain a blog, everything is going fine. Except I would really like to tag my posts. I can tag a post using the YAML front matter, but how do I ge...
Mcniel asked 11/9, 2009 at 3:25

4

i'm using this line of code <img data-animate="zoomIn" srcset="{{ 'device1.png' | asset_path | magick:resize:549x395 magick:quality:100 }} 1024w, {{ 'device1.png' | asset_path | magick:resize:2...
Trunnel asked 19/8, 2016 at 14:4

4

Solved

I'm getting this output from my Jekyll website generator Liquid Exception: Tag '{%' was not properly terminated with regexp: /\%}/ What's going on?
Slipon asked 23/3, 2013 at 11:26

2

Solved

I can't find any documentation on how to add custom fields for the user registration forum so I tried something but didn't work: <div class="single-full-width customer"> <div class="logi...
Dorren asked 17/3, 2013 at 13:12

2

Solved

I just read this related answer: How can I convert a number to a string? - Shopify Design — Ecommerce University To convert a string to a number just add 0 to the variable: {% assign variabl...
Tonjatonjes asked 29/11, 2014 at 3:59

3

Solved

I'm trying to do something very simple. I wrote: {% for product in collection.products %} {{ if forloop.index = 1 }} Hello World! {{ endif }} {% endfor %} Problem: "Hello World!" appears in e...
Puggree asked 21/4, 2013 at 6:22

4

Solved

I am using the YAML heading of a markdown file to add an excerpt variable to blog posts that I can use elsewhere. In one of these excerpts I refer to an earlier blog post via markdown link markup, ...
Hagio asked 23/1, 2013 at 18:48

3

Solved

I have a folder of images that I'd like to render on a page. I'd like these images to be ordered/filtered a particular way. To do that, I understand that the images need to first be together in an ...
Dupery asked 28/8, 2017 at 20:11

3

Solved

I have a field in my settings.html where I am expecting the user to input multiple paragraphs separated by two newline characters. I would like to split this string of input into an array of string...
Bushbuck asked 29/12, 2014 at 19:11

2

Solved

I'm wondering if there is a liquid filter that would limit a url to the domain name only. For example, let's say I wanted to have a link to an article called "The Greatest Article Ever" and the ur...
Raffish asked 18/7, 2013 at 6:20

4

I'm fairly new in Liquid environment and wonder if you could possibly initiate object variable in Liquid file as similar as JS? let person = [{ 'name' : 'John Doe', 'age' : '20' }]; I'm aware ...
Dotson asked 22/8, 2019 at 4:1

5

Solved

When I print the content of the post with {{ post.content }} It is outputted like: <p>Lorem ipsum...</p> How can I remove the <p> tag when generated. I need it to be removed...
Pram asked 28/7, 2013 at 21:33

2

I am having trouble finding the liquid app object. Shopify mentions about this object here https://shopify.dev/changelog/new-app-liquid-object but when we click the link within it(https://shopify.d...
Renfrow asked 12/7, 2022 at 12:46

© 2022 - 2024 — McMap. All rights reserved.