jekyll-docs 3.9.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-docs.rb +3 -3
- data/site/404.html +10 -7
- data/site/css/screen.css +3 -1
- data/site/css/screen.css.map +28 -0
- data/site/docs/assets/index.html +412 -453
- data/site/docs/code_of_conduct/index.html +447 -501
- data/site/docs/collections/index.html +487 -674
- data/site/docs/community/bug/index.html +603 -0
- data/site/docs/community/index.html +635 -0
- data/site/docs/conduct/index.html +447 -515
- data/site/docs/configuration/default/index.html +682 -0
- data/site/docs/configuration/environments/index.html +641 -0
- data/site/docs/configuration/front-matter-defaults/index.html +738 -0
- data/site/docs/configuration/incremental-regeneration/index.html +631 -0
- data/site/docs/configuration/index.html +405 -1230
- data/site/docs/configuration/liquid/index.html +616 -0
- data/site/docs/configuration/markdown/index.html +766 -0
- data/site/docs/configuration/options/index.html +1011 -0
- data/site/docs/configuration/webrick/index.html +615 -0
- data/site/docs/continuous-integration/buddyworks/index.html +393 -479
- data/site/docs/continuous-integration/circleci/index.html +465 -481
- data/site/docs/continuous-integration/travis-ci/index.html +450 -507
- data/site/docs/contributing/index.html +425 -514
- data/site/docs/datafiles/index.html +411 -453
- data/site/docs/deployment-methods/index.html +9 -871
- data/site/docs/deployment/automated/index.html +663 -0
- data/site/docs/deployment/index.html +607 -0
- data/site/docs/deployment/manual/index.html +631 -0
- data/site/docs/deployment/third-party/index.html +639 -0
- data/site/docs/drafts/index.html +9 -634
- data/site/docs/extras/index.html +9 -687
- data/site/docs/front-matter/index.html +799 -0
- data/site/docs/frontmatter/index.html +9 -819
- data/site/docs/github-pages/index.html +407 -475
- data/site/docs/history/index.html +1370 -1154
- data/site/docs/home/index.html +9 -627
- data/site/docs/includes/index.html +425 -501
- data/site/docs/index.html +630 -9
- data/site/docs/installation/index.html +403 -540
- data/site/docs/installation/macos/index.html +716 -0
- data/site/docs/installation/other-linux/index.html +613 -0
- data/site/docs/installation/ubuntu/index.html +623 -0
- data/site/docs/installation/windows/index.html +733 -0
- data/site/docs/layouts/index.html +726 -0
- data/site/docs/liquid/filters/index.html +1169 -0
- data/site/docs/liquid/index.html +615 -0
- data/site/docs/liquid/tags/index.html +728 -0
- data/site/docs/maintaining/affinity-team-captain/index.html +395 -479
- data/site/docs/maintaining/avoiding-burnout/index.html +391 -475
- data/site/docs/maintaining/becoming-a-maintainer/index.html +391 -475
- data/site/docs/maintaining/index.html +391 -486
- data/site/docs/maintaining/merging-a-pull-request/index.html +406 -490
- data/site/docs/maintaining/releasing-a-new-version/index.html +409 -485
- data/site/docs/maintaining/reviewing-a-pull-request/index.html +392 -476
- data/site/docs/maintaining/special-labels/index.html +397 -481
- data/site/docs/maintaining/triaging-an-issue/index.html +394 -478
- data/site/docs/markdown-101/index.html +601 -0
- data/site/docs/migrations/index.html +396 -440
- data/site/docs/pages/index.html +408 -482
- data/site/docs/pagination/index.html +450 -509
- data/site/docs/permalinks/index.html +552 -587
- data/site/docs/plugins/commands/index.html +656 -0
- data/site/docs/plugins/converters/index.html +685 -0
- data/site/docs/plugins/filters/index.html +624 -0
- data/site/docs/plugins/generators/index.html +697 -0
- data/site/docs/plugins/hooks/index.html +838 -0
- data/site/docs/plugins/index.html +415 -1565
- data/site/docs/plugins/installation/index.html +681 -0
- data/site/docs/plugins/tags/index.html +699 -0
- data/site/docs/plugins/your-first-plugin/index.html +741 -0
- data/site/docs/posts/index.html +491 -627
- data/site/docs/quickstart/index.html +9 -645
- data/site/docs/resources/index.html +9 -761
- data/site/docs/ruby-101/index.html +640 -0
- data/site/docs/sites/index.html +9 -696
- data/site/docs/static-files/index.html +401 -433
- data/site/docs/step-by-step/01-setup/index.html +771 -0
- data/site/docs/step-by-step/02-liquid/index.html +756 -0
- data/site/docs/step-by-step/03-front-matter/index.html +730 -0
- data/site/docs/step-by-step/04-layouts/index.html +770 -0
- data/site/docs/step-by-step/05-includes/index.html +768 -0
- data/site/docs/step-by-step/06-data-files/index.html +738 -0
- data/site/docs/step-by-step/07-assets/index.html +773 -0
- data/site/docs/step-by-step/08-blogging/index.html +835 -0
- data/site/docs/step-by-step/09-collections/index.html +932 -0
- data/site/docs/step-by-step/10-deployment/index.html +842 -0
- data/site/docs/structure/index.html +411 -430
- data/site/docs/support/index.html +392 -476
- data/site/docs/templates/index.html +9 -1232
- data/site/docs/themes/index.html +487 -521
- data/site/docs/troubleshooting/index.html +443 -520
- data/site/docs/upgrading/0-to-2/index.html +437 -523
- data/site/docs/upgrading/2-to-3/index.html +422 -507
- data/site/docs/upgrading/3-to-4/index.html +765 -0
- data/site/docs/upgrading/index.html +395 -478
- data/site/docs/usage/index.html +409 -506
- data/site/docs/variables/index.html +504 -652
- data/site/docs/windows/index.html +9 -784
- data/site/feed.xml +269 -188
- data/site/feed/release.xml +324 -0
- data/site/fonts/lato-v14-latin-300.woff +0 -0
- data/site/fonts/lato-v14-latin-300.woff2 +0 -0
- data/site/fonts/lato-v14-latin-300italic.woff +0 -0
- data/site/fonts/lato-v14-latin-300italic.woff2 +0 -0
- data/site/fonts/lato-v14-latin-700.woff +0 -0
- data/site/fonts/lato-v14-latin-700.woff2 +0 -0
- data/site/fonts/lato-v14-latin-700italic.woff +0 -0
- data/site/fonts/lato-v14-latin-700italic.woff2 +0 -0
- data/site/fonts/lato-v14-latin-900.woff +0 -0
- data/site/fonts/lato-v14-latin-900.woff2 +0 -0
- data/site/fonts/lato-v14-latin-900italic.woff +0 -0
- data/site/fonts/lato-v14-latin-900italic.woff2 +0 -0
- data/site/fonts/lato-v14-latin-italic.woff +0 -0
- data/site/fonts/lato-v14-latin-italic.woff2 +0 -0
- data/site/fonts/lato-v14-latin-regular.woff +0 -0
- data/site/fonts/lato-v14-latin-regular.woff2 +0 -0
- data/site/help/index.html +9 -247
- data/site/img/forestry-logo.svg +19 -0
- data/site/img/jekyll-og.png +0 -0
- data/site/img/spacer.gif +0 -0
- data/site/index.html +56 -29
- data/site/jekyllconf/index.html +62 -35
- data/site/latest_version.txt +1 -1
- data/site/news/2013/05/05/jekyll-1-0-0-released/index.html +180 -115
- data/site/news/2013/05/08/jekyll-1-0-1-released/index.html +182 -117
- data/site/news/2013/05/12/jekyll-1-0-2-released/index.html +183 -118
- data/site/news/2013/06/07/jekyll-1-0-3-released/index.html +184 -119
- data/site/news/2013/07/14/jekyll-1-1-0-released/index.html +183 -118
- data/site/news/2013/07/24/jekyll-1-1-1-released/index.html +180 -115
- data/site/news/2013/07/25/jekyll-1-0-4-released/index.html +182 -117
- data/site/news/2013/07/25/jekyll-1-1-2-released/index.html +182 -117
- data/site/news/2013/09/06/jekyll-1-2-0-released/index.html +185 -120
- data/site/news/2013/09/14/jekyll-1-2-1-released/index.html +183 -118
- data/site/news/2013/10/28/jekyll-1-3-0-rc1-released/index.html +180 -115
- data/site/news/2013/11/04/jekyll-1-3-0-released/index.html +189 -124
- data/site/news/2013/11/26/jekyll-1-3-1-released/index.html +181 -116
- data/site/news/2013/12/07/jekyll-1-4-0-released/index.html +181 -116
- data/site/news/2013/12/09/jekyll-1-4-1-released/index.html +180 -115
- data/site/news/2013/12/16/jekyll-1-4-2-released/index.html +182 -117
- data/site/news/2014/01/13/jekyll-1-4-3-released/index.html +181 -116
- data/site/news/2014/03/24/jekyll-1-5-0-released/index.html +181 -116
- data/site/news/2014/03/27/jekyll-1-5-1-released/index.html +181 -116
- data/site/news/2014/05/06/jekyll-turns-2-0-0/index.html +184 -119
- data/site/news/2014/05/08/jekyll-2-0-3-released/index.html +180 -115
- data/site/news/2014/06/04/jekyll-stickers-1-dollar-stickermule/index.html +181 -116
- data/site/news/2014/06/28/jekyll-turns-21-i-mean-2-1-0/index.html +185 -120
- data/site/news/2014/07/01/jekyll-2-1-1-released/index.html +182 -117
- data/site/news/2014/07/29/jekyll-2-2-0-released/index.html +181 -116
- data/site/news/2014/08/10/jekyll-2-3-0-released/index.html +189 -124
- data/site/news/2014/09/09/jekyll-2-4-0-released/index.html +187 -122
- data/site/news/2014/11/05/jekylls-midlife-crisis-jekyll-turns-2-5-0/index.html +188 -123
- data/site/news/2014/11/09/jekyll-2-5-1-released/index.html +180 -115
- data/site/news/2014/11/12/jekyll-2-5-2-released/index.html +182 -117
- data/site/news/2014/12/17/alfredxing-welcome-to-jekyll-core/index.html +179 -114
- data/site/news/2014/12/22/jekyll-2-5-3-released/index.html +180 -115
- data/site/news/2015/01/20/jekyll-meet-and-greet/index.html +179 -114
- data/site/news/2015/01/24/jekyll-3-0-0-beta1-released/index.html +180 -115
- data/site/news/2015/02/26/introducing-jekyll-talk/index.html +180 -115
- data/site/news/2015/10/26/jekyll-3-0-released/index.html +185 -120
- data/site/news/2015/11/17/jekyll-3-0-1-released/index.html +184 -119
- data/site/news/2016/01/20/jekyll-3-0-2-released/index.html +182 -117
- data/site/news/2016/01/24/jekyll-3-1-0-released/index.html +186 -121
- data/site/news/2016/01/28/jekyll-3-1-1-released/index.html +183 -118
- data/site/news/2016/02/08/jekyll-3-0-3-released/index.html +181 -116
- data/site/news/2016/02/19/jekyll-3-1-2-released/index.html +182 -117
- data/site/news/2016/03/10/making-it-easier-to-contribute-to-jekyll/index.html +179 -114
- data/site/news/2016/04/19/jekyll-3-0-4-released/index.html +181 -116
- data/site/news/2016/04/19/jekyll-3-1-3-released/index.html +181 -116
- data/site/news/2016/04/26/jekyll-3-0-5-released/index.html +180 -115
- data/site/news/2016/05/18/jekyll-3-1-4-released/index.html +186 -121
- data/site/news/2016/05/18/jekyll-3-1-5-released/index.html +181 -116
- data/site/news/2016/05/19/jekyll-3-1-6-released/index.html +181 -116
- data/site/news/2016/06/03/update-on-jekyll-s-google-summer-of-code-projects/index.html +179 -114
- data/site/news/2016/07/26/jekyll-3-2-0-released/index.html +184 -119
- data/site/news/2016/08/02/jekyll-3-2-1-released/index.html +180 -115
- data/site/news/2016/08/24/jekyll-admin-initial-release/index.html +179 -114
- data/site/news/2016/10/06/jekyll-3-3-is-here/index.html +207 -142
- data/site/news/2016/11/14/jekyll-3-3-1-released/index.html +181 -116
- data/site/news/2017/01/18/jekyll-3-4-0-released/index.html +183 -118
- data/site/news/2017/03/02/jekyll-3-4-1-released/index.html +181 -116
- data/site/news/2017/03/09/jekyll-3-4-2-released/index.html +189 -124
- data/site/news/2017/03/21/jekyll-3-4-3-released/index.html +190 -125
- data/site/news/2017/06/15/jekyll-3-5-0-released/index.html +187 -122
- data/site/news/2017/07/17/jekyll-3-5-1-released/index.html +182 -117
- data/site/news/2017/08/12/jekyll-3-5-2-released/index.html +185 -120
- data/site/news/2017/09/21/jekyll-3-6-0-released/index.html +181 -116
- data/site/news/2017/10/19/diversity-open-source/index.html +181 -116
- data/site/news/2017/10/21/jekyll-3-6-2-released/index.html +183 -118
- data/site/news/2018/01/02/jekyll-3-7-0-released/index.html +184 -119
- data/site/news/2018/01/25/jekyll-3-7-2-released/index.html +189 -124
- data/site/news/2018/02/19/meet-jekyll-s-new-lead-developer/index.html +180 -115
- data/site/news/2018/02/24/jekyll-3-7-3-released/index.html +185 -120
- data/site/news/2018/04/19/development-update/index.html +699 -0
- data/site/news/2018/04/19/jekyll-3-8-0-released/index.html +715 -0
- data/site/news/2018/05/01/jekyll-3-8-1-released/index.html +182 -117
- data/site/news/2018/05/19/jekyll-3-8-2-released/index.html +181 -116
- data/site/news/2018/06/05/jekyll-3-8-3-released/index.html +183 -118
- data/site/news/2018/08/01/jekyll-sponsoring/index.html +748 -0
- data/site/news/2018/09/19/security-fixes-for-3-6-3-7-3-8/index.html +692 -0
- data/site/news/2018/11/04/jekyll-3-8-5-released/index.html +682 -0
- data/site/news/2019/03/18/jekyll-4-0-0-pre-alpha1-released/index.html +710 -0
- data/site/news/2019/07/02/jekyll-3-8-6-released/index.html +180 -115
- data/site/news/2019/07/20/jekyll-4-0-0-pre-beta1-released/index.html +11 -0
- data/site/news/2019/08/04/jekyll-4-0-0-pre-beta1-released/index.html +708 -0
- data/site/news/2019/08/20/jekyll-4-0-0-released/index.html +809 -0
- data/site/news/index.html +976 -326
- data/site/news/releases/index.html +820 -321
- data/site/{philosophy.html → philosophy/index.html} +1 -1
- data/site/redirects.json +1 -1
- data/site/resources/index.html +332 -0
- data/site/showcase/index.html +844 -0
- data/site/sitemap.xml +256 -81
- data/site/team/index.html +63 -77
- data/site/tutorials/cache-api/index.html +418 -0
- data/site/tutorials/convert-site-to-jekyll/index.html +155 -124
- data/site/tutorials/custom-404-page/index.html +76 -43
- data/site/tutorials/home/index.html +64 -37
- data/site/tutorials/navigation/index.html +186 -103
- data/site/tutorials/orderofinterpretation/index.html +80 -53
- data/site/tutorials/using-jekyll-with-bundler/index.html +80 -51
- data/site/tutorials/video-walkthroughs/index.html +62 -35
- metadata +102 -13
- data/site/community/index.html +0 -11
- data/site/docs/continuous-integration/index.html +0 -681
@@ -1,1234 +1,11 @@
|
|
1
|
-
<!DOCTYPE
|
1
|
+
<!DOCTYPE html>
|
2
2
|
<html lang="en-US">
|
3
|
-
<
|
4
|
-
<
|
5
|
-
<
|
6
|
-
<
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
|
12
|
-
<link rel="stylesheet" href="/css/screen.css">
|
13
|
-
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
14
|
-
<!-- Begin Jekyll SEO tag v2.6.1 -->
|
15
|
-
<title>Templates | Jekyll • Simple, blog-aware, static sites</title>
|
16
|
-
<meta name="generator" content="Jekyll v3.9.0" />
|
17
|
-
<meta property="og:title" content="Templates" />
|
18
|
-
<meta property="og:locale" content="en_US" />
|
19
|
-
<meta name="description" content="Jekyll uses the Liquid templating language to process templates. All of the standard Liquid tags and filters are supported. To make common tasks easier, Jekyll even adds a few handy filters and tags of its own, all of which you can find on this page. Jekyll even lets you come up with your own tags via plugins." />
|
20
|
-
<meta property="og:description" content="Jekyll uses the Liquid templating language to process templates. All of the standard Liquid tags and filters are supported. To make common tasks easier, Jekyll even adds a few handy filters and tags of its own, all of which you can find on this page. Jekyll even lets you come up with your own tags via plugins." />
|
21
|
-
<link rel="canonical" href="https://jekyllrb.com/docs/templates/" />
|
22
|
-
<meta property="og:url" content="https://jekyllrb.com/docs/templates/" />
|
23
|
-
<meta property="og:site_name" content="Jekyll • Simple, blog-aware, static sites" />
|
24
|
-
<meta property="og:type" content="article" />
|
25
|
-
<meta property="article:published_time" content="2020-08-05T11:55:36-07:00" />
|
26
|
-
<meta name="twitter:card" content="summary" />
|
27
|
-
<meta property="twitter:title" content="Templates" />
|
28
|
-
<meta name="twitter:site" content="@jekyllrb" />
|
29
|
-
<meta name="google-site-verification" content="onQcXpAvtHBrUI5LlroHNE_FP0b2qvFyPq7VZw36iEY" />
|
30
|
-
<script type="application/ld+json">
|
31
|
-
{"url":"https://jekyllrb.com/docs/templates/","headline":"Templates","dateModified":"2020-08-05T11:55:36-07:00","datePublished":"2020-08-05T11:55:36-07:00","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://jekyllrb.com/img/logo-2x.png"}},"description":"Jekyll uses the Liquid templating language to process templates. All of the standard Liquid tags and filters are supported. To make common tasks easier, Jekyll even adds a few handy filters and tags of its own, all of which you can find on this page. Jekyll even lets you come up with your own tags via plugins.","mainEntityOfPage":{"@type":"WebPage","@id":"https://jekyllrb.com/docs/templates/"},"@type":"BlogPosting","@context":"https://schema.org"}</script>
|
32
|
-
<!-- End Jekyll SEO tag -->
|
33
|
-
|
34
|
-
<!--[if lt IE 9]>
|
35
|
-
<script src="/js/html5shiv.min.js"></script>
|
36
|
-
<script src="/js/respond.min.js"></script>
|
37
|
-
<![endif]-->
|
38
|
-
</head>
|
39
|
-
|
40
|
-
|
41
|
-
<body class="wrap">
|
42
|
-
<header>
|
43
|
-
<div class="flexbox">
|
44
|
-
<div class="center-on-mobiles">
|
45
|
-
<h1>
|
46
|
-
<a href="/" class="logo">
|
47
|
-
<span class="sr-only">Jekyll</span>
|
48
|
-
<img src="/img/logo-2x.png" width="140" height="65" alt="Jekyll Logo">
|
49
|
-
</a>
|
50
|
-
</h1>
|
51
|
-
</div>
|
52
|
-
<nav class="main-nav hide-on-mobiles">
|
53
|
-
<ul>
|
54
|
-
<li class="">
|
55
|
-
<a href="/">Home</a>
|
56
|
-
</li>
|
57
|
-
<li class="current">
|
58
|
-
<a href="/docs/home/">Docs</a>
|
59
|
-
</li>
|
60
|
-
<li class="">
|
61
|
-
<a href="/news/">News</a>
|
62
|
-
</li>
|
63
|
-
<li class="">
|
64
|
-
<a href="/help/">Help</a>
|
65
|
-
</li>
|
66
|
-
</ul>
|
67
|
-
|
68
|
-
</nav>
|
69
|
-
<div class="search hide-on-mobiles">
|
70
|
-
<input type="text" id="docsearch-input" placeholder="Search the docs…">
|
71
|
-
|
72
|
-
</div>
|
73
|
-
<div class="meta hide-on-mobiles">
|
74
|
-
<ul>
|
75
|
-
<li>
|
76
|
-
<a href="https://github.com/jekyll/jekyll/releases/tag/v3.9.0">v3.9.0</a>
|
77
|
-
</li>
|
78
|
-
<li>
|
79
|
-
<a href="https://github.com/jekyll/jekyll">GitHub</a>
|
80
|
-
</li>
|
81
|
-
</ul>
|
82
|
-
</div>
|
83
|
-
</div>
|
84
|
-
<nav class="mobile-nav show-on-mobiles">
|
85
|
-
<ul>
|
86
|
-
<li class="">
|
87
|
-
<a href="/">Home</a>
|
88
|
-
</li>
|
89
|
-
<li class="current">
|
90
|
-
<a href="/docs/home/">Docs</a>
|
91
|
-
</li>
|
92
|
-
<li class="">
|
93
|
-
<a href="/news/">News</a>
|
94
|
-
</li>
|
95
|
-
<li class="">
|
96
|
-
<a href="/help/">Help</a>
|
97
|
-
</li>
|
98
|
-
<li>
|
99
|
-
<a href="https://github.com/jekyll/jekyll">GitHub</a>
|
100
|
-
</li>
|
101
|
-
</ul>
|
102
|
-
|
103
|
-
</nav>
|
104
|
-
</header>
|
105
|
-
|
106
|
-
|
107
|
-
<section class="docs">
|
108
|
-
<div class="grid">
|
109
|
-
|
110
|
-
<div class="docs-nav-mobile unit whole show-on-mobiles">
|
111
|
-
<select onchange="if (this.value) window.location.href=this.value">
|
112
|
-
<option value="">Navigate the docs…</option>
|
113
|
-
|
114
|
-
<optgroup label="Getting Started">
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<option value="/docs/home/">Welcome</option>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<option value="/docs/quickstart/">Quick-start guide</option>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
<option value="/docs/installation/">Installation</option>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<option value="/docs/windows/">Jekyll on Windows</option>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<option value="/docs/usage/">Basic Usage</option>
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
<option value="/docs/structure/">Directory structure</option>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<option value="/docs/configuration/">Configuration</option>
|
143
|
-
|
144
|
-
|
145
|
-
</optgroup>
|
146
|
-
|
147
|
-
<optgroup label="Your Content">
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<option value="/docs/frontmatter/">Front Matter</option>
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<option value="/docs/posts/">Writing posts</option>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
<option value="/docs/drafts/">Working with drafts</option>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
<option value="/docs/pages/">Creating pages</option>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<option value="/docs/static-files/">Static Files</option>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
<option value="/docs/variables/">Variables</option>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<option value="/docs/collections/">Collections</option>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
<option value="/docs/datafiles/">Data Files</option>
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
<option value="/docs/assets/">Assets</option>
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
<option value="/docs/migrations/">Blog migrations</option>
|
188
|
-
|
189
|
-
|
190
|
-
</optgroup>
|
191
|
-
|
192
|
-
<optgroup label="Customization">
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
<option value="/docs/templates/">Templates</option>
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
<option value="/docs/includes/">Includes</option>
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
<option value="/docs/permalinks/">Permalinks</option>
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
<option value="/docs/pagination/">Pagination</option>
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
<option value="/docs/plugins/">Plugins</option>
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<option value="/docs/themes/">Themes</option>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<option value="/docs/extras/">Extras</option>
|
221
|
-
|
222
|
-
|
223
|
-
</optgroup>
|
224
|
-
|
225
|
-
<optgroup label="Deployment">
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
<option value="/docs/github-pages/">GitHub Pages</option>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
<option value="/docs/deployment-methods/">Deployment methods</option>
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
<option value="/docs/continuous-integration/">Continuous Integration</option>
|
238
|
-
|
239
|
-
|
240
|
-
</optgroup>
|
241
|
-
|
242
|
-
<optgroup label="Miscellaneous">
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
<option value="/docs/troubleshooting/">Troubleshooting</option>
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
<option value="/docs/sites/">Sites using Jekyll</option>
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
<option value="/docs/resources/">Resources</option>
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
<option value="/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</option>
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
<option value="/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</option>
|
263
|
-
|
264
|
-
|
265
|
-
</optgroup>
|
266
|
-
|
267
|
-
<optgroup label="Meta">
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
<option value="/docs/contributing/">Contributing</option>
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
<option value="/docs/maintaining/">Maintaining Jekyll</option>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
<option value="/docs/conduct/">Code of Conduct</option>
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
<option value="/docs/history/">History</option>
|
284
|
-
|
285
|
-
|
286
|
-
</optgroup>
|
287
|
-
|
288
|
-
</select>
|
289
|
-
</div>
|
290
|
-
|
291
|
-
|
292
|
-
<div class="unit four-fifths">
|
293
|
-
<article>
|
294
|
-
<div class="improve right hide-on-mobiles">
|
295
|
-
<a href="https://github.com/jekyll/jekyll/edit/master/docs/_docs/templates.md"><i class="fa fa-pencil"></i> Improve this page</a>
|
296
|
-
</div>
|
297
|
-
<h1>Templates</h1>
|
298
|
-
<p>Jekyll uses the <a href="https://shopify.github.io/liquid/">Liquid</a> templating language to
|
299
|
-
process templates. All of the standard Liquid <a href="https://shopify.github.io/liquid/tags/control-flow/">tags</a> and
|
300
|
-
<a href="https://shopify.github.io/liquid/filters/abs/">filters</a> are
|
301
|
-
supported. To make common tasks easier, Jekyll even adds a few handy filters
|
302
|
-
and tags of its own, all of which you can find on this page. Jekyll even lets
|
303
|
-
you come up with your own tags via plugins.</p>
|
304
|
-
|
305
|
-
<h2 id="filters">Filters</h2>
|
306
|
-
|
307
|
-
<div class="mobile-side-scroller">
|
308
|
-
<table>
|
309
|
-
<thead>
|
310
|
-
<tr>
|
311
|
-
<th>Description</th>
|
312
|
-
<th><span class="filter">Filter</span> and <span class="output">Output</span></th>
|
313
|
-
</tr>
|
314
|
-
</thead>
|
315
|
-
<tbody>
|
316
|
-
<tr>
|
317
|
-
<td>
|
318
|
-
<p class="name"><strong>Relative URL</strong></p>
|
319
|
-
<p>Prepend the <code>baseurl</code> value to the input. Useful if your site is hosted at a subpath rather than the root of the domain.</p>
|
320
|
-
</td>
|
321
|
-
<td class="align-center">
|
322
|
-
<p>
|
323
|
-
<code class="filter">{{ "/assets/style.css" | relative_url }}</code>
|
324
|
-
</p>
|
325
|
-
<p>
|
326
|
-
<code class="output">/my-baseurl/assets/style.css</code>
|
327
|
-
</p>
|
328
|
-
</td>
|
329
|
-
</tr>
|
330
|
-
<tr>
|
331
|
-
<td>
|
332
|
-
<p class="name"><strong>Absolute URL</strong></p>
|
333
|
-
<p>Prepend the <code>url</code> and <code>baseurl</code> value to the input.</p>
|
334
|
-
</td>
|
335
|
-
<td class="align-center">
|
336
|
-
<p>
|
337
|
-
<code class="filter">{{ "/assets/style.css" | absolute_url }}</code>
|
338
|
-
</p>
|
339
|
-
<p>
|
340
|
-
<code class="output">http://example.com/my-baseurl/assets/style.css</code>
|
341
|
-
</p>
|
342
|
-
</td>
|
343
|
-
</tr>
|
344
|
-
<tr>
|
345
|
-
<td>
|
346
|
-
<p class="name"><strong>Date to XML Schema</strong></p>
|
347
|
-
<p>Convert a Date into XML Schema (ISO 8601) format.</p>
|
348
|
-
</td>
|
349
|
-
<td class="align-center">
|
350
|
-
<p>
|
351
|
-
<code class="filter">{{ site.time | date_to_xmlschema }}</code>
|
352
|
-
</p>
|
353
|
-
<p>
|
354
|
-
<code class="output">2008-11-07T13:07:54-08:00</code>
|
355
|
-
</p>
|
356
|
-
</td>
|
357
|
-
</tr>
|
358
|
-
<tr>
|
359
|
-
<td>
|
360
|
-
<p class="name"><strong>Date to RFC-822 Format</strong></p>
|
361
|
-
<p>Convert a Date into the RFC-822 format used for RSS feeds.</p>
|
362
|
-
</td>
|
363
|
-
<td class="align-center">
|
364
|
-
<p>
|
365
|
-
<code class="filter">{{ site.time | date_to_rfc822 }}</code>
|
366
|
-
</p>
|
367
|
-
<p>
|
368
|
-
<code class="output">Mon, 07 Nov 2008 13:07:54 -0800</code>
|
369
|
-
</p>
|
370
|
-
</td>
|
371
|
-
</tr>
|
372
|
-
<tr>
|
373
|
-
<td>
|
374
|
-
<p class="name"><strong>Date to String</strong></p>
|
375
|
-
<p>Convert a date to short format.</p>
|
376
|
-
</td>
|
377
|
-
<td class="align-center">
|
378
|
-
<p>
|
379
|
-
<code class="filter">{{ site.time | date_to_string }}</code>
|
380
|
-
</p>
|
381
|
-
<p>
|
382
|
-
<code class="output">07 Nov 2008</code>
|
383
|
-
</p>
|
384
|
-
</td>
|
385
|
-
</tr>
|
386
|
-
<tr>
|
387
|
-
<td>
|
388
|
-
<p class="name"><strong>Date to String in ordinal US style</strong></p>
|
389
|
-
<p>Format a date to ordinal, US, short format.</p>
|
390
|
-
</td>
|
391
|
-
<td class="align-center">
|
392
|
-
<p>
|
393
|
-
<code class="filter">{{ site.time | date_to_string: "ordinal", "US" }}</code>
|
394
|
-
</p>
|
395
|
-
<p>
|
396
|
-
<code class="output">Nov 7th, 2008</code>
|
397
|
-
</p>
|
398
|
-
</td>
|
399
|
-
</tr>
|
400
|
-
<tr>
|
401
|
-
<td>
|
402
|
-
<p class="name"><strong>Date to Long String</strong></p>
|
403
|
-
<p>Format a date to long format.</p>
|
404
|
-
</td>
|
405
|
-
<td class="align-center">
|
406
|
-
<p>
|
407
|
-
<code class="filter">{{ site.time | date_to_long_string }}</code>
|
408
|
-
</p>
|
409
|
-
<p>
|
410
|
-
<code class="output">07 November 2008</code>
|
411
|
-
</p>
|
412
|
-
</td>
|
413
|
-
</tr>
|
414
|
-
<tr>
|
415
|
-
<td>
|
416
|
-
<p class="name"><strong>Date to Long String in ordinal UK style</strong></p>
|
417
|
-
<p>Format a date to ordinal, UK, long format.</p>
|
418
|
-
</td>
|
419
|
-
<td class="align-center">
|
420
|
-
<p>
|
421
|
-
<code class="filter">{{ site.time | date_to_long_string: "ordinal" }}</code>
|
422
|
-
</p>
|
423
|
-
<p>
|
424
|
-
<code class="output">7th November 2008</code>
|
425
|
-
</p>
|
426
|
-
</td>
|
427
|
-
</tr>
|
428
|
-
<tr>
|
429
|
-
<td>
|
430
|
-
<p class="name"><strong>Where</strong></p>
|
431
|
-
<p>Select all the objects in an array where the key has the given value.</p>
|
432
|
-
</td>
|
433
|
-
<td class="align-center">
|
434
|
-
<p>
|
435
|
-
<code class="filter">{{ site.members | where:"graduation_year","2014" }}</code>
|
436
|
-
</p>
|
437
|
-
</td>
|
438
|
-
</tr>
|
439
|
-
<tr>
|
440
|
-
<td>
|
441
|
-
<p class="name"><strong>Where Expression</strong></p>
|
442
|
-
<p>Select all the objects in an array where the expression is true. Jekyll v3.2.0 & later.</p>
|
443
|
-
</td>
|
444
|
-
<td class="align-center">
|
445
|
-
<p>
|
446
|
-
<code class="filter">{{ site.members | where_exp:"item",
|
447
|
-
"item.graduation_year == 2014" }}</code>
|
448
|
-
<code class="filter">{{ site.members | where_exp:"item",
|
449
|
-
"item.graduation_year < 2014" }}</code>
|
450
|
-
<code class="filter">{{ site.members | where_exp:"item",
|
451
|
-
"item.projects contains 'foo'" }}</code>
|
452
|
-
</p>
|
453
|
-
</td>
|
454
|
-
</tr>
|
455
|
-
<tr>
|
456
|
-
<td>
|
457
|
-
<p class="name"><strong>Group By</strong></p>
|
458
|
-
<p>Group an array's items by a given property.</p>
|
459
|
-
</td>
|
460
|
-
<td class="align-center">
|
461
|
-
<p>
|
462
|
-
<code class="filter">{{ site.members | group_by:"graduation_year" }}</code>
|
463
|
-
</p>
|
464
|
-
<p>
|
465
|
-
<code class="output">[{"name"=>"2013", "items"=>[...]},
|
466
|
-
{"name"=>"2014", "items"=>[...]}]</code>
|
467
|
-
</p>
|
468
|
-
</td>
|
469
|
-
</tr>
|
470
|
-
<tr>
|
471
|
-
<td>
|
472
|
-
<p class="name"><strong>Group By Expression</strong></p>
|
473
|
-
<p>Group an array's items using a Liquid expression.</p>
|
474
|
-
</td>
|
475
|
-
<td class="align-center">
|
476
|
-
<p>
|
477
|
-
<code class="filter">{{ site.members | group_by_exp:"item",
|
478
|
-
"item.graduation_year | truncate: 3, \"\"" }}</code>
|
479
|
-
</p>
|
480
|
-
<p>
|
481
|
-
<code class="output">[{"name"=>"201...", "items"=>[...]},
|
482
|
-
{"name"=>"200...", "items"=>[...]}]</code>
|
483
|
-
</p>
|
484
|
-
</td>
|
485
|
-
</tr>
|
486
|
-
<tr>
|
487
|
-
<td>
|
488
|
-
<p class="name"><strong>XML Escape</strong></p>
|
489
|
-
<p>Escape some text for use in XML.</p>
|
490
|
-
</td>
|
491
|
-
<td class="align-center">
|
492
|
-
<p>
|
493
|
-
<code class="filter">{{ page.content | xml_escape }}</code>
|
494
|
-
</p>
|
495
|
-
</td>
|
496
|
-
</tr>
|
497
|
-
<tr>
|
498
|
-
<td>
|
499
|
-
<p class="name"><strong>CGI Escape</strong></p>
|
500
|
-
<p>
|
501
|
-
CGI escape a string for use in a URL. Replaces any special characters
|
502
|
-
with appropriate <code>%XX</code> replacements. CGI escape normally replaces a space with a plus <code>+</code> sign.
|
503
|
-
</p>
|
504
|
-
</td>
|
505
|
-
<td class="align-center">
|
506
|
-
<p>
|
507
|
-
<code class="filter">{{ "foo, bar; baz?" | cgi_escape }}</code>
|
508
|
-
</p>
|
509
|
-
<p>
|
510
|
-
<code class="output">foo%2C+bar%3B+baz%3F</code>
|
511
|
-
</p>
|
512
|
-
</td>
|
513
|
-
</tr>
|
514
|
-
<tr>
|
515
|
-
<td>
|
516
|
-
<p class="name"><strong>URI Escape</strong></p>
|
517
|
-
<p>
|
518
|
-
Percent encodes any special characters in a URI. URI escape normally replaces a space with <code>%20</code>. <a href="https://en.wikipedia.org/wiki/Percent-encoding#Types_of_URI_characters">Reserved characters</a> will not be escaped.
|
519
|
-
</p>
|
520
|
-
</td>
|
521
|
-
<td class="align-center">
|
522
|
-
<p>
|
523
|
-
<code class="filter">{{ "http://foo.com/?q=foo, \bar?" | uri_escape }}</code>
|
524
|
-
</p>
|
525
|
-
<p>
|
526
|
-
<code class="output">http://foo.com/?q=foo,%20%5Cbar?</code>
|
527
|
-
</p>
|
528
|
-
</td>
|
529
|
-
</tr>
|
530
|
-
<tr>
|
531
|
-
<td>
|
532
|
-
<p class="name"><strong>Number of Words</strong></p>
|
533
|
-
<p>Count the number of words in some text.</p>
|
534
|
-
</td>
|
535
|
-
<td class="align-center">
|
536
|
-
<p>
|
537
|
-
<code class="filter">{{ page.content | number_of_words }}</code>
|
538
|
-
</p>
|
539
|
-
<p>
|
540
|
-
<code class="output">1337</code>
|
541
|
-
</p>
|
542
|
-
</td>
|
543
|
-
</tr>
|
544
|
-
<tr>
|
545
|
-
<td>
|
546
|
-
<p class="name"><strong>Array to Sentence</strong></p>
|
547
|
-
<p>Convert an array into a sentence. Useful for listing tags. Optional argument for connector.</p>
|
548
|
-
</td>
|
549
|
-
<td class="align-center">
|
550
|
-
<p>
|
551
|
-
<code class="filter">{{ page.tags | array_to_sentence_string }}</code>
|
552
|
-
</p>
|
553
|
-
<p>
|
554
|
-
<code class="output">foo, bar, and baz</code>
|
555
|
-
</p>
|
556
|
-
<p>
|
557
|
-
<code class="filter">{{ page.tags | array_to_sentence_string: 'or' }}</code>
|
558
|
-
</p>
|
559
|
-
<p>
|
560
|
-
<code class="output">foo, bar, or baz</code>
|
561
|
-
</p>
|
562
|
-
</td>
|
563
|
-
</tr>
|
564
|
-
<tr>
|
565
|
-
<td>
|
566
|
-
<p class="name"><strong>Markdownify</strong></p>
|
567
|
-
<p>Convert a Markdown-formatted string into HTML.</p>
|
568
|
-
</td>
|
569
|
-
<td class="align-center">
|
570
|
-
<p>
|
571
|
-
<code class="filter">{{ page.excerpt | markdownify }}</code>
|
572
|
-
</p>
|
573
|
-
</td>
|
574
|
-
</tr>
|
575
|
-
<tr>
|
576
|
-
<td>
|
577
|
-
<p class="name"><strong>Smartify</strong></p>
|
578
|
-
<p>Convert "quotes" into “smart quotes.”</p>
|
579
|
-
</td>
|
580
|
-
<td class="align-center">
|
581
|
-
<p>
|
582
|
-
<code class="filter">{{ page.title | smartify }}</code>
|
583
|
-
</p>
|
584
|
-
</td>
|
585
|
-
</tr>
|
586
|
-
<tr>
|
587
|
-
<td>
|
588
|
-
<p class="name"><strong>Converting Sass/SCSS</strong></p>
|
589
|
-
<p>Convert a Sass- or SCSS-formatted string into CSS.</p>
|
590
|
-
</td>
|
591
|
-
<td class="align-center">
|
592
|
-
<p>
|
593
|
-
<code class="filter">{{ some_scss | scssify }}</code>
|
594
|
-
<code class="filter">{{ some_sass | sassify }}</code>
|
595
|
-
</p>
|
596
|
-
</td>
|
597
|
-
</tr>
|
598
|
-
<tr>
|
599
|
-
<td>
|
600
|
-
<p class="name"><strong>Slugify</strong></p>
|
601
|
-
<p>Convert a string into a lowercase URL "slug". See below for options.</p>
|
602
|
-
</td>
|
603
|
-
<td class="align-center">
|
604
|
-
<p>
|
605
|
-
<code class="filter">{{ "The _config.yml file" | slugify }}</code>
|
606
|
-
</p>
|
607
|
-
<p>
|
608
|
-
<code class="output">the-config-yml-file</code>
|
609
|
-
</p>
|
610
|
-
<p>
|
611
|
-
<code class="filter">{{ "The _config.yml file" | slugify: 'pretty' }}</code>
|
612
|
-
</p>
|
613
|
-
<p>
|
614
|
-
<code class="output">the-_config.yml-file</code>
|
615
|
-
</p>
|
616
|
-
<p>
|
617
|
-
<code class="filter">{{ "The _cönfig.yml file" | slugify: 'ascii' }}</code>
|
618
|
-
</p>
|
619
|
-
<p>
|
620
|
-
<code class="output">the-c-nfig-yml-file</code>
|
621
|
-
</p>
|
622
|
-
<p>
|
623
|
-
<code class="filter">{{ "The cönfig.yml file" | slugify: 'latin' }}</code>
|
624
|
-
</p>
|
625
|
-
<p>
|
626
|
-
<code class="output">the-config-yml-file</code>
|
627
|
-
</p>
|
628
|
-
</td>
|
629
|
-
</tr>
|
630
|
-
<tr>
|
631
|
-
<td>
|
632
|
-
<p class="name"><strong>Data To JSON</strong></p>
|
633
|
-
<p>Convert Hash or Array to JSON.</p>
|
634
|
-
</td>
|
635
|
-
<td class="align-center">
|
636
|
-
<p>
|
637
|
-
<code class="filter">{{ site.data.projects | jsonify }}</code>
|
638
|
-
</p>
|
639
|
-
</td>
|
640
|
-
</tr>
|
641
|
-
<tr>
|
642
|
-
<td>
|
643
|
-
<p class="name"><strong>Normalize Whitespace</strong></p>
|
644
|
-
<p>Replace any occurrence of whitespace with a single space.</p>
|
645
|
-
</td>
|
646
|
-
<td class="align-center">
|
647
|
-
<p>
|
648
|
-
<code class="filter">{{ "a \n b" | normalize_whitespace }}</code>
|
649
|
-
</p>
|
650
|
-
</td>
|
651
|
-
</tr>
|
652
|
-
<tr>
|
653
|
-
<td>
|
654
|
-
<p class="name"><strong>Sort</strong></p>
|
655
|
-
<p>Sort an array. Optional arguments for hashes: 1. property name 2. nils order (<em>first</em> or <em>last</em>).</p>
|
656
|
-
</td>
|
657
|
-
<td class="align-center">
|
658
|
-
<p>
|
659
|
-
<code class="filter">{{ page.tags | sort }}</code>
|
660
|
-
</p>
|
661
|
-
<p>
|
662
|
-
<code class="filter">{{ site.posts | sort: 'author' }}</code>
|
663
|
-
</p>
|
664
|
-
<p>
|
665
|
-
<code class="filter">{{ site.pages | sort: 'title', 'last' }}</code>
|
666
|
-
</p>
|
667
|
-
</td>
|
668
|
-
</tr>
|
669
|
-
<tr>
|
670
|
-
<td>
|
671
|
-
<p class="name"><strong>Sample</strong></p>
|
672
|
-
<p>Pick a random value from an array. Optional: pick multiple values.</p>
|
673
|
-
</td>
|
674
|
-
<td class="align-center">
|
675
|
-
<p>
|
676
|
-
<code class="filter">{{ site.pages | sample }}</code>
|
677
|
-
</p>
|
678
|
-
<p>
|
679
|
-
<code class="filter">{{ site.pages | sample:2 }}</code>
|
680
|
-
</p>
|
681
|
-
</td>
|
682
|
-
</tr>
|
683
|
-
<tr>
|
684
|
-
<td>
|
685
|
-
<p class="name"><strong>To Integer</strong></p>
|
686
|
-
<p>Convert a string or boolean to integer.</p>
|
687
|
-
</td>
|
688
|
-
<td class="align-center">
|
689
|
-
<p>
|
690
|
-
<code class="filter">{{ some_var | to_integer }}</code>
|
691
|
-
</p>
|
692
|
-
</td>
|
693
|
-
</tr>
|
694
|
-
<tr>
|
695
|
-
<td>
|
696
|
-
<p class="name"><strong>Array Filters</strong></p>
|
697
|
-
<p>Push, pop, shift, and unshift elements from an Array.</p>
|
698
|
-
<p>These are <strong>NON-DESTRUCTIVE</strong>, i.e. they do not mutate the array, but rather make a copy and mutate that.</p>
|
699
|
-
</td>
|
700
|
-
<td class="align-center">
|
701
|
-
<p>
|
702
|
-
<code class="filter">{{ page.tags | push: 'Spokane' }}</code>
|
703
|
-
</p>
|
704
|
-
<p>
|
705
|
-
<code class="output">['Seattle', 'Tacoma', 'Spokane']</code>
|
706
|
-
</p>
|
707
|
-
<p>
|
708
|
-
<code class="filter">{{ page.tags | pop }}</code>
|
709
|
-
</p>
|
710
|
-
<p>
|
711
|
-
<code class="output">['Seattle']</code>
|
712
|
-
</p>
|
713
|
-
<p>
|
714
|
-
<code class="filter">{{ page.tags | shift }}</code>
|
715
|
-
</p>
|
716
|
-
<p>
|
717
|
-
<code class="output">['Tacoma']</code>
|
718
|
-
</p>
|
719
|
-
<p>
|
720
|
-
<code class="filter">{{ page.tags | unshift: "Olympia" }}</code>
|
721
|
-
</p>
|
722
|
-
<p>
|
723
|
-
<code class="output">['Olympia', 'Seattle', 'Tacoma']</code>
|
724
|
-
</p>
|
725
|
-
</td>
|
726
|
-
</tr>
|
727
|
-
<tr>
|
728
|
-
<td>
|
729
|
-
<p class="name"><strong>Inspect</strong></p>
|
730
|
-
<p>Convert an object into its String representation for debugging.</p>
|
731
|
-
</td>
|
732
|
-
<td class="align-center">
|
733
|
-
<p>
|
734
|
-
<code class="filter">{{ some_var | inspect }}</code>
|
735
|
-
</p>
|
736
|
-
</td>
|
737
|
-
</tr>
|
738
|
-
</tbody>
|
739
|
-
</table>
|
740
|
-
</div>
|
741
|
-
|
742
|
-
<h3 id="options-for-the-slugify-filter">Options for the <code class="language-plaintext highlighter-rouge">slugify</code> filter</h3>
|
743
|
-
|
744
|
-
<p>The <code class="language-plaintext highlighter-rouge">slugify</code> filter accepts an option, each specifying what to filter.
|
745
|
-
The default is <code class="language-plaintext highlighter-rouge">default</code>. They are as follows (with what they filter):</p>
|
746
|
-
|
747
|
-
<ul>
|
748
|
-
<li><code class="language-plaintext highlighter-rouge">none</code>: no characters</li>
|
749
|
-
<li><code class="language-plaintext highlighter-rouge">raw</code>: spaces</li>
|
750
|
-
<li><code class="language-plaintext highlighter-rouge">default</code>: spaces and non-alphanumeric characters</li>
|
751
|
-
<li><code class="language-plaintext highlighter-rouge">pretty</code>: spaces and non-alphanumeric characters except for <code class="language-plaintext highlighter-rouge">._~!$&'()+,;=@</code></li>
|
752
|
-
<li><code class="language-plaintext highlighter-rouge">ascii</code>: spaces, non-alphanumeric, and non-ASCII characters</li>
|
753
|
-
<li><code class="language-plaintext highlighter-rouge">latin</code>: like <code class="language-plaintext highlighter-rouge">default</code>, except Latin characters are first transliterated (e.g. <code class="language-plaintext highlighter-rouge">àèïòü</code> to <code class="language-plaintext highlighter-rouge">aeiou</code>)<span class="version-badge" title="This feature is available starting version 3.7.0">3.7.0</span>
|
754
|
-
<h2 id="tags">Tags</h2>
|
755
|
-
</li>
|
756
|
-
<li><a href="#includes">Includes</a></li>
|
757
|
-
<li><a href="#code-snippet-highlighting">Code snippet highlighting</a></li>
|
758
|
-
<li><a href="#links">Linking to pages, collections and posts (the new and improved way)</a></li>
|
759
|
-
<li><a href="#linking-to-posts">Linking to posts (the old way)</a></li>
|
760
|
-
</ul>
|
761
|
-
|
762
|
-
<h3 id="includes">Includes</h3>
|
763
|
-
|
764
|
-
<p>If you have small page snippets that you want to include in multiple places on your site, save the snippets as <em>include files</em> and insert them where required, by using the <code class="language-plaintext highlighter-rouge">include</code> tag:</p>
|
765
|
-
|
766
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">include</span><span class="w"> </span>footer.html<span class="w"> </span><span class="p">%}</span>
|
767
|
-
</code></pre></div></div>
|
768
|
-
|
769
|
-
<p>Jekyll expects all <em>include files</em> to be placed in an <code class="language-plaintext highlighter-rouge">_includes</code> directory at the root of your source directory. In the above example, this will embed the contents of <code class="language-plaintext highlighter-rouge">_includes/footer.html</code> into the calling file.</p>
|
770
|
-
|
771
|
-
<p>For more advanced information on using includes, see <a href="../includes">Includes</a>.</p>
|
772
|
-
|
773
|
-
<h3 id="code-snippet-highlighting">Code snippet highlighting</h3>
|
774
|
-
|
775
|
-
<p>Jekyll has built in support for syntax highlighting of over 60 languages
|
776
|
-
thanks to <a href="http://rouge.jneen.net">Rouge</a>. Rouge is the default highlighter
|
777
|
-
in Jekyll 3 and above. To use it in Jekyll 2, set <code class="language-plaintext highlighter-rouge">highlighter</code> to <code class="language-plaintext highlighter-rouge">rouge</code>
|
778
|
-
and ensure the <code class="language-plaintext highlighter-rouge">rouge</code> gem is installed properly.</p>
|
779
|
-
|
780
|
-
<p>Alternatively, you can use <a href="http://pygments.org">Pygments</a> to highlight
|
781
|
-
your code snippets. To use Pygments, you must have Python installed on your
|
782
|
-
system, have the <code class="language-plaintext highlighter-rouge">pygments.rb</code> gem installed and set <code class="language-plaintext highlighter-rouge">highlighter</code> to
|
783
|
-
<code class="language-plaintext highlighter-rouge">pygments</code> in your site’s configuration file. Pygments supports <a href="http://pygments.org/languages/">over 100
|
784
|
-
languages</a></p>
|
785
|
-
|
786
|
-
<p>To render a code block with syntax highlighting, surround your code as follows:</p>
|
787
|
-
|
788
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">highlight</span><span class="w"> </span>ruby<span class="w"> </span><span class="p">%}</span>
|
789
|
-
def foo
|
790
|
-
puts 'foo'
|
791
|
-
end
|
792
|
-
<span class="p">{%</span><span class="w"> </span><span class="nt">endhighlight</span><span class="w"> </span><span class="p">%}</span>
|
793
|
-
</code></pre></div></div>
|
794
|
-
|
795
|
-
<p>The argument to the <code class="language-plaintext highlighter-rouge">highlight</code> tag (<code class="language-plaintext highlighter-rouge">ruby</code> in the example above) is the
|
796
|
-
language identifier. To find the appropriate identifier to use for the language
|
797
|
-
you want to highlight, look for the “short name” on the <a href="https://github.com/jayferd/rouge/wiki/List-of-supported-languages-and-lexers">Rouge
|
798
|
-
wiki</a>
|
799
|
-
or the <a href="http://pygments.org/docs/lexers/">Pygments’ Lexers page</a>.</p>
|
800
|
-
|
801
|
-
<div class="note info">
|
802
|
-
<h5>Jekyll processes all Liquid filters in code blocks</h5>
|
803
|
-
<p>If you are using a language that contains curly braces, you
|
804
|
-
will likely need to place <code>{% raw %}</code> and
|
805
|
-
<code>{% endraw %}</code> tags around your code.</p>
|
806
|
-
</div>
|
807
|
-
|
808
|
-
<h4 id="line-numbers">Line numbers</h4>
|
809
|
-
|
810
|
-
<p>There is a second argument to <code class="language-plaintext highlighter-rouge">highlight</code> called <code class="language-plaintext highlighter-rouge">linenos</code> that is optional.
|
811
|
-
Including the <code class="language-plaintext highlighter-rouge">linenos</code> argument will force the highlighted code to include line
|
812
|
-
numbers. For instance, the following code block would include line numbers next
|
813
|
-
to each line:</p>
|
814
|
-
|
815
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">highlight</span><span class="w"> </span>ruby<span class="w"> </span>linenos<span class="w"> </span><span class="p">%}</span>
|
816
|
-
def foo
|
817
|
-
puts 'foo'
|
818
|
-
end
|
819
|
-
<span class="p">{%</span><span class="w"> </span><span class="nt">endhighlight</span><span class="w"> </span><span class="p">%}</span>
|
820
|
-
</code></pre></div></div>
|
821
|
-
|
822
|
-
<h4 id="stylesheets-for-syntax-highlighting">Stylesheets for syntax highlighting</h4>
|
823
|
-
|
824
|
-
<p>In order for the highlighting to show up, you’ll need to include a highlighting
|
825
|
-
stylesheet. For an example stylesheet you can look at
|
826
|
-
<a href="https://github.com/mojombo/tpw/tree/master/css/syntax.css">syntax.css</a>. These
|
827
|
-
are the same styles as used by GitHub and you are free to use them for your own
|
828
|
-
site. If you use <code class="language-plaintext highlighter-rouge">linenos</code>, you might want to include an additional CSS class
|
829
|
-
definition for the <code class="language-plaintext highlighter-rouge">.lineno</code> class in <code class="language-plaintext highlighter-rouge">syntax.css</code> to distinguish the line
|
830
|
-
numbers from the highlighted code.</p>
|
831
|
-
|
832
|
-
<h2 id="links">Links</h2>
|
833
|
-
|
834
|
-
<h3 id="link">Linking to pages</h3>
|
835
|
-
|
836
|
-
<p>To link to a post, a page, collection item, or file, the <code class="language-plaintext highlighter-rouge">link</code> tag will generate the correct permalink URL for the path you specify. For example, if you use the <code class="language-plaintext highlighter-rouge">link</code> tag to link to <code class="language-plaintext highlighter-rouge">mypage.html</code>, even if you change your permalink style to include the file extension or omit it, the URL formed by the <code class="language-plaintext highlighter-rouge">link</code> tag will always be valid.</p>
|
837
|
-
|
838
|
-
<p>You must include the file’s original extension when using the <code class="language-plaintext highlighter-rouge">link</code> tag. Here are some examples:</p>
|
839
|
-
|
840
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>_collection/name-of-document.md<span class="w"> </span><span class="p">%}</span>
|
841
|
-
<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>_posts/2016-07-26-name-of-post.md<span class="w"> </span><span class="p">%}</span>
|
842
|
-
<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>news/index.html<span class="w"> </span><span class="p">%}</span>
|
843
|
-
<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>/assets/files/doc.pdf<span class="w"> </span><span class="p">%}</span>
|
844
|
-
</code></pre></div></div>
|
845
|
-
|
846
|
-
<p>You can also use the <code class="language-plaintext highlighter-rouge">link</code> tag to create a link in Markdown as follows:</p>
|
847
|
-
|
848
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[Link to a document](<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>_collection/name-of-document.md<span class="w"> </span><span class="p">%}</span>)
|
849
|
-
[Link to a post](<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>_posts/2016-07-26-name-of-post.md<span class="w"> </span><span class="p">%}</span>)
|
850
|
-
[Link to a page](<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>news/index.html<span class="w"> </span><span class="p">%}</span>)
|
851
|
-
[Link to a file](<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">link</span><span class="w"> </span>/assets/files/doc.pdf<span class="w"> </span><span class="p">%}</span>)
|
852
|
-
</code></pre></div></div>
|
853
|
-
|
854
|
-
<p>(Including <code class="language-plaintext highlighter-rouge">{{ site.baseurl }}</code> is optional — it depends on whether you want to preface the page URL with the <code class="language-plaintext highlighter-rouge">baseurl</code> value.)</p>
|
855
|
-
|
856
|
-
<p>The path to the post, page, or collection is defined as the path relative to the root directory (where your config file is) to the file, not the path from your existing page to the other page.</p>
|
857
|
-
|
858
|
-
<p>For example, suppose you’re creating a link in <code class="language-plaintext highlighter-rouge">page_a.md</code> (stored in <code class="language-plaintext highlighter-rouge">pages/folder1/folder2</code>) to <code class="language-plaintext highlighter-rouge">page_b.md</code> (stored in <code class="language-plaintext highlighter-rouge">pages/folder1</code>). Your path in the link would not be <code class="language-plaintext highlighter-rouge">../page_b.html</code>. Instead, it would be <code class="language-plaintext highlighter-rouge">/pages/folder1/page_b.md</code>.</p>
|
859
|
-
|
860
|
-
<p>If you’re unsure of the path, add <code class="language-plaintext highlighter-rouge">{{ page.path }}</code> to the page and it will display the path.</p>
|
861
|
-
|
862
|
-
<p>One major benefit of using the <code class="language-plaintext highlighter-rouge">link</code> or <code class="language-plaintext highlighter-rouge">post_url</code> tag is link validation. If the link doesn’t exist, Jekyll won’t build your site. This is a good thing, as it will alert you to a broken link so you can fix it (rather than allowing you to build and deploy a site with broken links).</p>
|
863
|
-
|
864
|
-
<p>Note you cannot add filters to <code class="language-plaintext highlighter-rouge">link</code> tags. For example, you cannot append a string using Liquid filters, such as <code class="language-plaintext highlighter-rouge">{% link mypage.html | append: "#section1" %} </code>. To link to sections on a page, you will need to use regular HTML or Markdown linking techniques.</p>
|
865
|
-
|
866
|
-
<h3 id="linking-to-posts">Linking to posts</h3>
|
867
|
-
|
868
|
-
<p>If you want to include a link to a post on your site, the <code class="language-plaintext highlighter-rouge">post_url</code> tag will generate the correct permalink URL for the post you specify.</p>
|
869
|
-
|
870
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">post_url</span><span class="w"> </span><span class="mi">2010</span><span class="o">-</span><span class="mi">07</span><span class="o">-</span><span class="mi">21</span><span class="o">-</span>name-of-post<span class="w"> </span><span class="p">%}</span>
|
871
|
-
</code></pre></div></div>
|
872
|
-
|
873
|
-
<p>If you organize your posts in subdirectories, you need to include subdirectory path to the post:</p>
|
874
|
-
|
875
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">post_url</span><span class="w"> </span>/subdir/2010-07-21-name-of-post<span class="w"> </span><span class="p">%}</span>
|
876
|
-
</code></pre></div></div>
|
877
|
-
|
878
|
-
<p>There is no need to include the file extension when using the <code class="language-plaintext highlighter-rouge">post_url</code> tag.</p>
|
879
|
-
|
880
|
-
<p>You can also use this tag to create a link to a post in Markdown as follows:</p>
|
881
|
-
|
882
|
-
<div class="language-liquid highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[Name of Link](<span class="p">{{</span><span class="w"> </span><span class="nv">site</span><span class="p">.</span><span class="nv">baseurl</span><span class="w"> </span><span class="p">}}{%</span><span class="w"> </span><span class="nt">post_url</span><span class="w"> </span><span class="mi">2010</span><span class="o">-</span><span class="mi">07</span><span class="o">-</span><span class="mi">21</span><span class="o">-</span>name-of-post<span class="w"> </span><span class="p">%}</span>)
|
883
|
-
</code></pre></div></div>
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
<div class="section-nav">
|
946
|
-
<div class="left align-right">
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
<a href="/docs/migrations/" class="prev">Back</a>
|
951
|
-
|
952
|
-
</div>
|
953
|
-
<div class="right align-left">
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
<a href="/docs/includes/" class="next">Next</a>
|
958
|
-
|
959
|
-
</div>
|
960
|
-
</div>
|
961
|
-
<div class="clear"></div>
|
962
|
-
|
963
|
-
</article>
|
964
|
-
</div>
|
965
|
-
|
966
|
-
<div class="unit one-fifth hide-on-mobiles">
|
967
|
-
<aside>
|
968
|
-
|
969
|
-
<h4>Getting Started</h4>
|
970
|
-
<ul>
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
<li class=""><a href="/docs/home/">Welcome</a></li>
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
<li class=""><a href="/docs/quickstart/">Quick-start guide</a></li>
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
<li class=""><a href="/docs/installation/">Installation</a></li>
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
<li class=""><a href="/docs/windows/">Jekyll on Windows</a></li>
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
<li class=""><a href="/docs/usage/">Basic Usage</a></li>
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
<li class=""><a href="/docs/structure/">Directory structure</a></li>
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
<li class=""><a href="/docs/configuration/">Configuration</a></li>
|
999
|
-
|
1000
|
-
</ul>
|
1001
|
-
|
1002
|
-
|
1003
|
-
<h4>Your Content</h4>
|
1004
|
-
<ul>
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
<li class=""><a href="/docs/frontmatter/">Front Matter</a></li>
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
<li class=""><a href="/docs/posts/">Writing posts</a></li>
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
<li class=""><a href="/docs/drafts/">Working with drafts</a></li>
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
<li class=""><a href="/docs/pages/">Creating pages</a></li>
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
<li class=""><a href="/docs/static-files/">Static Files</a></li>
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
<li class=""><a href="/docs/variables/">Variables</a></li>
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
<li class=""><a href="/docs/collections/">Collections</a></li>
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
<li class=""><a href="/docs/datafiles/">Data Files</a></li>
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
<li class=""><a href="/docs/assets/">Assets</a></li>
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
<li class=""><a href="/docs/migrations/">Blog migrations</a></li>
|
1045
|
-
|
1046
|
-
</ul>
|
1047
|
-
|
1048
|
-
|
1049
|
-
<h4>Customization</h4>
|
1050
|
-
<ul>
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
<li class="current"><a href="/docs/templates/">Templates</a></li>
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
<li class=""><a href="/docs/includes/">Includes</a></li>
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
<li class=""><a href="/docs/permalinks/">Permalinks</a></li>
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
<li class=""><a href="/docs/pagination/">Pagination</a></li>
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
<li class=""><a href="/docs/plugins/">Plugins</a></li>
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
<li class=""><a href="/docs/themes/">Themes</a></li>
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
<li class=""><a href="/docs/extras/">Extras</a></li>
|
1079
|
-
|
1080
|
-
</ul>
|
1081
|
-
|
1082
|
-
|
1083
|
-
<h4>Deployment</h4>
|
1084
|
-
<ul>
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
<li class=""><a href="/docs/github-pages/">GitHub Pages</a></li>
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
<li class=""><a href="/docs/deployment-methods/">Deployment methods</a></li>
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
<li class=""><a href="/docs/continuous-integration/">Continuous Integration</a></li>
|
1097
|
-
|
1098
|
-
</ul>
|
1099
|
-
|
1100
|
-
|
1101
|
-
<h4>Miscellaneous</h4>
|
1102
|
-
<ul>
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
<li class=""><a href="/docs/troubleshooting/">Troubleshooting</a></li>
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
<li class=""><a href="/docs/sites/">Sites using Jekyll</a></li>
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
<li class=""><a href="/docs/resources/">Resources</a></li>
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
<li class=""><a href="/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</a></li>
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
<li class=""><a href="/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</a></li>
|
1123
|
-
|
1124
|
-
</ul>
|
1125
|
-
|
1126
|
-
|
1127
|
-
<h4>Meta</h4>
|
1128
|
-
<ul>
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
<li class=""><a href="/docs/contributing/">Contributing</a></li>
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
<li class=""><a href="/docs/maintaining/">Maintaining Jekyll</a></li>
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
<li class=""><a href="/docs/conduct/">Code of Conduct</a></li>
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
<li class=""><a href="/docs/history/">History</a></li>
|
1145
|
-
|
1146
|
-
</ul>
|
1147
|
-
|
1148
|
-
|
1149
|
-
</aside>
|
1150
|
-
</div>
|
1151
|
-
|
1152
|
-
|
1153
|
-
<div class="clear"></div>
|
1154
|
-
|
1155
|
-
</div>
|
1156
|
-
</section>
|
1157
|
-
|
1158
|
-
|
1159
|
-
<footer>
|
1160
|
-
<div class="grid">
|
1161
|
-
<div class="unit one-third center-on-mobiles">
|
1162
|
-
<p>The contents of this website are <br />© 2020 under the terms of the <a href="https://github.com/jekyll/jekyll/blob/master/LICENSE">MIT License</a>.</p>
|
1163
|
-
</div>
|
1164
|
-
<div class="unit two-thirds align-right center-on-mobiles">
|
1165
|
-
<p>
|
1166
|
-
Proudly hosted by
|
1167
|
-
<a href="https://github.com">
|
1168
|
-
<img src="/img/footer-logo.png" width="100" height="30" alt="GitHub • Social coding">
|
1169
|
-
</a>
|
1170
|
-
</p>
|
1171
|
-
</div>
|
1172
|
-
</div>
|
1173
|
-
</footer>
|
1174
|
-
|
1175
|
-
<script>
|
1176
|
-
var anchorForId = function (id) {
|
1177
|
-
var anchor = document.createElement("a");
|
1178
|
-
anchor.className = "header-link";
|
1179
|
-
anchor.href = "#" + id;
|
1180
|
-
anchor.innerHTML = "<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>";
|
1181
|
-
anchor.title = "Permalink";
|
1182
|
-
return anchor;
|
1183
|
-
};
|
1184
|
-
|
1185
|
-
var linkifyAnchors = function (level, containingElement) {
|
1186
|
-
var headers = containingElement.getElementsByTagName("h" + level);
|
1187
|
-
for (var h = 0; h < headers.length; h++) {
|
1188
|
-
var header = headers[h];
|
1189
|
-
|
1190
|
-
if (typeof header.id !== "undefined" && header.id !== "") {
|
1191
|
-
header.appendChild(anchorForId(header.id));
|
1192
|
-
}
|
1193
|
-
}
|
1194
|
-
};
|
1195
|
-
|
1196
|
-
document.onreadystatechange = function () {
|
1197
|
-
if (this.readyState === "complete") {
|
1198
|
-
var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0];
|
1199
|
-
if (!contentBlock) {
|
1200
|
-
return;
|
1201
|
-
}
|
1202
|
-
for (var level = 1; level <= 6; level++) {
|
1203
|
-
linkifyAnchors(level, contentBlock);
|
1204
|
-
}
|
1205
|
-
}
|
1206
|
-
};
|
1207
|
-
</script>
|
1208
|
-
|
1209
|
-
|
1210
|
-
<!-- Google Analytics (https://www.google.com/analytics) -->
|
1211
|
-
<script>
|
1212
|
-
!function(j,e,k,y,l,L){j.GoogleAnalyticsObject=y,j[y]||(j[y]=function(){
|
1213
|
-
(j[y].q=j[y].q||[]).push(arguments)}),j[y].l=+new Date,l=e.createElement(k),
|
1214
|
-
L=e.getElementsByTagName(k)[0],l.src='https://www.google-analytics.com/analytics.js',
|
1215
|
-
L.parentNode.insertBefore(l,L)}(window,document,'script','ga');
|
1216
|
-
|
1217
|
-
ga('create', 'UA-50755011-1', 'jekyllrb.com');
|
1218
|
-
ga('send', 'pageview');
|
1219
|
-
|
1220
|
-
</script>
|
1221
|
-
|
1222
|
-
|
1223
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
1224
|
-
<script type="text/javascript"> docsearch({
|
1225
|
-
apiKey: '50fe39c839958dfad797000f33e2ec17',
|
1226
|
-
indexName: 'jekyllrb',
|
1227
|
-
inputSelector: '#docsearch-input',
|
1228
|
-
enhancedSearchInput: true,
|
1229
|
-
debug: false // Set debug to true if you want to inspect the dropdown
|
1230
|
-
});
|
1231
|
-
</script>
|
1232
|
-
|
1233
|
-
</body>
|
3
|
+
<meta charset="utf-8">
|
4
|
+
<title>Redirecting…</title>
|
5
|
+
<link rel="canonical" href="https://jekyllrb.com/docs/liquid/">
|
6
|
+
<script>location="https://jekyllrb.com/docs/liquid/"</script>
|
7
|
+
<meta http-equiv="refresh" content="0; url=https://jekyllrb.com/docs/liquid/">
|
8
|
+
<meta name="robots" content="noindex">
|
9
|
+
<h1>Redirecting…</h1>
|
10
|
+
<a href="https://jekyllrb.com/docs/liquid/">Click here if you are not redirected.</a>
|
1234
11
|
</html>
|