Commit 78298785 authored by Kaushal Modi's avatar Kaushal Modi

Change the theme name to kanyon

parents
{{ define "main" }}
<div class="page">
<h1 class="page-title">404</h1>
<p>Sorry, we&rsquo;ve misplaced that URL or it&rsquo;s pointing to something that doesn&rsquo;t exist. <a href="/">Head back home</a> to try finding it again.</p>
</div>
{{ end }}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
{{ partial "head" . }}
<body class={{ (print "theme-base-0" .Site.Params.ThemeColorBase) }} lang="en">
{{ partial "sidebar" . }}
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
content to avoid any CSS collisions with our real content. -->
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<p class="masthead-title-only">
<a href="/" title="Home">{{ .Site.Title }}</a> <span class="blinking-cursor"></span>
</p>&nbsp;<small>{{ .Site.Params.Tagline }}</small>
</h3>
</div>
</div>
<div class="container content">
{{ block "main" . }}{{ end }}
{{ "<!-- Pagination, Next/Prev post -->" | safeHTML }}
{{ block "after_main" . }}{{ end }}
<!-- <footer>
<div>
<p class="right credit">
Link to <a href="/">Home Page</a>
</p>
</div>
</footer> -->
</div> <!-- - Closing <div class="wrap"> in default_head.html -->
</div> <!-- - Closing <div class="container content"> in default_head.html -->
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
{{ "<!-- Google Analytics -->" | safeHTML }}
<!-- {{ template "_internal/google_analytics_async.html" . }} -->
{{ partial "googleanalytics" . }}
</body>
</html>
<!--
The lines of the displayed list item are as follows:
(1) The name of the post
(2) The date the post was written as left-justified text and a
right-justified horizontal list of categories for that post.
(3) The contents of the description field in the metadata of the actual
markdown source of the post.
-->
<li>
<span><h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2></span>
<span class="left post-date">
{{ .Date.Format .Site.Params.DateForm }}
</span>
<span class="right">
{{ partial "post_cat_list" . }}
</span>
<br />
{{ .Description }}
</li>
{{ define "main" }} <!-- List of all posts -->
<p>Here are all my blog posts, in descending order by creation date.
If you would like to view them by topic, see the
<a href="/categories">Categories</a> page.</p>
<section>
<ul id="post-list">
<!-- https://github.com/juh2/hugo-phantom/blob/master/layouts/_default/list.html -->
{{ range .Data.Pages.GroupByDate "2006" }}
<h1>{{ .Key }}</h1>
{{ range .Pages }}
{{ .Render "li" }}
{{ end }}
{{ end }}
</ul>
</section>
{{ end }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{ end }}
{{ with .Site.Author.name }}<author>{{.}}</author>{{ end }}
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
<atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
{{ range first 15 .Data.Pages }}
{{ if eq .Type "post"}}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.name }}<author>{{.}}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
{{ end }}
</channel>
</rss>
{{ define "main" }}
<div class="post">
<h1 class="post-title">{{ .Title }}</h1>
<span class="post-date">{{ .Date.Format .Site.Params.DateForm }}</span>
{{ .Content }}
{{ partial "post_categories" . }}
</div>
{{ end }}
{{ define "after_main" }}
{{ partial "prev_next" . }}
<!-- {{ template "_internal/disqus.html" . }} -->
{{ partial "disqus" . }}
{{ end }}
<!--
This file defines how a summary of a specific post should be presented.
This template does the following:
(1) Shows the name of the post
(2) Shows the date the post was created (from metadata in post markdown
source)
(3) Displays a Hugo-generated summary of the post
(4) Provides a link with text Read More that points to the post
-->
<article class="post">
<header>
<h1 class="post-title"><a href='{{ .Permalink }}'> {{ .Title }}</a> </h1>
<div class="post-date">{{ .Date.Format .Site.Params.DateForm }} - {{ .FuzzyWordCount }} Words</div>
</header>
{{ .Summary }}
<footer>
<a href='{{ .Permalink }}'><nobr>Read more &rarr;</nobr></a>
</footer>
</article>
{{ define "main" }} <!-- List of all categories -->
<section id="main">
<div>
<h1>Archive of Posts, by {{ .Data.Singular }}</h1>
<ul class="category">
{{ $data := .Data }}
{{ range $key,$value := .Data.Terms.Alphabetical }}
<li><a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> ({{ $value.Count }} entries) </li>
{{ end }}
</ul>
</div>
</section>
{{ end }}
{{ define "main" }}
<div class="posts">
<!-- http://justindunham.net/blog-bells-and-whistles-in-hugo/ -->
{{ range (.Paginator 10).Pages }}
{{ .Render "summary"}} <!-- Use layouts/_default/summary.html -->
{{ end }}
</div>
{{ end }}
{{ define "after_main" }}
<div class="pagination">
{{ if .Paginator.HasPrev }}
<a class="pagination-item newer" href="{{ .Paginator.Prev.URL }}">Newer</a>
{{ else }}
<span class="pagination-item newer">Newer</span>
{{ end }}
{{ if .Paginator.HasNext }}
<a class="pagination-item older" href="{{ .Paginator.Next.URL }}">Older</a>
{{ else }}
<span class="pagination-item older">Older</span>
{{ end }}
</div>
{{ end }}
<div id="disqus_thread"></div>
<script type="text/javascript">
/*
https://ascriptersnotes.disqus.com/admin/settings/universalcode/
*/
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function() {
// Don't ever inject Disqus on localhost--it creates unwanted
// discussions from 'localhost:1313' on your Disqus account...
if (window.location.hostname == "localhost")
return;
var d = document;
var s = d.createElement('script');
s.type = 'text/javascript'; // from https://gohugo.io/extras/comments/#conditional-loading-of-disqus-comments
s.async = true; // from https://gohugo.io/extras/comments/#conditional-loading-of-disqus-comments
var disqus_shortname = '{{ .Site.DisqusShortname }}';
s.src = '//' + disqus_shortname + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
// (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{{ with .Site.GoogleAnalytics }}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ . }}', 'auto');
// Enhanced Link Attribution
// https://support.google.com/analytics/answer/2558867?hl=en&utm_id=ad
ga('require', 'linkid');
ga('send', 'pageview');
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>
{{ end }}
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta charset="utf-8">
<!-- Above is a short hand for the below line. -->
<!-- http://htmldog.com/guides/html/intermediate/metatags/ -->
<!-- <meta http-equiv="content-type" content="text/html; charset=utf-8"> -->
<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>
{{ if eq .URL "/" }}
{{ .Site.Title }} ❚ {{ .Site.Params.Tagline }}
{{ else }}
{{ .Title }} ❚ {{ .Site.Title }}
{{ end }}
</title>
<!-- CSS -->
<link rel="stylesheet" href="/css/poole.css">
<!-- <link rel="stylesheet" href="/css/syntax.css"> -->
<!-- Blinking Cursor -->
<link rel="stylesheet" href="/css/blinking_cursor.css">
<!-- The order of these CSS files is important! lanyon.css contains the
theme colors. So that needs to be the last CSS to be loaded as we would want to
have the theme colors the highest precendence. -->
<link rel="stylesheet" href="/css/lanyon.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|PT+Sans:400">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=VT323">
<!-- Icons -->
<!-- Generated using http://realfavicongenerator.net/ -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#000000">
<!-- RSS -->
<!-- <link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml"> -->
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
</head>
<ul class="catlist">
{{ range .Params.categories }}
<li><a href="/categories/{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
<!--
This file is a template that is included various places to have a list of
that particular posts categories generated.
This is inside the 'container' class div block that began in default_head.html.
-->
{{ partial "post_cat_list" . }}
<!--
This is a helper file that adds previous and next links to the bottom of each
blog post. (below next and previous refer to chronological next and previous)
It will check to see if there is a previous blog post. If is, it will print
an arrow as well as the title of the previous post as a link as
left-justified text.
It will then check for a next blog post. If there is one it prints the title
of the next post with a right arrow as right justified text on the same line.
If there is ever not a next or previous post, it does nothing.
This is inside the 'container' class div block that began in default_head.html.
-->
<hr />
{{if .Prev}}
<span class="prev_post">
&laquo;&nbsp;<b>Prev</b>&nbsp;&nbsp;<a href="{{.Prev.Permalink}}">{{.Prev.Title}}</a>
</span>
{{end}}
{{if .Next}}
<span class="next_post">
<a href="{{.Next.Permalink}}">{{ .Next.Title }}</a>&nbsp;&nbsp;<b>Next</b>&nbsp;&raquo;
</span>
{{end}}
<!-- Below <br /> is needed to make the following HTML not float up
inbetween the Newer/Older blocks -->
<br />
<hr />
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
styles, `#sidebar-checkbox` for behavior. -->
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
<!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar">
<div class="sidebar-item">
{{ .Site.Params.Tagline }}
<!-- <p>A reserved <a href="http://jekyllrb.com" target="_blank">Jekyll</a> theme that places the utmost gravity on content with a hidden drawer. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.</p> -->
</div>
<nav class="sidebar-nav">
<a class="sidebar-nav-item {{ if eq .URL "/" }} active {{ end }}" href="/">Home</a>
<a class="sidebar-nav-item {{ if eq .URL "/posts/" }} active {{ end }}" href="/posts">Posts</a>
{{ $thisperma := .Permalink }}
{{ range .Site.Pages.ByWeight }}
{{ if isset .Params "sidebar" }}
<a class="sidebar-nav-item {{ if eq .Permalink $thisperma }} active {{ end }}" href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
{{ end }}
<!-- <a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}/archive/{{ .Site.Params.Github.Head }}.zip">Download</a>
<a class="sidebar-nav-item" href="{{ .Site.Params.Github.Url }}">GitHub project</a> -->
</nav>
<div class="sidebar-item">
<p>Powered by <a href="https://gohugo.io">Hugo</a>.</p>
</div>
</div>
{{ define "main" }} <!-- Page containing posts of a particular category -->
<section id="main">
<div>
<h2>Posts in &ldquo;{{ .Title }}&rdquo;</h2>
{{ range .Data.Pages }}
{{ .Render "summary"}} <!-- Use layouts/_default/summary.html -->
{{ end }}
<h5><a href="/categories">Full Category Index</a></h5>
</div>
</section>
{{ end }}
/* http://codepen.io/ArtemGordinsky/pen/GnLBq */
/* Thu Oct 13 17:20:01 EDT 2016 - kmodi
/* Currently the color of the cursor is hardcoded to that of Lanyon theme-base-08 */
/* See lanyon.css */
.blinking-cursor {
font-weight: 100;
font-size: 30px;
color: #ac4142;
-webkit-animation: 5s blink step-end infinite;
-moz-animation: 5s blink step-end infinite;
-ms-animation: 5s blink step-end infinite;
-o-animation: 5s blink step-end infinite;
animation: 5s blink step-end infinite;
}
/* 80% duty cycle blink, where the text will stay transparent only for 1/5th of the time */
@keyframes blink {from, to {color: transparent;} 20% {color: #ac4142;}}
@-moz-keyframes blink {from, to {color: transparent;} 20% {color: #ac4142;}}
@-webkit-keyframes blink {from, to {color: transparent;} 20% {color: #ac4142;}}
@-ms-keyframes blink {from, to {color: transparent;} 20% {color: #ac4142;}}
@-o-keyframes blink {from, to {color: transparent;} 20% {color: #ac4142;}}
This diff is collapsed.
/*
* ___
* /\_ \
* _____ ___ ___\//\ \ __
* /\ '__`\ / __`\ / __`\\ \ \ /'__`\
* \ \ \_\ \/\ \_\ \/\ \_\ \\_\ \_/\ __/
* \ \ ,__/\ \____/\ \____//\____\ \____\
* \ \ \/ \/___/ \/___/ \/____/\/____/
* \ \_\
* \/_/
*
* Designed, built, and released under MIT license by @mdo. Learn more at
* https://github.com/poole/poole.
*/
/*
* Contents
*
* Body resets
* Custom type
* Messages
* Container
* Masthead
* Posts and pages
* Pagination
* Reverse layout
* Themes
*/
/*
* Body resets
*
* Update the foundational and global aspects of the page.
*/
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
html {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
}
@media (min-width: 38em) {
html {
font-size: 20px;
}
}
body {
color: #515151;
background-color: #fff;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
/* No `:visited` state is required by default (browsers will use `a`) */
a {
color: #268bd2;
text-decoration: none;
}
a strong {
color: inherit;
}
/* `:focus` is linked to `:hover` for basic accessibility */
a:hover,
a:focus {
text-decoration: underline;
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
margin-bottom: .5rem;
font-weight: bold;
line-height: 1.25;
color: #313131;
text-rendering: optimizeLegibility;
}
h1 {
font-size: 2rem;
}
h2 {
margin-top: 1rem;
font-size: 1.5rem;
}
h3 {
margin-top: 1.5rem;
font-size: 1.25rem;
}
h4, h5, h6 {
font-family: "ff-meta-web-pro", "Helvetica Neue", "Helvetica", Arial, sans-serif;
margin-top: 1rem;
font-size: 1rem;
}
/* Body text */
p {
margin-top: 0;
margin-bottom: 1rem;
}
strong {
color: #303030;
}
/* Lists */
ul, ol, dl {
margin-top: 0;
margin-bottom: 1rem;
}
/* Wed Oct 12 12:22:53 EDT 2016 - kmodi
/* Hide bullets and remove left margin padding in the list of blog posts */
#post-list {
padding-left: 0;
list-style-type: none;
}
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
}
/* Misc */
hr {
position: relative;
margin: 0.75rem 0;
border: 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #fff;
}
abbr {
font-size: 85%;
font-weight: bold;
color: #555;
text-transform: uppercase;
}
abbr[title] {
cursor: help;
border-bottom: 1px dotted #e5e5e5;
}
/* Code */
mono, tt, code, pre {
font-family: PragmataPro, Menlo, Monaco, "Andale Mono", "Lucida Console", "Courier New", monospace }
code {
padding: .25em .5em;
font-size: 85%;
color: #bf616a;
background-color: #f9f9f9;
border-radius: 3px;
}
pre {
display: block;
margin-top: 0;
margin-bottom: 1rem;
padding: 1rem;
font-size: .8rem;
line-height: 1.4;
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
background-color: #f9f9f9;
}
pre code {
padding: 0;
font-size: 100%;
color: inherit;
background-color: transparent;
}
/* Pygments via Jekyll */
.highlight {
margin-bottom: 1rem;
border-radius: 4px;
}
.highlight pre {
margin-bottom: 0;
}
/* Gist via GitHub Pages */
.gist .gist-file {
font-family: Menlo, Monaco, "Courier New", monospace !important;
}
.gist .markdown-body {
padding: 15px;
}
.gist pre {
padding: 0;
background-color: transparent;
}
.gist .gist-file .gist-data {
font-size: .8rem !important;
line-height: 1.4;
}
.gist code {
padding: 0;
color: inherit;
background-color: transparent;
border-radius: 0;
}
/* Quotes */
blockquote {
padding: .5rem 1rem;
margin: .8rem 0;
color: #7a7a7a;
border-left: .25rem solid #e5e5e5;
}
blockquote p:last-child {
margin-bottom: 0;
}
@media (min-width: 30em) {
blockquote {
padding-right: 5rem;
padding-left: 1.25rem;
}
}
img {
display: block;
max-width: 100%;
margin: 0 0 1rem;
border-radius: 5px;
}
.fpimg {
padding-bottom: 2rem;
}
.lbg {
display: inline;
width: auto;
padding-left: 1rem;
}
/* Applies to the date stamp in the list of all posts */
.left {
float: left;
margin-right: 1rem;
}
/* Applies to the categories listed in the list of all posts */
.right {
float: right;
margin-left: 1rem;
}
/* Applies to the 'Prev' link in post singles */
.prev_post {
float: left;
margin-right: 1rem;
font-style: italic;
font-size: 0.9rem;
}
/* Applies to the 'Next' link in post singles */
.next_post {
float: right;
margin-left: 1rem;
font-style: italic;
font-size: 0.9rem;
}
.center {
float: center;
}
/* Tables */
table {
margin-bottom: 1rem;
width: 100%;
border: 1px solid #e5e5e5;
border-collapse: collapse;
}
td,
th {
padding: .25rem .5rem;
/* border: 1px solid #e5e5e5; */
}
tbody tr:nth-child(odd) td,