jekyll-docs 3.9.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -0,0 +1,835 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html lang="en-US">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<meta name="generator" content="Jekyll v4.0.0">
|
7
|
+
<link type="application/atom+xml" rel="alternate" href="https://jekyllrb.com/feed.xml" title="Jekyll • Simple, blog-aware, static sites" />
|
8
|
+
<link type="application/atom+xml" rel="alternate" href="/feed/release.xml" title="Jekyll releases posts" />
|
9
|
+
<link rel="alternate" type="application/atom+xml" title="Recent commits to Jekyll’s master branch" href="https://github.com/jekyll/jekyll/commits/master.atom">
|
10
|
+
<link rel="preload" href="/fonts/lato-v14-latin-300.woff2" as="font" type="font/woff2" crossorigin />
|
11
|
+
<link rel="preload" href="/fonts/lato-v14-latin-700.woff2" as="font" type="font/woff2" crossorigin />
|
12
|
+
<link rel="preload" href="/css/screen.css" as="style">
|
13
|
+
<link rel="stylesheet" href="/css/screen.css">
|
14
|
+
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
15
|
+
<!-- Begin Jekyll SEO tag v2.6.1 -->
|
16
|
+
<title>Blogging | Jekyll • Simple, blog-aware, static sites</title>
|
17
|
+
<meta name="generator" content="Jekyll v4.0.0" />
|
18
|
+
<meta property="og:title" content="Blogging" />
|
19
|
+
<meta property="og:locale" content="en_US" />
|
20
|
+
<meta name="description" content="You might be wondering how you can have a blog without a database. In true Jekyll style, blogging is powered by text files only." />
|
21
|
+
<meta property="og:description" content="You might be wondering how you can have a blog without a database. In true Jekyll style, blogging is powered by text files only." />
|
22
|
+
<link rel="canonical" href="https://jekyllrb.com/docs/step-by-step/08-blogging/" />
|
23
|
+
<meta property="og:url" content="https://jekyllrb.com/docs/step-by-step/08-blogging/" />
|
24
|
+
<meta property="og:site_name" content="Jekyll • Simple, blog-aware, static sites" />
|
25
|
+
<meta property="og:image" content="https://jekyllrb.com/img/jekyll-og.png" />
|
26
|
+
<meta property="og:type" content="article" />
|
27
|
+
<meta property="article:published_time" content="2019-09-11T07:30:27-07:00" />
|
28
|
+
<meta name="twitter:card" content="summary_large_image" />
|
29
|
+
<meta property="twitter:image" content="https://jekyllrb.com/img/jekyll-og.png" />
|
30
|
+
<meta property="twitter:title" content="Blogging" />
|
31
|
+
<meta name="twitter:site" content="@jekyllrb" />
|
32
|
+
<meta name="google-site-verification" content="onQcXpAvtHBrUI5LlroHNE_FP0b2qvFyPq7VZw36iEY" />
|
33
|
+
<script type="application/ld+json">
|
34
|
+
{"description":"You might be wondering how you can have a blog without a database. In true Jekyll style, blogging is powered by text files only.","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https://jekyllrb.com/docs/step-by-step/08-blogging/"},"headline":"Blogging","dateModified":"2019-09-11T07:30:27-07:00","url":"https://jekyllrb.com/docs/step-by-step/08-blogging/","datePublished":"2019-09-11T07:30:27-07:00","image":"https://jekyllrb.com/img/jekyll-og.png","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://jekyllrb.com/img/logo-2x.png"}},"@context":"https://schema.org"}</script>
|
35
|
+
<!-- End Jekyll SEO tag -->
|
36
|
+
|
37
|
+
<!--[if lt IE 9]>
|
38
|
+
<script src="/js/html5shiv.min.js"></script>
|
39
|
+
<script src="/js/respond.min.js"></script>
|
40
|
+
<![endif]-->
|
41
|
+
</head>
|
42
|
+
|
43
|
+
|
44
|
+
<body class="wrap">
|
45
|
+
<header>
|
46
|
+
<div class="flexbox">
|
47
|
+
<div class="center-on-mobiles">
|
48
|
+
<h1>
|
49
|
+
<a href="/" class="logo">
|
50
|
+
<span class="sr-only">Jekyll</span>
|
51
|
+
<img src="/img/logo-2x.png" width="140" height="65" alt="Jekyll Logo">
|
52
|
+
</a>
|
53
|
+
</h1>
|
54
|
+
</div>
|
55
|
+
<nav class="main-nav hide-on-mobiles">
|
56
|
+
<ul>
|
57
|
+
|
58
|
+
<li>
|
59
|
+
<a href="/">Home</a>
|
60
|
+
</li>
|
61
|
+
|
62
|
+
<li class="current">
|
63
|
+
<a href="/docs/">Docs</a>
|
64
|
+
</li>
|
65
|
+
|
66
|
+
<li>
|
67
|
+
<a href="/resources/">Resources</a>
|
68
|
+
</li>
|
69
|
+
|
70
|
+
<li>
|
71
|
+
<a href="/showcase/">Showcase</a>
|
72
|
+
</li>
|
73
|
+
|
74
|
+
<li>
|
75
|
+
<a href="/news/">News</a>
|
76
|
+
</li>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
|
80
|
+
</nav>
|
81
|
+
<div class="search hide-on-mobiles">
|
82
|
+
<input type="text" id="docsearch-input" placeholder="Search the docs…">
|
83
|
+
|
84
|
+
</div>
|
85
|
+
<div class="meta hide-on-mobiles">
|
86
|
+
<ul>
|
87
|
+
<li>
|
88
|
+
<a href="https://github.com/jekyll/jekyll/releases/tag/v4.0.0">v4.0.0</a>
|
89
|
+
</li>
|
90
|
+
<li>
|
91
|
+
<a href="https://github.com/jekyll/jekyll">GitHub</a>
|
92
|
+
</li>
|
93
|
+
</ul>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
<nav class="mobile-nav show-on-mobiles">
|
97
|
+
<ul>
|
98
|
+
|
99
|
+
<li>
|
100
|
+
<a href="/">Home</a>
|
101
|
+
</li>
|
102
|
+
|
103
|
+
<li class="current">
|
104
|
+
<a href="/docs/">Docs</a>
|
105
|
+
</li>
|
106
|
+
|
107
|
+
<li>
|
108
|
+
<a href="/resources/">Resources</a>
|
109
|
+
</li>
|
110
|
+
|
111
|
+
|
112
|
+
<li>
|
113
|
+
<a href="/news/">News</a>
|
114
|
+
</li>
|
115
|
+
|
116
|
+
<li>
|
117
|
+
<a href="https://github.com/jekyll/jekyll">GitHub</a>
|
118
|
+
</li>
|
119
|
+
</ul>
|
120
|
+
|
121
|
+
</nav>
|
122
|
+
</header>
|
123
|
+
|
124
|
+
|
125
|
+
<section class="docs">
|
126
|
+
<div class="grid">
|
127
|
+
|
128
|
+
<div class="docs-nav-mobile unit whole show-on-mobiles">
|
129
|
+
<select onchange="if (this.value) window.location.href=this.value">
|
130
|
+
<option value="">Navigate the docs…</option>
|
131
|
+
|
132
|
+
<optgroup label="Getting Started">
|
133
|
+
|
134
|
+
|
135
|
+
<option value="/docs/">
|
136
|
+
Quickstart
|
137
|
+
</option>
|
138
|
+
|
139
|
+
|
140
|
+
<option value="/docs/ruby-101/">
|
141
|
+
Ruby 101
|
142
|
+
</option>
|
143
|
+
|
144
|
+
|
145
|
+
<option value="/docs/installation/">
|
146
|
+
Installation
|
147
|
+
</option>
|
148
|
+
|
149
|
+
|
150
|
+
<option value="/docs/community/">
|
151
|
+
Community
|
152
|
+
</option>
|
153
|
+
|
154
|
+
|
155
|
+
<option value="/docs/step-by-step/01-setup/">
|
156
|
+
Step by Step Tutorial
|
157
|
+
</option>
|
158
|
+
|
159
|
+
</optgroup>
|
160
|
+
|
161
|
+
<optgroup label="Build">
|
162
|
+
|
163
|
+
|
164
|
+
<option value="/docs/usage/">
|
165
|
+
Command Line Usage
|
166
|
+
</option>
|
167
|
+
|
168
|
+
|
169
|
+
<option value="/docs/configuration/">
|
170
|
+
Configuration
|
171
|
+
</option>
|
172
|
+
|
173
|
+
</optgroup>
|
174
|
+
|
175
|
+
<optgroup label="Content">
|
176
|
+
|
177
|
+
|
178
|
+
<option value="/docs/pages/">
|
179
|
+
Pages
|
180
|
+
</option>
|
181
|
+
|
182
|
+
|
183
|
+
<option value="/docs/posts/">
|
184
|
+
Posts
|
185
|
+
</option>
|
186
|
+
|
187
|
+
|
188
|
+
<option value="/docs/front-matter/">
|
189
|
+
Front Matter
|
190
|
+
</option>
|
191
|
+
|
192
|
+
|
193
|
+
<option value="/docs/collections/">
|
194
|
+
Collections
|
195
|
+
</option>
|
196
|
+
|
197
|
+
|
198
|
+
<option value="/docs/datafiles/">
|
199
|
+
Data Files
|
200
|
+
</option>
|
201
|
+
|
202
|
+
|
203
|
+
<option value="/docs/assets/">
|
204
|
+
Assets
|
205
|
+
</option>
|
206
|
+
|
207
|
+
|
208
|
+
<option value="/docs/static-files/">
|
209
|
+
Static Files
|
210
|
+
</option>
|
211
|
+
|
212
|
+
</optgroup>
|
213
|
+
|
214
|
+
<optgroup label="Site Structure">
|
215
|
+
|
216
|
+
|
217
|
+
<option value="/docs/structure/">
|
218
|
+
Directory Structure
|
219
|
+
</option>
|
220
|
+
|
221
|
+
|
222
|
+
<option value="/docs/liquid/">
|
223
|
+
Liquid
|
224
|
+
</option>
|
225
|
+
|
226
|
+
|
227
|
+
<option value="/docs/variables/">
|
228
|
+
Variables
|
229
|
+
</option>
|
230
|
+
|
231
|
+
|
232
|
+
<option value="/docs/includes/">
|
233
|
+
Includes
|
234
|
+
</option>
|
235
|
+
|
236
|
+
|
237
|
+
<option value="/docs/layouts/">
|
238
|
+
Layouts
|
239
|
+
</option>
|
240
|
+
|
241
|
+
|
242
|
+
<option value="/docs/permalinks/">
|
243
|
+
Permalinks
|
244
|
+
</option>
|
245
|
+
|
246
|
+
|
247
|
+
<option value="/docs/themes/">
|
248
|
+
Themes
|
249
|
+
</option>
|
250
|
+
|
251
|
+
|
252
|
+
<option value="/docs/pagination/">
|
253
|
+
Pagination
|
254
|
+
</option>
|
255
|
+
|
256
|
+
</optgroup>
|
257
|
+
|
258
|
+
<optgroup label="Guides">
|
259
|
+
|
260
|
+
|
261
|
+
<option value="/docs/plugins/">
|
262
|
+
Plugins
|
263
|
+
</option>
|
264
|
+
|
265
|
+
|
266
|
+
<option value="/docs/migrations/">
|
267
|
+
Blog Migrations
|
268
|
+
</option>
|
269
|
+
|
270
|
+
|
271
|
+
<option value="/docs/upgrading/">
|
272
|
+
Upgrading
|
273
|
+
</option>
|
274
|
+
|
275
|
+
|
276
|
+
<option value="/docs/deployment/">
|
277
|
+
Deployment
|
278
|
+
</option>
|
279
|
+
|
280
|
+
</optgroup>
|
281
|
+
|
282
|
+
</select>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
<div class="unit four-fifths">
|
287
|
+
<article>
|
288
|
+
<div class="improve right hide-on-mobiles">
|
289
|
+
<a data-proofer-ignore href="https://github.com/jekyll/jekyll/edit/master/docs/_docs/step-by-step/08-blogging.md"><i class="fa fa-pencil"></i> Improve this page</a>
|
290
|
+
</div>
|
291
|
+
<h1>Step by Step Tutorial</h1>
|
292
|
+
<h2>8. Blogging</h2>
|
293
|
+
<p>You might be wondering how you can have a blog without a database. In true
|
294
|
+
Jekyll style, blogging is powered by text files only.</p>
|
295
|
+
|
296
|
+
<h2 id="posts">Posts</h2>
|
297
|
+
|
298
|
+
<p>Blog posts live in a folder called <code class="highlighter-rouge">_posts</code>. The filename for posts have a
|
299
|
+
special format: the publish date, then a title, followed by an extension.</p>
|
300
|
+
|
301
|
+
<p>Create your first post at <code class="highlighter-rouge">_posts/2018-08-20-bananas.md</code> with the
|
302
|
+
following content:</p>
|
303
|
+
|
304
|
+
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">---</span>
|
305
|
+
<span class="na">layout</span><span class="pi">:</span> <span class="s">post</span>
|
306
|
+
<span class="na">author</span><span class="pi">:</span> <span class="s">jill</span>
|
307
|
+
<span class="nn">---</span>
|
308
|
+
A banana is an edible fruit – botanically a berry – produced by several kinds
|
309
|
+
of large herbaceous flowering plants in the genus Musa.
|
310
|
+
|
311
|
+
In some countries, bananas used for cooking may be called "plantains",
|
312
|
+
distinguishing them from dessert bananas. The fruit is variable in size, color,
|
313
|
+
and firmness, but is usually elongated and curved, with soft flesh rich in
|
314
|
+
starch covered with a rind, which may be green, yellow, red, purple, or brown
|
315
|
+
when ripe.
|
316
|
+
</code></pre></div></div>
|
317
|
+
|
318
|
+
<p>This is like the <code class="highlighter-rouge">about.md</code> you created before except it has an author and
|
319
|
+
a different layout. <code class="highlighter-rouge">author</code> is a custom variable, it’s not required and could
|
320
|
+
have been named something like <code class="highlighter-rouge">creator</code>.</p>
|
321
|
+
|
322
|
+
<h2 id="layout">Layout</h2>
|
323
|
+
|
324
|
+
<p>The <code class="highlighter-rouge">post</code> layout doesn’t exist so you’ll need to create it at
|
325
|
+
<code class="highlighter-rouge">_layouts/post.html</code> with the following content:</p>
|
326
|
+
|
327
|
+
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code>---
|
328
|
+
layout: default
|
329
|
+
---
|
330
|
+
<span class="nt"><h1></span>{{ page.title }}<span class="nt"></h1></span>
|
331
|
+
<span class="nt"><p></span>{{ page.date | date_to_string }} - {{ page.author }}<span class="nt"></p></span>
|
332
|
+
|
333
|
+
{{ content }}
|
334
|
+
</code></pre></div></div>
|
335
|
+
|
336
|
+
<p>This is an example of layout inheritance. The post layout outputs the title,
|
337
|
+
date, author and content body which is wrapped by the default layout.</p>
|
338
|
+
|
339
|
+
<p>Also note the <code class="highlighter-rouge">date_to_string</code> filter, this formats a date into a nicer format.</p>
|
340
|
+
|
341
|
+
<h2 id="list-posts">List posts</h2>
|
342
|
+
|
343
|
+
<p>There’s currently no way to navigate to the blog post. Typically a blog has a
|
344
|
+
page which lists all the posts, let’s do that next.</p>
|
345
|
+
|
346
|
+
<p>Jekyll makes posts available at <code class="highlighter-rouge">site.posts</code>.</p>
|
347
|
+
|
348
|
+
<p>Create <code class="highlighter-rouge">blog.html</code> in your root (<code class="highlighter-rouge">/blog.html</code>) with the following content:</p>
|
349
|
+
|
350
|
+
<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code>---
|
351
|
+
layout: default
|
352
|
+
title: Blog
|
353
|
+
---
|
354
|
+
<span class="nt"><h1></span>Latest Posts<span class="nt"></h1></span>
|
355
|
+
|
356
|
+
<span class="nt"><ul></span>
|
357
|
+
{% for post in site.posts %}
|
358
|
+
<span class="nt"><li></span>
|
359
|
+
<span class="nt"><h2><a</span> <span class="na">href=</span><span class="s">"{{ post.url }}"</span><span class="nt">></span>{{ post.title }}<span class="nt"></a></h2></span>
|
360
|
+
<span class="nt"><p></span>{{ post.excerpt }}<span class="nt"></p></span>
|
361
|
+
<span class="nt"></li></span>
|
362
|
+
{% endfor %}
|
363
|
+
<span class="nt"></ul></span>
|
364
|
+
</code></pre></div></div>
|
365
|
+
|
366
|
+
<p>There’s a few things to note with this code:</p>
|
367
|
+
|
368
|
+
<ul>
|
369
|
+
<li><code class="highlighter-rouge">post.url</code> is automatically set by Jekyll to the output path of the post</li>
|
370
|
+
<li><code class="highlighter-rouge">post.title</code> is pulled from the post filename and can be overridden by
|
371
|
+
setting <code class="highlighter-rouge">title</code> in front matter</li>
|
372
|
+
<li><code class="highlighter-rouge">post.excerpt</code> is the first paragraph of content by default</li>
|
373
|
+
</ul>
|
374
|
+
|
375
|
+
<p>You also need a way to navigate to this page through the main navigation. Open
|
376
|
+
<code class="highlighter-rouge">_data/navigation.yml</code> and add an entry for the blog page:</p>
|
377
|
+
|
378
|
+
<div class="language-yaml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Home</span>
|
379
|
+
<span class="na">link</span><span class="pi">:</span> <span class="s">/</span>
|
380
|
+
<span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">About</span>
|
381
|
+
<span class="na">link</span><span class="pi">:</span> <span class="s">/about.html</span>
|
382
|
+
<span class="pi">-</span> <span class="na">name</span><span class="pi">:</span> <span class="s">Blog</span>
|
383
|
+
<span class="na">link</span><span class="pi">:</span> <span class="s">/blog.html</span>
|
384
|
+
</code></pre></div></div>
|
385
|
+
|
386
|
+
<h2 id="more-posts">More posts</h2>
|
387
|
+
|
388
|
+
<p>A blog isn’t very exciting with a single post. Add a few more:</p>
|
389
|
+
|
390
|
+
<p><code class="highlighter-rouge">_posts/2018-08-21-apples.md</code>:</p>
|
391
|
+
|
392
|
+
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">---</span>
|
393
|
+
<span class="na">layout</span><span class="pi">:</span> <span class="s">post</span>
|
394
|
+
<span class="na">author</span><span class="pi">:</span> <span class="s">jill</span>
|
395
|
+
<span class="nn">---</span>
|
396
|
+
An apple is a sweet, edible fruit produced by an apple tree.
|
397
|
+
|
398
|
+
Apple trees are cultivated worldwide, and are the most widely grown species in
|
399
|
+
the genus Malus. The tree originated in Central Asia, where its wild ancestor,
|
400
|
+
Malus sieversii, is still found today. Apples have been grown for thousands of
|
401
|
+
years in Asia and Europe, and were brought to North America by European
|
402
|
+
colonists.
|
403
|
+
</code></pre></div></div>
|
404
|
+
|
405
|
+
<p><code class="highlighter-rouge">_posts/2018-08-22-kiwifruit.md</code>:</p>
|
406
|
+
|
407
|
+
<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">---</span>
|
408
|
+
<span class="na">layout</span><span class="pi">:</span> <span class="s">post</span>
|
409
|
+
<span class="na">author</span><span class="pi">:</span> <span class="s">ted</span>
|
410
|
+
<span class="nn">---</span>
|
411
|
+
Kiwifruit (often abbreviated as kiwi), or Chinese gooseberry is the edible
|
412
|
+
berry of several species of woody vines in the genus Actinidia.
|
413
|
+
|
414
|
+
The most common cultivar group of kiwifruit is oval, about the size of a large
|
415
|
+
hen's egg (5–8 cm (2.0–3.1 in) in length and 4.5–5.5 cm (1.8–2.2 in) in
|
416
|
+
diameter). It has a fibrous, dull greenish-brown skin and bright green or
|
417
|
+
golden flesh with rows of tiny, black, edible seeds. The fruit has a soft
|
418
|
+
texture, with a sweet and unique flavor.
|
419
|
+
</code></pre></div></div>
|
420
|
+
|
421
|
+
<p>Open <a href="http://localhost:4000" target="_blank" data-proofer-ignore="">http://localhost:4000</a> and have
|
422
|
+
a look through your blog posts.</p>
|
423
|
+
|
424
|
+
<p>Next we’ll focus on creating a page for each post author.</p>
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
<div class="section-nav">
|
448
|
+
<div class="left align-right">
|
449
|
+
|
450
|
+
|
451
|
+
<a href="/docs/step-by-step/07-assets/" class="prev">Back</a>
|
452
|
+
|
453
|
+
</div>
|
454
|
+
<div class="right align-left">
|
455
|
+
|
456
|
+
|
457
|
+
<a href="/docs/step-by-step/09-collections/" class="next">Next</a>
|
458
|
+
|
459
|
+
</div>
|
460
|
+
</div>
|
461
|
+
<div class="clear"></div>
|
462
|
+
|
463
|
+
|
464
|
+
<ol class="step-nav">
|
465
|
+
|
466
|
+
<li >
|
467
|
+
<a href="/docs/step-by-step/01-setup/">
|
468
|
+
Setup
|
469
|
+
</a>
|
470
|
+
</li>
|
471
|
+
|
472
|
+
<li >
|
473
|
+
<a href="/docs/step-by-step/02-liquid/">
|
474
|
+
Liquid
|
475
|
+
</a>
|
476
|
+
</li>
|
477
|
+
|
478
|
+
<li >
|
479
|
+
<a href="/docs/step-by-step/03-front-matter/">
|
480
|
+
Front Matter
|
481
|
+
</a>
|
482
|
+
</li>
|
483
|
+
|
484
|
+
<li >
|
485
|
+
<a href="/docs/step-by-step/04-layouts/">
|
486
|
+
Layouts
|
487
|
+
</a>
|
488
|
+
</li>
|
489
|
+
|
490
|
+
<li >
|
491
|
+
<a href="/docs/step-by-step/05-includes/">
|
492
|
+
Includes
|
493
|
+
</a>
|
494
|
+
</li>
|
495
|
+
|
496
|
+
<li >
|
497
|
+
<a href="/docs/step-by-step/06-data-files/">
|
498
|
+
Data Files
|
499
|
+
</a>
|
500
|
+
</li>
|
501
|
+
|
502
|
+
<li >
|
503
|
+
<a href="/docs/step-by-step/07-assets/">
|
504
|
+
Assets
|
505
|
+
</a>
|
506
|
+
</li>
|
507
|
+
|
508
|
+
<li class="current">
|
509
|
+
<a href="/docs/step-by-step/08-blogging/">
|
510
|
+
Blogging
|
511
|
+
</a>
|
512
|
+
</li>
|
513
|
+
|
514
|
+
<li >
|
515
|
+
<a href="/docs/step-by-step/09-collections/">
|
516
|
+
Collections
|
517
|
+
</a>
|
518
|
+
</li>
|
519
|
+
|
520
|
+
<li >
|
521
|
+
<a href="/docs/step-by-step/10-deployment/">
|
522
|
+
Deployment
|
523
|
+
</a>
|
524
|
+
</li>
|
525
|
+
|
526
|
+
</ol>
|
527
|
+
|
528
|
+
</article>
|
529
|
+
</div>
|
530
|
+
|
531
|
+
<div class="unit one-fifth hide-on-mobiles">
|
532
|
+
<aside>
|
533
|
+
|
534
|
+
<h4>Getting Started</h4>
|
535
|
+
<ul>
|
536
|
+
|
537
|
+
|
538
|
+
<li>
|
539
|
+
<a href="/docs/">
|
540
|
+
Quickstart
|
541
|
+
</a>
|
542
|
+
</li>
|
543
|
+
|
544
|
+
|
545
|
+
<li>
|
546
|
+
<a href="/docs/ruby-101/">
|
547
|
+
Ruby 101
|
548
|
+
</a>
|
549
|
+
</li>
|
550
|
+
|
551
|
+
|
552
|
+
<li>
|
553
|
+
<a href="/docs/installation/">
|
554
|
+
Installation
|
555
|
+
</a>
|
556
|
+
</li>
|
557
|
+
|
558
|
+
|
559
|
+
<li>
|
560
|
+
<a href="/docs/community/">
|
561
|
+
Community
|
562
|
+
</a>
|
563
|
+
</li>
|
564
|
+
|
565
|
+
|
566
|
+
<li>
|
567
|
+
<a href="/docs/step-by-step/01-setup/">
|
568
|
+
Step by Step Tutorial
|
569
|
+
</a>
|
570
|
+
</li>
|
571
|
+
|
572
|
+
</ul>
|
573
|
+
|
574
|
+
<h4>Build</h4>
|
575
|
+
<ul>
|
576
|
+
|
577
|
+
|
578
|
+
<li>
|
579
|
+
<a href="/docs/usage/">
|
580
|
+
Command Line Usage
|
581
|
+
</a>
|
582
|
+
</li>
|
583
|
+
|
584
|
+
|
585
|
+
<li>
|
586
|
+
<a href="/docs/configuration/">
|
587
|
+
Configuration
|
588
|
+
</a>
|
589
|
+
</li>
|
590
|
+
|
591
|
+
</ul>
|
592
|
+
|
593
|
+
<h4>Content</h4>
|
594
|
+
<ul>
|
595
|
+
|
596
|
+
|
597
|
+
<li>
|
598
|
+
<a href="/docs/pages/">
|
599
|
+
Pages
|
600
|
+
</a>
|
601
|
+
</li>
|
602
|
+
|
603
|
+
|
604
|
+
<li>
|
605
|
+
<a href="/docs/posts/">
|
606
|
+
Posts
|
607
|
+
</a>
|
608
|
+
</li>
|
609
|
+
|
610
|
+
|
611
|
+
<li>
|
612
|
+
<a href="/docs/front-matter/">
|
613
|
+
Front Matter
|
614
|
+
</a>
|
615
|
+
</li>
|
616
|
+
|
617
|
+
|
618
|
+
<li>
|
619
|
+
<a href="/docs/collections/">
|
620
|
+
Collections
|
621
|
+
</a>
|
622
|
+
</li>
|
623
|
+
|
624
|
+
|
625
|
+
<li>
|
626
|
+
<a href="/docs/datafiles/">
|
627
|
+
Data Files
|
628
|
+
</a>
|
629
|
+
</li>
|
630
|
+
|
631
|
+
|
632
|
+
<li>
|
633
|
+
<a href="/docs/assets/">
|
634
|
+
Assets
|
635
|
+
</a>
|
636
|
+
</li>
|
637
|
+
|
638
|
+
|
639
|
+
<li>
|
640
|
+
<a href="/docs/static-files/">
|
641
|
+
Static Files
|
642
|
+
</a>
|
643
|
+
</li>
|
644
|
+
|
645
|
+
</ul>
|
646
|
+
|
647
|
+
<h4>Site Structure</h4>
|
648
|
+
<ul>
|
649
|
+
|
650
|
+
|
651
|
+
<li>
|
652
|
+
<a href="/docs/structure/">
|
653
|
+
Directory Structure
|
654
|
+
</a>
|
655
|
+
</li>
|
656
|
+
|
657
|
+
|
658
|
+
<li>
|
659
|
+
<a href="/docs/liquid/">
|
660
|
+
Liquid
|
661
|
+
</a>
|
662
|
+
</li>
|
663
|
+
|
664
|
+
|
665
|
+
<li>
|
666
|
+
<a href="/docs/variables/">
|
667
|
+
Variables
|
668
|
+
</a>
|
669
|
+
</li>
|
670
|
+
|
671
|
+
|
672
|
+
<li>
|
673
|
+
<a href="/docs/includes/">
|
674
|
+
Includes
|
675
|
+
</a>
|
676
|
+
</li>
|
677
|
+
|
678
|
+
|
679
|
+
<li>
|
680
|
+
<a href="/docs/layouts/">
|
681
|
+
Layouts
|
682
|
+
</a>
|
683
|
+
</li>
|
684
|
+
|
685
|
+
|
686
|
+
<li>
|
687
|
+
<a href="/docs/permalinks/">
|
688
|
+
Permalinks
|
689
|
+
</a>
|
690
|
+
</li>
|
691
|
+
|
692
|
+
|
693
|
+
<li>
|
694
|
+
<a href="/docs/themes/">
|
695
|
+
Themes
|
696
|
+
</a>
|
697
|
+
</li>
|
698
|
+
|
699
|
+
|
700
|
+
<li>
|
701
|
+
<a href="/docs/pagination/">
|
702
|
+
Pagination
|
703
|
+
</a>
|
704
|
+
</li>
|
705
|
+
|
706
|
+
</ul>
|
707
|
+
|
708
|
+
<h4>Guides</h4>
|
709
|
+
<ul>
|
710
|
+
|
711
|
+
|
712
|
+
<li>
|
713
|
+
<a href="/docs/plugins/">
|
714
|
+
Plugins
|
715
|
+
</a>
|
716
|
+
</li>
|
717
|
+
|
718
|
+
|
719
|
+
<li>
|
720
|
+
<a href="/docs/migrations/">
|
721
|
+
Blog Migrations
|
722
|
+
</a>
|
723
|
+
</li>
|
724
|
+
|
725
|
+
|
726
|
+
<li>
|
727
|
+
<a href="/docs/upgrading/">
|
728
|
+
Upgrading
|
729
|
+
</a>
|
730
|
+
</li>
|
731
|
+
|
732
|
+
|
733
|
+
<li>
|
734
|
+
<a href="/docs/deployment/">
|
735
|
+
Deployment
|
736
|
+
</a>
|
737
|
+
</li>
|
738
|
+
|
739
|
+
</ul>
|
740
|
+
|
741
|
+
</aside>
|
742
|
+
</div>
|
743
|
+
|
744
|
+
|
745
|
+
<div class="clear"></div>
|
746
|
+
|
747
|
+
</div>
|
748
|
+
</section>
|
749
|
+
|
750
|
+
|
751
|
+
<footer>
|
752
|
+
<div class="grid">
|
753
|
+
<div class="unit one-third center-on-mobiles">
|
754
|
+
<p>Jekyll is lovingly maintained by the <a href="/team/">core team</a> of volunteers. </p>
|
755
|
+
<p>The contents of this website are <br />© 2019 under the terms of the <a href="https://github.com/jekyll/jekyll/blob/master/LICENSE">MIT License</a>.</p>
|
756
|
+
</div>
|
757
|
+
<div class="unit two-thirds align-right center-on-mobiles">
|
758
|
+
<p>
|
759
|
+
Proudly hosted by
|
760
|
+
<a href="https://github.com">
|
761
|
+
<img src="/img/footer-logo.png" width="100" height="30" alt="GitHub • Social coding">
|
762
|
+
</a>
|
763
|
+
</p>
|
764
|
+
</div>
|
765
|
+
<div class="unit two-thirds align-right center-on-mobiles">
|
766
|
+
<p>
|
767
|
+
Jekyll is funded thanks to its
|
768
|
+
<a href="https://github.com/jekyll/jekyll#sponsors">
|
769
|
+
sponsors!
|
770
|
+
</a>
|
771
|
+
</p>
|
772
|
+
</div>
|
773
|
+
</div>
|
774
|
+
</footer>
|
775
|
+
|
776
|
+
<script>
|
777
|
+
var anchorForId = function (id) {
|
778
|
+
var anchor = document.createElement("a");
|
779
|
+
anchor.className = "header-link";
|
780
|
+
anchor.href = "#" + id;
|
781
|
+
anchor.innerHTML = "<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>";
|
782
|
+
anchor.title = "Permalink";
|
783
|
+
return anchor;
|
784
|
+
};
|
785
|
+
|
786
|
+
var linkifyAnchors = function (level, containingElement) {
|
787
|
+
var headers = containingElement.getElementsByTagName("h" + level);
|
788
|
+
for (var h = 0; h < headers.length; h++) {
|
789
|
+
var header = headers[h];
|
790
|
+
|
791
|
+
if (typeof header.id !== "undefined" && header.id !== "") {
|
792
|
+
header.appendChild(anchorForId(header.id));
|
793
|
+
}
|
794
|
+
}
|
795
|
+
};
|
796
|
+
|
797
|
+
document.onreadystatechange = function () {
|
798
|
+
if (this.readyState === "complete") {
|
799
|
+
var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0];
|
800
|
+
if (!contentBlock) {
|
801
|
+
return;
|
802
|
+
}
|
803
|
+
for (var level = 1; level <= 6; level++) {
|
804
|
+
linkifyAnchors(level, contentBlock);
|
805
|
+
}
|
806
|
+
}
|
807
|
+
};
|
808
|
+
</script>
|
809
|
+
|
810
|
+
|
811
|
+
<!-- Google Analytics (https://www.google.com/analytics) -->
|
812
|
+
<script>
|
813
|
+
!function(j,e,k,y,l,L){j.GoogleAnalyticsObject=y,j[y]||(j[y]=function(){
|
814
|
+
(j[y].q=j[y].q||[]).push(arguments)}),j[y].l=+new Date,l=e.createElement(k),
|
815
|
+
L=e.getElementsByTagName(k)[0],l.src='https://www.google-analytics.com/analytics.js',
|
816
|
+
L.parentNode.insertBefore(l,L)}(window,document,'script','ga');
|
817
|
+
|
818
|
+
ga('create', 'UA-50755011-1', 'jekyllrb.com');
|
819
|
+
ga('send', 'pageview');
|
820
|
+
|
821
|
+
</script>
|
822
|
+
|
823
|
+
|
824
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
825
|
+
<script type="text/javascript"> docsearch({
|
826
|
+
apiKey: '50fe39c839958dfad797000f33e2ec17',
|
827
|
+
indexName: 'jekyllrb',
|
828
|
+
inputSelector: '#docsearch-input',
|
829
|
+
enhancedSearchInput: true,
|
830
|
+
debug: false // Set debug to true if you want to inspect the dropdown
|
831
|
+
});
|
832
|
+
</script>
|
833
|
+
|
834
|
+
</body>
|
835
|
+
</html>
|