Reference

  • https://jekyllrb.com/docs/step-by-step/02-liquid/

Tags

  • https://jekyllrb.com/docs/liquid/tags/

%-: remove empty space on the tagno empty space
%: empty space on the tag

no empty space

syntax highlight

def foo
  puts 'foo'
end
def foo():
  print('foo')
  • Link by Tag: provides link validation on build time. if front matter not exists, the error below occurs.
    • Liquid Exception: Could not find document ‘_posts/jekyll/2023-12-05-jekyll-seo.md’ in tag ‘link’. Make sure the document exists and the path is correct. in /github/workspace/_posts/jekyll/2023-12-04-jekyll-liquid.md
  • [Link by variables] % link _posts/jekyll/2023-12-05-jekyll-seo.md %: this way is not supported on Github Pages.
  • Link by post_url: able to access other directory’s post with post name

Filter

  • Capitalize
  • default value
  • 03 Dec 2023

if

page variable

for

include