Questions tagged [liquid]

Liquid is an open-source template language created by Shopify and written in Ruby. It is the backbone of Shopify themes and is used to load dynamic content on storefronts. Liquid has been in production use at Shopify since 2006 and is now used by many other hosted web applications.

Liquid is a templating engine for creating web pages. From the Liquid website:

Liquid is an extraction from the e-commerce system Shopify. Shopify powers many thousands of e-commerce stores which all call for unique designs. For this we developed Liquid which allows our customers complete design freedom while maintaining the integrity of our servers.

Liquid has been in production use since June 2006 and is now used by many other hosted web applications.

It was developed to for usage in Ruby on Rails web applications and integrates seamlessly as a plugin but it also works excellently as a stand alone library.

In addition, Liquid is also used as the main templating engine on GitHub pages through the Jekyll static site generator.

3995 questions
1
vote
1 answer

external JSON data fails to output anything in Jekyll

I'm trying to fetch external JSON data into Jekyll and things are not working out. I found this code (link to a gist), that is a fork of another gist... this just adds the external method ("from url"). I tried to morph that into my own tag plugin…
Joonas
  • 7,227
  • 9
  • 40
  • 65
1
vote
2 answers

Count days in Jekyll

I have a a Jekyll website and I would like to create a day counter, starting from 1 and then every day it should add +1 to the counter. So today it would say: Day 1 Tomorrow it should say Day 2 The day after: Day 3 is that possible to do in…
M5corn
  • 171
  • 5
1
vote
1 answer

Not able to load images on Github pages Blog post

I wanted to publish a blog post, which contains a plot. I am perfectly able to view and load the image in markdown, but when I try to publish to on my github pages, I can see everything perfectly except for the plot. Here is my Github repo for my…
1
vote
1 answer

Jekyll truncate number of blog posts conditional on excluding some

On my Jekyll website, I have an overview page on which I list my last 10 blog posts. However, I also assign a tag exclude to some of my blog posts and those I don't want to show. This works, but then I don't get the last 10 blog posts, but 10 minus…
ulima2_
  • 1,276
  • 1
  • 13
  • 23
1
vote
1 answer

liquid: dynamically hide placeholder links

I have a YAML file in my _data folder that contains a list of links I have in my main nav. _data/nav.yml: main: - title: Link A - url: "/path/to/linkA" - title: Link B - url: "/path/to/linkB" - title: Link C - url: "#" I then use…
duplic8
  • 109
  • 1
  • 9
1
vote
1 answer

Weird Shopify Liquid Forloop Behavior - Page Get's Messed Up When Using A Forloop Within A Tag Forloop

I've created a system for my client to be able to display a product details/specification table on product pages with product tags which works similar to the Supply theme's grouped filter tags eg. a product that has a tag "Brand_Philips" will…
martin schwartz
  • 863
  • 8
  • 17
1
vote
1 answer

Inline CSS while still using the default directory structure

I have a standard Jekyll setup and use sass to compile some CSS. But I can't figure out how to inline the compiled CSS while still using the default directory structure. Current I have this code in my _includes/head.html file:
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
1
vote
1 answer

author.name + URL issue in Jekyll

I'm back to work on a jekyll project. When I first started working on this project, I asked on this page how to pull an author's name in a jekyll post, and was advised to use this code: {{ site.data.authors[page.author].name }} ...which worked…
PiaP
  • 15
  • 2
1
vote
1 answer

Jekyll: How to include specific file from collection?

I have a collection of css files I combine into one with Jekyll. This is very easy: {% for file in site.css %} {{ file }} {% endfor %} However, there is a special case where I want to include just a single one of those files. The pages.css…
The Oddler
  • 6,314
  • 7
  • 51
  • 94
1
vote
1 answer

Filter Array Liquid in Jekyll

I have an include which renders my posts in a certain format. I am passing the posts to the include like below: {% include post-list.html posts=site.posts %} However, I would like to filter out a certain category before passing it to the include.…
dtsn
  • 1,077
  • 1
  • 10
  • 17
1
vote
1 answer

Shopify Slate variant not updating

I have a theme built on top of Shopify Slate. All my products have various size and colour variants. These are outputted on the page as two select elements - one for size and one for colour. When I choose options from these two selects and add my…
Infobahn
  • 17
  • 1
  • 7
1
vote
1 answer

Liquid syntax remove apostrophe

We are trying to solve this issue with an apostrophe in liquid syntax. We've this value - 'products':'bags' in the variable and we would like to split it and remove the apostrophe. {% assign values = field | remove: "'" | split: ":" %} But this is…
Vishnu Vankayala
  • 129
  • 1
  • 3
  • 15
1
vote
1 answer

Slider Images in product.liquid of Shopify

I'm using flexslider.js, but im getting the error when removing the variant for images. Here's the code below of product.liquid of shopify. how to resolve this issue in flexslider?
Newbie_prog
  • 23
  • 1
  • 7
1
vote
1 answer

How to scale Javascript slideshow with browser size

so I've done this little automatic slideshow in Javascript/jQuery. It works really well however I cannot figure out how to scale it with screen size, make it liquid. It's currently optimized for 1920x1080. I've tried assigning this value…
vuffer
  • 166
  • 1
  • 5
  • 17
1
vote
1 answer

Jekyll gh-pages disappearing site url

I built a blog using jekyll and githubpages, and everything was going swimmingly until I added a custom domain name. After adding a custom domain name any link embedded in the website to another part of the blog (except for the homepage) is…
user7829260
1 2 3
99
100