Jekyll2017-08-09T07:23:58+00:00https://sharathdt.github.io/sparrow/SparrowA clean and minimal theme for writers.LingyiHow to use this theme2017-04-12T00:00:00+00:002017-04-12T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/how-to-use-this-theme<p>Just fork this repo and replace the posts with your own. Also rename the sample poetry collection to replace it with your own collection, or just delete it if you don’t need to use collections. The example is poetry, but you can easily revamp this into essays, short stories, portfolio, or whatever your creative work is.</p>
<p>OR you can also install this theme as a theme gem. To do that, add to your Gemfile:</p>
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="n">gem</span> <span class="s2">"sparrow-jekyll-theme"</span>
</code></pre>
</div>
<p>And add this line site’s <code class="highlighter-rouge">_config.yml</code>:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">theme</span><span class="pi">:</span> <span class="s">sparrow-jekyll-theme</span>
</code></pre>
</div>
<p>And then do <code class="highlighter-rouge">bundle install</code>.</p>
<p>To run your site locally, do <code class="highlighter-rouge">bundle exec jekyll serve</code>.</p>
<p>For customization, see below.</p>
<ul>
<li><a href="#general-configuration">General configuration</a></li>
<li><a href="#disqus">Disqus</a></li>
<li><a href="#google-analytics">Google analytics</a></li>
<li><a href="#collections">Collections</a></li>
<li><a href="#pagination">Pagination</a></li>
<li><a href="#navigation">Navigation</a></li>
<li><a href="#front-matter-defaults">Front matter defaults</a></li>
<li><a href="#other">Other</a></li>
</ul>
<h3 id="general-configuration">General configuration</h3>
<p>Customize these values in the <code class="highlighter-rouge">_config.yml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">title</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">Sparrow"</span>
<span class="s">title_separator</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">-"</span>
<span class="s">description</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">A</span><span class="nv"> </span><span class="s">clean</span><span class="nv"> </span><span class="s">and</span><span class="nv"> </span><span class="s">minimal</span><span class="nv"> </span><span class="s">theme</span><span class="nv"> </span><span class="s">for</span><span class="nv"> </span><span class="s">writers."</span>
<span class="s">favicon</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">/assets/images/bird.png"</span>
<span class="s">avatar</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">/assets/images/bird.png"</span>
<span class="s">url</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">https://theconfused.me"</span> <span class="c1"># the base hostname & protocol for your site e.g. "https://mmistakes.github.io"</span>
<span class="s">baseurl</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">/sparrow"</span>
<span class="c1"># Site Author</span>
<span class="s">author</span><span class="pi">:</span>
<span class="s">name</span> <span class="pi">:</span> <span class="s2">"</span><span class="s">Lingyi"</span> <span class="c1"># appears in the footer and atom feed</span>
</code></pre>
</div>
<h3 id="disqus">Disqus</h3>
<p>To activate Disqus, fill in your disqus shortname:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">comments</span> <span class="pi">:</span> <span class="s">true</span> <span class="c1"># set it to false to disable comments</span>
<span class="s">disqus</span><span class="pi">:</span>
<span class="s">shortname</span> <span class="pi">:</span> <span class="s">your_shortname</span>
</code></pre>
</div>
<h3 id="google-analytics">Google analytics</h3>
<p>Enable google analytics by filling in your tracking ID:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">analytics</span><span class="pi">:</span>
<span class="s">google</span><span class="pi">:</span>
<span class="s">tracking_id</span> <span class="pi">:</span> <span class="c1"># add your google tracking id here</span>
</code></pre>
</div>
<h3 id="collections">Collections</h3>
<p>If you are using collections, be sure to replace this with your collection name:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">collections</span><span class="pi">:</span>
<span class="s">poetry</span><span class="pi">:</span>
<span class="s">output</span><span class="pi">:</span> <span class="s">true</span>
<span class="s">permalink</span><span class="pi">:</span> <span class="s">/:collection/:title/</span>
</code></pre>
</div>
<h3 id="pagination">Pagination</h3>
<p>Currently, pagination is set to a the blog page. Unfortunately Jekyll does not yet support pagination on multiple pages.</p>
<p>If you want to paginate on a different page, simply change the <code class="highlighter-rouge">paginate_path</code> value in the config file and create the relevant page.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">paginate</span><span class="pi">:</span> <span class="s">5</span> <span class="c1"># amount of posts to show</span>
<span class="s">paginate_path</span><span class="pi">:</span> <span class="s2">"</span><span class="s">/blog/page:num/"</span>
<span class="s">timezone</span><span class="pi">:</span> <span class="c1"># http://en.wikipedia.org/wiki/List_of_tz_database_time_zones</span>
</code></pre>
</div>
<h3 id="navigation">Navigation</h3>
<p>You can change the navigation links in <code class="highlighter-rouge">_data/navigation.yml</code>.</p>
<h3 id="front-matter-defaults">Front matter defaults</h3>
<p>At the bottom of the config file, you can also set <a href="https://jekyllrb.com/docs/configuration/#front-matter-defaults">front matter defaults</a> so that you don’t have to repeat the same front matter for every post. This is an example:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Front matter defaults</span>
<span class="s">defaults</span><span class="pi">:</span>
<span class="c1"># _pages</span>
<span class="pi">-</span> <span class="s">scope</span><span class="pi">:</span>
<span class="s">path</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
<span class="s">type</span><span class="pi">:</span> <span class="s">pages</span>
<span class="s">values</span><span class="pi">:</span>
<span class="s">layout</span><span class="pi">:</span> <span class="s">page</span>
<span class="s">comments</span><span class="pi">:</span> <span class="s">false</span>
<span class="c1"># _posts</span>
<span class="pi">-</span> <span class="s">scope</span><span class="pi">:</span>
<span class="s">path</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
<span class="s">type</span><span class="pi">:</span> <span class="s">posts</span>
<span class="s">values</span><span class="pi">:</span>
<span class="s">layout</span><span class="pi">:</span> <span class="s">post</span>
<span class="s">comments</span><span class="pi">:</span> <span class="s">true</span>
<span class="s">share</span><span class="pi">:</span> <span class="s">true</span>
<span class="c1"># _poetry</span>
<span class="pi">-</span> <span class="s">scope</span><span class="pi">:</span>
<span class="s">path</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
<span class="s">type</span><span class="pi">:</span> <span class="s">poetry</span>
<span class="s">values</span><span class="pi">:</span>
<span class="s">layout</span><span class="pi">:</span> <span class="s">post</span>
<span class="s">share</span><span class="pi">:</span> <span class="s">false</span>
</code></pre>
</div>
<h3 id="other">Other</h3>
<p>To enhance SEO, you can add your twitter username to <code class="highlighter-rouge">_config.yml</code>.</p>
<p>You can also add a image path for the <code class="highlighter-rouge">og_image</code> value in the config file, for a default open graph sharing image. This value can be overridden in individual posts.</p>
<p>There are also helper classes for ease of inserting image and their captions, adapted from the <a href="https://github.com/mmistakes/minimal-mistakes">Minimal Mistakes theme by Michael Rose</a>. You can find a <a href="https://theconfused.me/sparrow/blog/post-with-image/">sample post with images</a> on the <a href="https://theconfused.me/sparrow">demo site</a>.</p>
<p>The color schemes and fonts can also be customized through scss, by editing the relevant variable in <code class="highlighter-rouge">_variables.scss</code>.</p>LingyiJust fork this repo and replace the posts with your own. Also rename the sample poetry collection to replace it with your own collection, or just delete it if you don’t need to use collections. The example is poetry, but you can easily revamp this into essays, short stories, portfolio, or whatever your creative work is.Welcome to Jekyll!2017-04-11T00:00:00+00:002017-04-11T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/welcome-to-jekyll<p>You’ll find this post in your <code class="highlighter-rouge">_posts</code> directory - edit this post and re-build (or run with the <code class="highlighter-rouge">-w</code> switch) to see your changes!
To add new posts, simply add a file in the <code class="highlighter-rouge">_posts</code> directory that follows the convention: YYYY-MM-DD-name-of-post.ext.</p>
<p>Jekyll also offers powerful support for code snippets:</p>
<div class="language-ruby highlighter-rouge"><pre class="highlight"><code><span class="k">def</span> <span class="nf">print_hi</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
<span class="nb">puts</span> <span class="s2">"Hi, </span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>
<span class="n">print_hi</span><span class="p">(</span><span class="s1">'Tom'</span><span class="p">)</span>
<span class="c1">#=> prints 'Hi, Tom' to STDOUT.</span>
</code></pre>
</div>
<p>Check out the <a href="http://jekyllrb.com">Jekyll docs</a> for more info on how to get the most out of Jekyll. File all bugs/feature requests at <a href="https://github.com/mojombo/jekyll">Jekyll’s GitHub repo</a>.</p>LingyiYou’ll find this post in your _posts directory - edit this post and re-build (or run with the -w switch) to see your changes! To add new posts, simply add a file in the _posts directory that follows the convention: YYYY-MM-DD-name-of-post.ext.Post with lots of text2017-04-10T00:00:00+00:002017-04-10T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/post-with-lots-of-text<p>IPhone roof party voluptate chia man bun truffaut. You probably haven’t heard of them salvia consequat schlitz, pork belly activated charcoal yuccie ad do letterpress mlkshk church-key pickled chambray bushwick. Neutra farm-to-table ugh, meggings gluten-free swag meh hexagon culpa fixie. Quinoa truffaut proident twee, irure non viral waistcoat direct trade cray. Kickstarter truffaut chambray PBR&B, brunch fugiat jianbing literally neutra iceland. Photo booth fugiat tofu, seitan officia tousled put a bird on it laboris pariatur hammock paleo kickstarter. Cray cupidatat meditation, sint plaid brooklyn esse try-hard direct trade narwhal seitan skateboard YOLO.</p>
<p>Cronut marfa YOLO commodo tote bag banjo knausgaard. Small batch echo park typewriter in. Et blue bottle mustache nisi, banjo fingerstache microdosing selfies tilde shabby chic fanny pack delectus dreamcatcher edison bulb tbh. Disrupt nihil waistcoat, gastropub iPhone est taxidermy snackwave hella fixie ramps seitan offal synth anim. Activated charcoal post-ironic listicle pour-over craft beer pariatur, drinking vinegar vape consequat typewriter franzen umami ut selvage. Organic fashion axe hella veniam chartreuse. Gentrify chillwave vinyl bitters, photo booth tattooed mollit la croix dolor.</p>
<p>Helvetica sriracha hot chicken non heirloom shoreditch hexagon taxidermy, food truck lumbersexual sartorial succulents chia esse. Banh mi direct trade street art, thundercats qui leggings reprehenderit master cleanse labore meggings tbh jianbing. Pariatur deserunt lyft, four dollar toast laborum aliqua veniam iceland iPhone. Bitters glossier odio humblebrag, fixie gluten-free nihil id godard consectetur typewriter. Ad biodiesel whatever, keffiyeh portland do vinyl heirloom post-ironic offal. Velit selvage viral, veniam shoreditch chillwave vinyl taxidermy hell of chicharrones. Trust fund iPhone lyft hell of.</p>
<p>Sapiente cronut ullamco, hashtag culpa thundercats pop-up williamsburg pour-over small batch brunch XOXO retro celiac. Laboris chia biodiesel you probably haven’t heard of them. Craft beer anim succulents, bitters vegan irure hashtag. Fashion axe organic pug readymade. Odio kale chips la croix godard activated charcoal. Williamsburg odio succulents lo-fi, VHS labore heirloom consectetur kale chips health goth cardigan eiusmod culpa. Tilde fashion axe four loko four dollar toast, tote bag etsy normcore freegan edison bulb forage pork belly aliquip.</p>LingyiIPhone roof party voluptate chia man bun truffaut. You probably haven’t heard of them salvia consequat schlitz, pork belly activated charcoal yuccie ad do letterpress mlkshk church-key pickled chambray bushwick. Neutra farm-to-table ugh, meggings gluten-free swag meh hexagon culpa fixie. Quinoa truffaut proident twee, irure non viral waistcoat direct trade cray. Kickstarter truffaut chambray PBR&B, brunch fugiat jianbing literally neutra iceland. Photo booth fugiat tofu, seitan officia tousled put a bird on it laboris pariatur hammock paleo kickstarter. Cray cupidatat meditation, sint plaid brooklyn esse try-hard direct trade narwhal seitan skateboard YOLO.Post with image2017-04-10T00:00:00+00:002017-04-10T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/post-with-image<p>Jean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Fingerstache four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch.</p>
<figure class="">
<img src="https://sharathdt.github.io/sparrow/assets/images/unsplash1.jpg" alt="this is a placeholder image" />
<figcaption>This is a figure caption.
</figcaption>
</figure>
<p>Slow-carb four dollar toast Helvetica pop-up. Kale chips next level literally trust fund Pitchfork. Jean shorts Pinterest beard, farm-to-table irony craft beer swag tofu 8-bit Banksy. Quinoa forage fanny pack, pug hashtag Echo Park heirloom Schlitz tote bag artisan Neutra mumblecore 90’s shabby chic raw denim.</p>
<figure class="half">
<img src="https://sharathdt.github.io/sparrow/assets/images/unsplash3.jpg" />
<img src="https://sharathdt.github.io/sparrow/assets/images/unsplash2.jpg" />
<figcaption>Caption describing these two images.</figcaption>
</figure>
<figure class="third">
<img src="https://sharathdt.github.io/sparrow/assets/images/unsplash3.jpg" />
<img src="https://sharathdt.github.io/sparrow/assets/images/unsplash2.jpg" />
<img src="https://sharathdt.github.io/sparrow/assets/images/unsplash1.jpg" />
<figcaption>Caption describing these three images.</figcaption>
</figure>LingyiJean shorts raw denim Vice normcore, art party High Life PBR skateboard stumptown vinyl kitsch. Fingerstache four loko meh 8-bit, tousled banh mi tilde forage Schlitz dreamcatcher twee 3 wolf moon. Chambray asymmetrical paleo salvia, sartorial umami four loko master cleanse drinking vinegar brunch.Typography Elements2016-10-20T00:00:00+00:002016-10-20T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/typography-elements<h1 id="heading-1">Heading 1</h1>
<h2 id="heading-2">Heading 2</h2>
<h3 id="heading-3">Heading 3</h3>
<h4 id="heading-4">Heading 4</h4>
<h5 id="heading-5">Heading 5</h5>
<h6 id="heading-6">Heading 6</h6>
<p>This is a divider:</p>
<hr />
<p>This is a blockquote:</p>
<blockquote>
<p>Every one of us is, in the cosmic perspective, precious. If a human disagrees with you, let him live. In a hundred billion galaxies, you will not find another.
<cite>Carl Sagan, Cosmos</cite></p>
</blockquote>LingyiHeading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6More filler posts to show pagination2015-10-12T00:00:00+00:002015-10-12T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/filler-post-1<p>Butcher before they sold out locavore, fixie twee trust fund coloring book cliche semiotics church-key keytar photo booth. Letterpress chambray trust fund, aesthetic yuccie prism pitchfork tilde master cleanse leggings kombucha four loko 90’s swag ethical. Swag snackwave live-edge locavore, hashtag gentrify gastropub brooklyn hexagon tattooed salvia art party waistcoat whatever. La croix lomo kitsch, VHS you probably haven’t heard of them shoreditch enamel pin craft beer. Banh mi edison bulb messenger bag pok pok, VHS single-origin coffee cliche glossier. Fam whatever waistcoat direct trade. Occupy four loko sartorial small batch.</p>
<hr />
<p>Four loko crucifix kombucha tofu, iceland forage XOXO iPhone mlkshk kogi keffiyeh knausgaard lumbersexual bicycle rights. Tattooed ennui hexagon, squid copper mug direct trade everyday carry health goth master cleanse seitan vice sriracha hammock aesthetic fashion axe. Mixtape hoodie gentrify lyft. Post-ironic keffiyeh ethical poke. Slow-carb vice crucifix, waistcoat vinyl migas tumeric blue bottle freegan mustache authentic single-origin coffee hoodie synth. Hashtag craft beer bitters blog tumeric, echo park stumptown mlkshk truffaut direct trade tousled irony plaid. Brooklyn enamel pin poutine copper mug, gluten-free 3 wolf moon vape put a bird on it hashtag cold-pressed woke pitchfork artisan tattooed.</p>
<p>Tousled gluten-free chillwave, chia wolf trust fund semiotics single-origin coffee raclette farm-to-table iceland dreamcatcher cliche. Chia kombucha tbh franzen hell of. Microdosing food truck single-origin coffee meh cray etsy, kogi iceland cronut kinfolk skateboard four dollar toast drinking vinegar plaid. Fam man braid next level, vice marfa hoodie pickled godard flannel. Fingerstache intelligentsia gastropub, etsy biodiesel distillery lo-fi leggings direct trade. Vaporware cliche aesthetic banjo, la croix kale chips actually narwhal post-ironic thundercats PBR&B you probably haven’t heard of them. Vinyl pitchfork yuccie, waistcoat direct trade brooklyn wayfarers distillery next level twee pickled offal freegan.</p>LingyiButcher before they sold out locavore, fixie twee trust fund coloring book cliche semiotics church-key keytar photo booth. Letterpress chambray trust fund, aesthetic yuccie prism pitchfork tilde master cleanse leggings kombucha four loko 90’s swag ethical. Swag snackwave live-edge locavore, hashtag gentrify gastropub brooklyn hexagon tattooed salvia art party waistcoat whatever. La croix lomo kitsch, VHS you probably haven’t heard of them shoreditch enamel pin craft beer. Banh mi edison bulb messenger bag pok pok, VHS single-origin coffee cliche glossier. Fam whatever waistcoat direct trade. Occupy four loko sartorial small batch.Another filler post2015-09-09T00:00:00+00:002015-09-09T00:00:00+00:00https://sharathdt.github.io/sparrow/blog/filler-post-2<p>Butcher before they sold out locavore, fixie twee trust fund coloring book cliche semiotics church-key keytar photo booth. Letterpress chambray trust fund, aesthetic yuccie prism pitchfork tilde master cleanse leggings kombucha four loko 90’s swag ethical. Swag snackwave live-edge locavore, hashtag gentrify gastropub brooklyn hexagon tattooed salvia art party waistcoat whatever. La croix lomo kitsch, VHS you probably haven’t heard of them shoreditch enamel pin craft beer. Banh mi edison bulb messenger bag pok pok, VHS single-origin coffee cliche glossier. Fam whatever waistcoat direct trade. Occupy four loko sartorial small batch.</p>
<p>Four loko crucifix kombucha tofu, iceland forage XOXO iPhone mlkshk kogi keffiyeh knausgaard lumbersexual bicycle rights. Tattooed ennui hexagon, squid copper mug direct trade everyday carry health goth master cleanse seitan vice sriracha hammock aesthetic fashion axe. Mixtape hoodie gentrify lyft. Post-ironic keffiyeh ethical poke. Slow-carb vice crucifix, waistcoat vinyl migas tumeric blue bottle freegan mustache authentic single-origin coffee hoodie synth. Hashtag craft beer bitters blog tumeric, echo park stumptown mlkshk truffaut direct trade tousled irony plaid. Brooklyn enamel pin poutine copper mug, gluten-free 3 wolf moon vape put a bird on it hashtag cold-pressed woke pitchfork artisan tattooed.</p>
<p>Tousled gluten-free chillwave, chia wolf trust fund semiotics single-origin coffee raclette farm-to-table iceland dreamcatcher cliche. Chia kombucha tbh franzen hell of. Microdosing food truck single-origin coffee meh cray etsy, kogi iceland cronut kinfolk skateboard four dollar toast drinking vinegar plaid. Fam man braid next level, vice marfa hoodie pickled godard flannel. Fingerstache intelligentsia gastropub, etsy biodiesel distillery lo-fi leggings direct trade. Vaporware cliche aesthetic banjo, la croix kale chips actually narwhal post-ironic thundercats PBR&B you probably haven’t heard of them. Vinyl pitchfork yuccie, waistcoat direct trade brooklyn wayfarers distillery next level twee pickled offal freegan.</p>LingyiButcher before they sold out locavore, fixie twee trust fund coloring book cliche semiotics church-key keytar photo booth. Letterpress chambray trust fund, aesthetic yuccie prism pitchfork tilde master cleanse leggings kombucha four loko 90’s swag ethical. Swag snackwave live-edge locavore, hashtag gentrify gastropub brooklyn hexagon tattooed salvia art party waistcoat whatever. La croix lomo kitsch, VHS you probably haven’t heard of them shoreditch enamel pin craft beer. Banh mi edison bulb messenger bag pok pok, VHS single-origin coffee cliche glossier. Fam whatever waistcoat direct trade. Occupy four loko sartorial small batch.