mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
Update example site
This commit is contained in:
31
exampleSite/config.toml
Executable file → Normal file
31
exampleSite/config.toml
Executable file → Normal file
@@ -1,11 +1,12 @@
|
|||||||
baseurl = "http://hugo.spf13.com/"
|
baseurl = "https://nishanths.github.io/"
|
||||||
title = "Hugo Themes"
|
builddrafts = false
|
||||||
author = "Steve Francia"
|
|
||||||
canonifyurls = true
|
canonifyurls = true
|
||||||
contentdir = "content"
|
contentdir = "content"
|
||||||
languageCode = "en-US"
|
languageCode = "en-US"
|
||||||
layoutdir = "layouts"
|
layoutdir = "layouts"
|
||||||
publishdir = "public"
|
publishdir = "public"
|
||||||
|
author = "Nishanth Shanmugham"
|
||||||
|
title = "Nishanth Shanmugham"
|
||||||
pygmentsuseclasses = true
|
pygmentsuseclasses = true
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
@@ -13,13 +14,17 @@ fixed = ":title/"
|
|||||||
posts = "posts/:slug/"
|
posts = "posts/:slug/"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
Author = "Steve Francia"
|
Author = "Nishanth Shanmugham"
|
||||||
DateForm = "Jan 2, 2006" # required
|
CacheBuster = true
|
||||||
Email = "username@hogwarts.edu"
|
DateForm = "Jan 2, 2006"
|
||||||
Facebook = "//facebook.com/username"
|
DateFormFull = "Mon Jan 2 2006 15:04:05 MST"
|
||||||
GATracker = "<Google-Analytics-ID>"
|
Description = "The website description"
|
||||||
GitHub = "//github.com/username"
|
Email = "nishanths@utexas.edu"
|
||||||
Lang = "en" # <body lang="en">
|
FaviconFile = "img/leaf.ico"
|
||||||
LinkedIn = "//linkedin.com/in/username"
|
GATracker = "<Google-Analyics-ID>"
|
||||||
Twitter = "//twitter.com/username"
|
GitHub = "//github.com/nishanths"
|
||||||
# WebfontsFile = "css/mywebfontsfile.css" # relative to static/ directory, defaults to empty string
|
Initials = "ns" # displayed on single post page
|
||||||
|
Lang = "en"
|
||||||
|
LinkedIn = "//linkedin.com/in/nshanmugham"
|
||||||
|
Twitter = "//twitter.com/nshanmugham"
|
||||||
|
# WebfontsFile = "css/proximanova.css"
|
||||||
|
8
exampleSite/content/about-this-site.html
Normal file
8
exampleSite/content/about-this-site.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="/colophon"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/colophon"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
8
exampleSite/content/blog.html
Normal file
8
exampleSite/content/blog.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="/posts"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/posts"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
@@ -5,13 +5,14 @@ title = "About"
|
|||||||
|
|
||||||
+++
|
+++
|
||||||
|
|
||||||
TODO: Page not complete yet.
|
I'm a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of <a href="//cs.utexas.edu/users/mad">MAD</a>, a computer science campus organization.
|
||||||
|
|
||||||
Information about you.
|
I love soccer and mediterranean food. You can find recent open source work on <a target="_blank" href="//github.com/nishanths">GitHub</a>.
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.
|
||||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
|
||||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
<img src="//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&default=retro" class="profile">
|
||||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
|
||||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
<br />
|
||||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
||||||
|
<a href="colophon/">About this site</a>
|
||||||
|
@@ -5,11 +5,16 @@ title = "Code"
|
|||||||
|
|
||||||
+++
|
+++
|
||||||
|
|
||||||
TODO: Page not complete yet.
|
* [iterators.js](https://github.com/nishanths/iterators.js): Useful functional iterators for node and the browser
|
||||||
|
* [Spitfire](https://github.com/nishanths/spitfire-live): HackTX 2015, Winner – a real-time rhyming assistant
|
||||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
* [markdown-viewer-component](https://github.com/nishanths/markdown-viewer-component): Web Component that renders Markdown placed inside an element as HTML
|
||||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
* [cocoa-hugo-theme](https://github.com/nishanths/cocoa-hugo-theme): Distraction-free reading theme for Hugo, the static site generator
|
||||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
* [slack-texts](https://github.com/nishanths/slack-texts): Important channel messages also sent to your phone via SMS
|
||||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
* [YWeatherAPI](https://github.com/nishanths/YWeatherAPI): Powerful Yahoo! Weather API wrapper for Mac and iOS
|
||||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
* [uMAD 2015](https://github.com/utcsmad/umad-website-2015): Website for the student developer conference built with Middleman
|
||||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
* [What's Playing](https://github.com/nishanths/what-s-playing): Desktop notifications for online music playback changes
|
||||||
|
* [QuickCal](https://github.com/nishanths/QuickCal): Highlight and add dates from any website to Google Calendar
|
||||||
|
* [YouTube Pause](https://github.com/nishanths/youtube-pause-chrome): Spacebar pauses the video instead of scrolling down the page. [CNET](http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/)
|
||||||
|
* [ISBN Search](https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&ia=books): DuckDuckGo module to lookup book information by ISBN
|
||||||
|
* [HTML Entities Encoder &](https://duckduckgo.com/?q=html+encode+the+paragraph+sign&ia=answer) [Decoder](https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&ia=answer): Encode and decode HTML entities on DuckDuckGo using natural queries
|
||||||
|
* [Auto-Browser](https://github.com/nishanths/auto-browser): HackTX 2014, Top 10
|
||||||
|
15
exampleSite/content/fixed/colophon.md
Normal file
15
exampleSite/content/fixed/colophon.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
+++
|
||||||
|
date = "2015-08-22T06:28:26-07:00"
|
||||||
|
draft = false
|
||||||
|
title = "colophon"
|
||||||
|
heading = "About This Site"
|
||||||
|
|
||||||
|
+++
|
||||||
|
|
||||||
|
This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.
|
||||||
|
|
||||||
|
The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.
|
||||||
|
|
||||||
|
The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.
|
||||||
|
|
||||||
|
If you find errors, [please let me know](https://github.com/nishanths/nishanths.me/issues/new).
|
29
exampleSite/content/posts/use-at-instead-of-head.md
Normal file
29
exampleSite/content/posts/use-at-instead-of-head.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
+++
|
||||||
|
date = "2015-08-25T17:09:14-05:00"
|
||||||
|
draft = false
|
||||||
|
title = "Use @ instead of HEAD"
|
||||||
|
slug = 'use-at-instead-of-head'
|
||||||
|
|
||||||
|
+++
|
||||||
|
|
||||||
|
I recently discovered that from git version [1.8.5](https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100) onwards, `@` can replace `HEAD`:
|
||||||
|
|
||||||
|
{{< highlight bash >}}
|
||||||
|
$ git reset --hard @~2
|
||||||
|
$ git rebase -i @~10
|
||||||
|
$ git diff @~2..@~3
|
||||||
|
{{</highlight>}}
|
||||||
|
|
||||||
|
And also in most scenarios `HEAD` can be left out completely, so you can say:
|
||||||
|
|
||||||
|
{{< highlight bash >}}
|
||||||
|
$ git reset -- @{2}
|
||||||
|
{{</highlight>}}
|
||||||
|
|
||||||
|
instead of:
|
||||||
|
|
||||||
|
{{< highlight bash >}}
|
||||||
|
$ git reset -- HEAD@{2}
|
||||||
|
{{</highlight>}}
|
||||||
|
|
||||||
|
It takes some getting used to, but it's definitely faster than typing `HEAD`.
|
8
exampleSite/content/projects.html
Normal file
8
exampleSite/content/projects.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="/code"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/code"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
7
exampleSite/content/resume.html
Normal file
7
exampleSite/content/resume.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=//cl.ly/0v2m3E0c0p2t/shanmugham-resume.pdf"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
8
exampleSite/content/writing.html
Normal file
8
exampleSite/content/writing.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="/posts"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/posts"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
0
exampleSite/public/.gitkeep
Normal file
0
exampleSite/public/.gitkeep
Normal file
137
exampleSite/public/404/index.html
Normal file
137
exampleSite/public/404/index.html
Normal file
@@ -0,0 +1,137 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
404 Page not found
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/404/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container f04">
|
||||||
|
<div class="content">
|
||||||
|
<div class="num">404</div>
|
||||||
|
<div class="detail">Sorry, this page does not exist.</div>
|
||||||
|
<div class="suggestion"><a href="http://localhost:1313/">Visit home page</a></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
8
exampleSite/public/about-this-site/index.html
Normal file
8
exampleSite/public/about-this-site/index.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/colophon"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/colophon"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
154
exampleSite/public/about/index.html
Normal file
154
exampleSite/public/about/index.html
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
About
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/about/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="page-heading">
|
||||||
|
|
||||||
|
About
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="markdown">
|
||||||
|
<p>I’m a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of <a href="//cs.utexas.edu/users/mad">MAD</a>, a computer science campus organization.</p>
|
||||||
|
|
||||||
|
<p>I love soccer and mediterranean food. You can find recent open source work on <a target="_blank" href="//github.com/nishanths">GitHub</a>.</p>
|
||||||
|
|
||||||
|
<p>Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.</p>
|
||||||
|
|
||||||
|
<p><img src="//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&default=retro" class="profile"></p>
|
||||||
|
|
||||||
|
<p><br /></p>
|
||||||
|
|
||||||
|
<p><a href="colophon/">About this site</a></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
8
exampleSite/public/blog/index.html
Normal file
8
exampleSite/public/blog/index.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/posts"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
158
exampleSite/public/code/index.html
Normal file
158
exampleSite/public/code/index.html
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
Code
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/code/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="page-heading">
|
||||||
|
|
||||||
|
Code
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="markdown">
|
||||||
|
<ul>
|
||||||
|
<li><a href="https://github.com/nishanths/iterators.js">iterators.js</a>: Useful functional iterators for node and the browser</li>
|
||||||
|
<li><a href="https://github.com/nishanths/spitfire-live">Spitfire</a>: HackTX 2015, Winner – a real-time rhyming assistant</li>
|
||||||
|
<li><a href="https://github.com/nishanths/markdown-viewer-component">markdown-viewer-component</a>: Web Component that renders Markdown placed inside an element as HTML</li>
|
||||||
|
<li><a href="https://github.com/nishanths/cocoa-hugo-theme">cocoa-hugo-theme</a>: Distraction-free reading theme for Hugo, the static site generator</li>
|
||||||
|
<li><a href="https://github.com/nishanths/slack-texts">slack-texts</a>: Important channel messages also sent to your phone via SMS</li>
|
||||||
|
<li><a href="https://github.com/nishanths/YWeatherAPI">YWeatherAPI</a>: Powerful Yahoo! Weather API wrapper for Mac and iOS</li>
|
||||||
|
<li><a href="https://github.com/utcsmad/umad-website-2015">uMAD 2015</a>: Website for the student developer conference built with Middleman</li>
|
||||||
|
<li><a href="https://github.com/nishanths/what-s-playing">What’s Playing</a>: Desktop notifications for online music playback changes</li>
|
||||||
|
<li><a href="https://github.com/nishanths/QuickCal">QuickCal</a>: Highlight and add dates from any website to Google Calendar</li>
|
||||||
|
<li><a href="https://github.com/nishanths/youtube-pause-chrome">YouTube Pause</a>: Spacebar pauses the video instead of scrolling down the page. <a href="http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/">CNET</a></li>
|
||||||
|
<li><a href="https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&ia=books">ISBN Search</a>: DuckDuckGo module to lookup book information by ISBN</li>
|
||||||
|
<li><a href="https://duckduckgo.com/?q=html+encode+the+paragraph+sign&ia=answer">HTML Entities Encoder &</a> <a href="https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&ia=answer">Decoder</a>: Encode and decode HTML entities on DuckDuckGo using natural queries</li>
|
||||||
|
<li><a href="https://github.com/nishanths/auto-browser">Auto-Browser</a>: HackTX 2014, Top 10</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
150
exampleSite/public/colophon/index.html
Normal file
150
exampleSite/public/colophon/index.html
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
About This Site
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/colophon/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="page-heading">
|
||||||
|
|
||||||
|
About This Site
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="markdown">
|
||||||
|
<p>This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.</p>
|
||||||
|
|
||||||
|
<p>The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.</p>
|
||||||
|
|
||||||
|
<p>The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.</p>
|
||||||
|
|
||||||
|
<p>If you find errors, <a href="https://github.com/nishanths/nishanths.me/issues/new">please let me know</a>.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
691
exampleSite/public/css/main.css
Normal file
691
exampleSite/public/css/main.css
Normal file
@@ -0,0 +1,691 @@
|
|||||||
|
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
|
||||||
|
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,400italic,700,700italic);
|
||||||
|
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
|
||||||
|
@import url(https://fonts.googleapis.com/css?family=Raleway:700);
|
||||||
|
.dark {
|
||||||
|
color: #444 !important;
|
||||||
|
}
|
||||||
|
.light {
|
||||||
|
color: #999 !important;
|
||||||
|
}
|
||||||
|
.accent {
|
||||||
|
color: #f46d2c !important;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.small-screens-only {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.large-screens-only {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.large-screens-only {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*,
|
||||||
|
*:before,
|
||||||
|
*:after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
a,
|
||||||
|
a:visited,
|
||||||
|
a:focus,
|
||||||
|
a:active {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
html {
|
||||||
|
height: 100%;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-direction: column;
|
||||||
|
-moz-flex-direction: column;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
flex-direction: column;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: flex-start;
|
||||||
|
-moz-justify-content: flex-start;
|
||||||
|
-ms-justify-content: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100%;
|
||||||
|
font-weight: 400;
|
||||||
|
font-family: 'ProximaNova', 'Open Sans', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
|
color: #444;
|
||||||
|
line-height: 1.6;
|
||||||
|
text-rendering: optimizeLegibility !important;
|
||||||
|
-webkit-font-smoothing: subpixel-antialiased;
|
||||||
|
font-smoothing: subpixel-antialiased;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
body {
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-moz-justify-content: center;
|
||||||
|
-ms-justify-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.narrow {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.icon {
|
||||||
|
text-rendering: geometricPrecision !important;
|
||||||
|
}
|
||||||
|
.section {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-moz-justify-content: center;
|
||||||
|
-ms-justify-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section {
|
||||||
|
padding: 0 16px;
|
||||||
|
margin-left: 100px;
|
||||||
|
margin-right: 100px;
|
||||||
|
max-width: 750px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.header {
|
||||||
|
-webkit-order: 0;
|
||||||
|
-moz-order: 0;
|
||||||
|
-ms-order: 0;
|
||||||
|
order: 0;
|
||||||
|
}
|
||||||
|
.section.icons {
|
||||||
|
-webkit-order: 1;
|
||||||
|
-moz-order: 1;
|
||||||
|
-ms-order: 1;
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
.section.main {
|
||||||
|
-webkit-order: 2;
|
||||||
|
-moz-order: 2;
|
||||||
|
-ms-order: 2;
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section.header {
|
||||||
|
-webkit-order: 0;
|
||||||
|
-moz-order: 0;
|
||||||
|
-ms-order: 0;
|
||||||
|
order: 0;
|
||||||
|
}
|
||||||
|
.section.icons {
|
||||||
|
-webkit-order: 2;
|
||||||
|
-moz-order: 2;
|
||||||
|
-ms-order: 2;
|
||||||
|
order: 2;
|
||||||
|
}
|
||||||
|
.section.main {
|
||||||
|
-webkit-order: 1;
|
||||||
|
-moz-order: 1;
|
||||||
|
-ms-order: 1;
|
||||||
|
order: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.header {
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
}
|
||||||
|
.section.header .container {
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-moz-justify-content: center;
|
||||||
|
-ms-justify-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.section.header .content {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-direction: column;
|
||||||
|
-moz-flex-direction: column;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
flex-direction: column;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.section.header .name {
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
|
letter-spacing: -0.005rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
color: #444;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
|
.section.header nav {
|
||||||
|
font-size: 14px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.section.header nav ul {
|
||||||
|
list-style: none;
|
||||||
|
text-align: center;
|
||||||
|
display: -webkit-inline-flex;
|
||||||
|
display: -moz-inline-flex;
|
||||||
|
display: -ms-inline-flexbox;
|
||||||
|
display: -ms-inline-flex;
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
.section.header nav ul a {
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
.section.header nav ul a:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.section.header nav ul a:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.section.header nav ul li {
|
||||||
|
color: #999;
|
||||||
|
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
}
|
||||||
|
.section.header nav ul li:hover {
|
||||||
|
color: #b7b7b7;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section.header {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.section.header .container {
|
||||||
|
-webkit-justify-content: flex-start;
|
||||||
|
-moz-justify-content: flex-start;
|
||||||
|
-ms-justify-content: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.section.header .content {
|
||||||
|
-webkit-align-items: flex-start;
|
||||||
|
-moz-align-items: flex-start;
|
||||||
|
-ms-align-items: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
.section.header .name {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
.section.header nav {
|
||||||
|
font-size: 13px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.section.header nav ul {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.section.header nav ul li {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.section.header nav ul li:hover {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.icons {
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
}
|
||||||
|
.section.icons .container {
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-moz-justify-content: center;
|
||||||
|
-ms-justify-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.section.icons .content a {
|
||||||
|
margin-left: 6px;
|
||||||
|
margin-right: 6px;
|
||||||
|
color: #999;
|
||||||
|
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
}
|
||||||
|
.section.icons .content a:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.section.icons .content a:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.section.icons .content a:hover {
|
||||||
|
color: #b7b7b7;
|
||||||
|
}
|
||||||
|
.section.icons .content a .icon {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.section.icons .content a .icon.larger {
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section.icons {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.section.icons .container {
|
||||||
|
-webkit-justify-content: flex-start;
|
||||||
|
-moz-justify-content: flex-start;
|
||||||
|
-ms-justify-content: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.section.icons .content a {
|
||||||
|
margin-left: 3px;
|
||||||
|
margin-right: 3px;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.section.icons .content a:hover {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
.section.icons .content a .icon {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
.section.icons .content a .icon.larger {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.main .container {
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
-webkit-justify-content: flex-start;
|
||||||
|
-moz-justify-content: flex-start;
|
||||||
|
-ms-justify-content: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.section.main .content {
|
||||||
|
color: #444;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.section.main .content .title-container {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-justify-content: space-between;
|
||||||
|
-moz-justify-content: space-between;
|
||||||
|
-ms-justify-content: space-between;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.section.main .content .title-container .initials {
|
||||||
|
display: none;
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
|
letter-spacing: -0.005rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
color: #444;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.section.main .content .title-container .initials a {
|
||||||
|
color: #999;
|
||||||
|
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
}
|
||||||
|
.section.main .content .title-container .initials a:hover {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
.section.main .content .page-heading {
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
|
letter-spacing: -0.005rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
color: #444;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.section.main .content .front-matter .page-heading {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.section.main .content .front-matter .meta {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #999;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
.section.main .content .front-matter .date,
|
||||||
|
.section.main .content .front-matter .word-count,
|
||||||
|
.section.main .content .front-matter .reading-time .middot {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.section.main .content .front-matter .middot {
|
||||||
|
font-size: 6px;
|
||||||
|
margin: 0 6px;
|
||||||
|
display: inline;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.section.main .content .front-matter .middot:before {
|
||||||
|
content: "•";
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section.main .content .front-matter .date,
|
||||||
|
.section.main .content .front-matter .word-count,
|
||||||
|
.section.main .content .front-matter .reading-time .middot {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
.section.main .content .title-container .initials {
|
||||||
|
display: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.main .container.f04 {
|
||||||
|
-webkit-justify-content: center;
|
||||||
|
-moz-justify-content: center;
|
||||||
|
-ms-justify-content: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.section.main .container.f04 .content {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-flex-direction: column;
|
||||||
|
-moz-flex-direction: column;
|
||||||
|
-ms-flex-direction: column;
|
||||||
|
flex-direction: column;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.section.main .container.f04 .content .num {
|
||||||
|
margin: 30px 0px 30px 0;
|
||||||
|
font-weight: 200;
|
||||||
|
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
|
font-size: 50px;
|
||||||
|
}
|
||||||
|
.section.main .container.f04 .content .detail {
|
||||||
|
margin-bottom: 40px;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section.main .container.f04 {
|
||||||
|
-webkit-justify-content: flex-start;
|
||||||
|
-moz-justify-content: flex-start;
|
||||||
|
-ms-justify-content: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
.section.main .container.f04 .content {
|
||||||
|
-webkit-align-items: flex-start;
|
||||||
|
-moz-align-items: flex-start;
|
||||||
|
-ms-align-items: flex-start;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
.section.main .container.f04 .content .num {
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
font-size: 32px;
|
||||||
|
}
|
||||||
|
.section.main .container.f04 .content .detail {
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.main .container .content .post-item {
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: -moz-flex;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: -ms-flex;
|
||||||
|
display: flex;
|
||||||
|
-webkit-align-items: center;
|
||||||
|
-moz-align-items: center;
|
||||||
|
-ms-align-items: center;
|
||||||
|
align-items: center;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.section.main .container .content .post-item .meta {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #999;
|
||||||
|
min-width: 100px;
|
||||||
|
text-align: right;
|
||||||
|
margin-right: 16px;
|
||||||
|
}
|
||||||
|
.section {
|
||||||
|
padding: 0 16px;
|
||||||
|
}
|
||||||
|
.section.header {
|
||||||
|
padding-top: 32px;
|
||||||
|
padding-bottom: 16px;
|
||||||
|
}
|
||||||
|
.section.icons {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 32px;
|
||||||
|
}
|
||||||
|
.section.main {
|
||||||
|
padding-top: 32px;
|
||||||
|
padding-bottom: 32px;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.container {
|
||||||
|
margin: 0 30px;
|
||||||
|
}
|
||||||
|
.section.header {
|
||||||
|
padding-top: 60px;
|
||||||
|
padding-bottom: 60px;
|
||||||
|
}
|
||||||
|
.section.icons {
|
||||||
|
padding-top: 60px;
|
||||||
|
padding-bottom: 60px;
|
||||||
|
}
|
||||||
|
.section.main {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
.section.main.post {
|
||||||
|
padding-top: 60px;
|
||||||
|
padding-bottom: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #f46d2c;
|
||||||
|
-webkit-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-moz-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-ms-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
-o-transition: color 0.1s cubic-bezier(0.47, 0, 0.75, 0.72);
|
||||||
|
}
|
||||||
|
a:hover {
|
||||||
|
color: #de5a1d;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
img.profile {
|
||||||
|
min-width: 100%;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
img.profile {
|
||||||
|
min-width: 400px;
|
||||||
|
max-width: 400px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.page-heading a {
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown h1,
|
||||||
|
.section.main .content .markdown h2,
|
||||||
|
.section.main .content .markdown h3,
|
||||||
|
.section.main .content .markdown h4,
|
||||||
|
.section.main .content .markdown h5,
|
||||||
|
.section.main .content .markdown h6 {
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: 'Raleway', 'Helvetica Neue', 'Arial', sans-serif;
|
||||||
|
letter-spacing: -0.005rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 700;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-smoothing: antialiased;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown h1 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown h2 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown h3 {
|
||||||
|
font-size: 1em;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown h4,
|
||||||
|
.section.main .content .markdown h5,
|
||||||
|
.section.main .content .markdown h6 {
|
||||||
|
font-size: 1rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
letter-spacing: none;
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown code,
|
||||||
|
.section.main .content .markdown pre {
|
||||||
|
font-family: 'Ubuntu Mono', 'Menlo', monospace;
|
||||||
|
font-size: 0.98rem;
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown code {
|
||||||
|
/* enclosed by single backtick (`) */
|
||||||
|
padding: .15em .5em;
|
||||||
|
color: #a10c31;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown pre {
|
||||||
|
/* Hugo specific: consider using the 'highlight' shortcode */
|
||||||
|
display: block;
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
padding: 1rem;
|
||||||
|
line-height: 1.5em;
|
||||||
|
white-space: pre;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown pre code {
|
||||||
|
/* enclosed by 4 backticks (````) */
|
||||||
|
padding: 0;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown p {
|
||||||
|
/* Invoked by line break */
|
||||||
|
font-size: 1rem;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown ul,
|
||||||
|
.section.main .content .markdown ol,
|
||||||
|
.section.main .content .markdown dl {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown dt {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown dd {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown ul {
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown li {
|
||||||
|
list-style-type: disc;
|
||||||
|
list-style-position: inside;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown hr {
|
||||||
|
position: relative;
|
||||||
|
margin: 1.75rem 0;
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid #b3b3b3;
|
||||||
|
border-top: 1px solid #cccccc;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown abbr {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #777777;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown abbr[title] {
|
||||||
|
cursor: help;
|
||||||
|
border-bottom: 1px dotted #b3b3b3;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown blockquote {
|
||||||
|
padding: .5rem 1rem;
|
||||||
|
margin: .8rem 0;
|
||||||
|
color: #7a7a7a;
|
||||||
|
border-left: .25rem solid #e5e5e5;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown blockquote p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
@media (min-width: 550px) {
|
||||||
|
.section.main .content .markdown blockquote {
|
||||||
|
padding-right: 5rem;
|
||||||
|
padding-left: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.section.main .content .markdown img {
|
||||||
|
margin: 1rem 0;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown table {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown td,
|
||||||
|
.section.main .content .markdown th {
|
||||||
|
padding: .25rem .5rem;
|
||||||
|
border: 1px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
.section.main .content .markdown tbody tr:nth-child(odd) td,
|
||||||
|
.section.main .content .markdown tbody tr:nth-child(odd) th {
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
}
|
61
exampleSite/public/css/pygments.css
Normal file
61
exampleSite/public/css/pygments.css
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
.hll { background-color: #ffffcc }
|
||||||
|
.c { color: #999988; font-style: italic } /* Comment */
|
||||||
|
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
||||||
|
.k { color: #000000; font-weight: bold } /* Keyword */
|
||||||
|
.o { color: #000000; font-weight: bold } /* Operator */
|
||||||
|
.cm { color: #999988; font-style: italic } /* Comment.Multiline */
|
||||||
|
.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
|
||||||
|
.c1 { color: #999988; font-style: italic } /* Comment.Single */
|
||||||
|
.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
|
||||||
|
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
||||||
|
.ge { color: #000000; font-style: italic } /* Generic.Emph */
|
||||||
|
.gr { color: #aa0000 } /* Generic.Error */
|
||||||
|
.gh { color: #999999 } /* Generic.Heading */
|
||||||
|
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
||||||
|
.go { color: #888888 } /* Generic.Output */
|
||||||
|
.gp { color: #555555 } /* Generic.Prompt */
|
||||||
|
.gs { font-weight: bold } /* Generic.Strong */
|
||||||
|
.gu { color: #aaaaaa } /* Generic.Subheading */
|
||||||
|
.gt { color: #aa0000 } /* Generic.Traceback */
|
||||||
|
.kc { color: #000000; font-weight: bold } /* Keyword.Constant */
|
||||||
|
.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
|
||||||
|
.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
|
||||||
|
.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
|
||||||
|
.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
|
||||||
|
.kt { color: #445588; font-weight: bold } /* Keyword.Type */
|
||||||
|
.m { color: #009999 } /* Literal.Number */
|
||||||
|
.s { color: #d01040 } /* Literal.String */
|
||||||
|
.na { color: #008080 } /* Name.Attribute */
|
||||||
|
.nb { color: #0086B3 } /* Name.Builtin */
|
||||||
|
.nc { color: #445588; font-weight: bold } /* Name.Class */
|
||||||
|
.no { color: #008080 } /* Name.Constant */
|
||||||
|
.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
|
||||||
|
.ni { color: #800080 } /* Name.Entity */
|
||||||
|
.ne { color: #990000; font-weight: bold } /* Name.Exception */
|
||||||
|
.nf { color: #990000; font-weight: bold } /* Name.Function */
|
||||||
|
.nl { color: #990000; font-weight: bold } /* Name.Label */
|
||||||
|
.nn { color: #555555 } /* Name.Namespace */
|
||||||
|
.nt { color: #000080 } /* Name.Tag */
|
||||||
|
.nv { color: #008080 } /* Name.Variable */
|
||||||
|
.ow { color: #000000; font-weight: bold } /* Operator.Word */
|
||||||
|
.w { color: #bbbbbb } /* Text.Whitespace */
|
||||||
|
.mf { color: #009999 } /* Literal.Number.Float */
|
||||||
|
.mh { color: #009999 } /* Literal.Number.Hex */
|
||||||
|
.mi { color: #009999 } /* Literal.Number.Integer */
|
||||||
|
.mo { color: #009999 } /* Literal.Number.Oct */
|
||||||
|
.sb { color: #d01040 } /* Literal.String.Backtick */
|
||||||
|
.sc { color: #d01040 } /* Literal.String.Char */
|
||||||
|
.sd { color: #d01040 } /* Literal.String.Doc */
|
||||||
|
.s2 { color: #d01040 } /* Literal.String.Double */
|
||||||
|
.se { color: #d01040 } /* Literal.String.Escape */
|
||||||
|
.sh { color: #d01040 } /* Literal.String.Heredoc */
|
||||||
|
.si { color: #d01040 } /* Literal.String.Interpol */
|
||||||
|
.sx { color: #d01040 } /* Literal.String.Other */
|
||||||
|
.sr { color: #009926 } /* Literal.String.Regex */
|
||||||
|
.s1 { color: #d01040 } /* Literal.String.Single */
|
||||||
|
.ss { color: #990073 } /* Literal.String.Symbol */
|
||||||
|
.bp { color: #999999 } /* Name.Builtin.Pseudo */
|
||||||
|
.vc { color: #008080 } /* Name.Variable.Class */
|
||||||
|
.vg { color: #008080 } /* Name.Variable.Global */
|
||||||
|
.vi { color: #008080 } /* Name.Variable.Instance */
|
||||||
|
.il { color: #009999 } /* Literal.Number.Integer.Long */
|
48
exampleSite/public/css/reset.css
Normal file
48
exampleSite/public/css/reset.css
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/* http://meyerweb.com/eric/tools/css/reset/
|
||||||
|
v2.0 | 20110126
|
||||||
|
License: none (public domain)
|
||||||
|
*/
|
||||||
|
|
||||||
|
html, body, div, span, applet, object, iframe,
|
||||||
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
|
a, abbr, acronym, address, big, cite, code,
|
||||||
|
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var,
|
||||||
|
b, u, i, center,
|
||||||
|
dl, dt, dd, ol, ul, li,
|
||||||
|
fieldset, form, label, legend,
|
||||||
|
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||||
|
article, aside, canvas, details, embed,
|
||||||
|
figure, figcaption, footer, header, hgroup,
|
||||||
|
menu, nav, output, ruby, section, summary,
|
||||||
|
time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
/* HTML5 display-role reset for older browsers */
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
ol, ul {
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
}
|
||||||
|
blockquote:before, blockquote:after,
|
||||||
|
q:before, q:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
162
exampleSite/public/fixed/index.html
Normal file
162
exampleSite/public/fixed/index.html
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
Fixeds
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/fixed/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="page-heading">
|
||||||
|
|
||||||
|
Fixeds
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 22, 2015</div>
|
||||||
|
<a href="http://localhost:1313/about/"><div>About</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 22, 2015</div>
|
||||||
|
<a href="http://localhost:1313/colophon/"><div>colophon</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 19, 2015</div>
|
||||||
|
<a href="http://localhost:1313/code/"><div>Code</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
73
exampleSite/public/fixed/index.xml
Normal file
73
exampleSite/public/fixed/index.xml
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Fixeds on Nishanth Shanmugham</title>
|
||||||
|
<link>http://localhost:1313/fixed/</link>
|
||||||
|
<description>Recent content in Fixeds on Nishanth Shanmugham</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-US</language>
|
||||||
|
<lastBuildDate>Sat, 22 Aug 2015 06:42:21 -0700</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/fixed/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>About</title>
|
||||||
|
<link>http://localhost:1313/about/</link>
|
||||||
|
<pubDate>Sat, 22 Aug 2015 06:42:21 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/about/</guid>
|
||||||
|
<description><p>I&rsquo;m a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of <a href="//cs.utexas.edu/users/mad">MAD</a>, a computer science campus organization.</p>
|
||||||
|
|
||||||
|
<p>I love soccer and mediterranean food. You can find recent open source work on <a target="_blank" href="//github.com/nishanths">GitHub</a>.</p>
|
||||||
|
|
||||||
|
<p>Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.</p>
|
||||||
|
|
||||||
|
<p><img src="//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&default=retro" class="profile"></p>
|
||||||
|
|
||||||
|
<p><br /></p>
|
||||||
|
|
||||||
|
<p><a href="colophon/">About this site</a></p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>colophon</title>
|
||||||
|
<link>http://localhost:1313/colophon/</link>
|
||||||
|
<pubDate>Sat, 22 Aug 2015 06:28:26 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/colophon/</guid>
|
||||||
|
<description><p>This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.</p>
|
||||||
|
|
||||||
|
<p>The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.</p>
|
||||||
|
|
||||||
|
<p>The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.</p>
|
||||||
|
|
||||||
|
<p>If you find errors, <a href="https://github.com/nishanths/nishanths.me/issues/new">please let me know</a>.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Code</title>
|
||||||
|
<link>http://localhost:1313/code/</link>
|
||||||
|
<pubDate>Wed, 19 Aug 2015 20:29:37 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/code/</guid>
|
||||||
|
<description><ul>
|
||||||
|
<li><a href="https://github.com/nishanths/iterators.js">iterators.js</a>: Useful functional iterators for node and the browser</li>
|
||||||
|
<li><a href="https://github.com/nishanths/spitfire-live">Spitfire</a>: HackTX 2015, Winner – a real-time rhyming assistant</li>
|
||||||
|
<li><a href="https://github.com/nishanths/markdown-viewer-component">markdown-viewer-component</a>: Web Component that renders Markdown placed inside an element as HTML</li>
|
||||||
|
<li><a href="https://github.com/nishanths/cocoa-hugo-theme">cocoa-hugo-theme</a>: Distraction-free reading theme for Hugo, the static site generator</li>
|
||||||
|
<li><a href="https://github.com/nishanths/slack-texts">slack-texts</a>: Important channel messages also sent to your phone via SMS</li>
|
||||||
|
<li><a href="https://github.com/nishanths/YWeatherAPI">YWeatherAPI</a>: Powerful Yahoo! Weather API wrapper for Mac and iOS</li>
|
||||||
|
<li><a href="https://github.com/utcsmad/umad-website-2015">uMAD 2015</a>: Website for the student developer conference built with Middleman</li>
|
||||||
|
<li><a href="https://github.com/nishanths/what-s-playing">What&rsquo;s Playing</a>: Desktop notifications for online music playback changes</li>
|
||||||
|
<li><a href="https://github.com/nishanths/QuickCal">QuickCal</a>: Highlight and add dates from any website to Google Calendar</li>
|
||||||
|
<li><a href="https://github.com/nishanths/youtube-pause-chrome">YouTube Pause</a>: Spacebar pauses the video instead of scrolling down the page. <a href="http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/">CNET</a></li>
|
||||||
|
<li><a href="https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&amp;ia=books">ISBN Search</a>: DuckDuckGo module to lookup book information by ISBN</li>
|
||||||
|
<li><a href="https://duckduckgo.com/?q=html+encode+the+paragraph+sign&amp;ia=answer">HTML Entities Encoder &amp;</a> <a href="https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&amp;ia=answer">Decoder</a>: Encode and decode HTML entities on DuckDuckGo using natural queries</li>
|
||||||
|
<li><a href="https://github.com/nishanths/auto-browser">Auto-Browser</a>: HackTX 2014, Top 10</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
BIN
exampleSite/public/img/favicon.ico
Normal file
BIN
exampleSite/public/img/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
BIN
exampleSite/public/img/leaf.ico
Normal file
BIN
exampleSite/public/img/leaf.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
171
exampleSite/public/index.html
Normal file
171
exampleSite/public/index.html
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
Nishanth Shanmugham
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="page-heading">Posts</div>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 25, 2015</div>
|
||||||
|
<a href="http://localhost:1313/posts/use-at-instead-of-head/"><div>Use @ instead of HEAD</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 22, 2015</div>
|
||||||
|
<a href="http://localhost:1313/posts/redirect-webpages-html/"><div>Redirect webpages using HTML</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
212
exampleSite/public/index.xml
Normal file
212
exampleSite/public/index.xml
Normal file
@@ -0,0 +1,212 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Nishanth Shanmugham</title>
|
||||||
|
<link>http://localhost:1313/</link>
|
||||||
|
<description>Recent content on Nishanth Shanmugham</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-US</language>
|
||||||
|
<lastBuildDate>Tue, 25 Aug 2015 17:09:14 -0500</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Use @ instead of HEAD</title>
|
||||||
|
<link>http://localhost:1313/posts/use-at-instead-of-head/</link>
|
||||||
|
<pubDate>Tue, 25 Aug 2015 17:09:14 -0500</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/posts/use-at-instead-of-head/</guid>
|
||||||
|
<description><p>I recently discovered that from git version <a href="https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100">1.8.5</a> onwards, <code>@</code> can replace <code>HEAD</code>:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset --hard @~2
|
||||||
|
<span class="nv">$ </span>git rebase -i @~10
|
||||||
|
<span class="nv">$ </span>git diff @~2..@~3
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>And also in most scenarios <code>HEAD</code> can be left out completely, so you can say:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- @<span class="o">{</span>2<span class="o">}</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>instead of:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- HEAD@<span class="o">{</span>2<span class="o">}</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>It takes some getting used to, but it&rsquo;s definitely faster than typing <code>HEAD</code>.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Redirect webpages using HTML</title>
|
||||||
|
<link>http://localhost:1313/posts/redirect-webpages-html/</link>
|
||||||
|
<pubDate>Sat, 22 Aug 2015 15:45:30 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/posts/redirect-webpages-html/</guid>
|
||||||
|
<description>
|
||||||
|
|
||||||
|
<p>Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.</p>
|
||||||
|
|
||||||
|
<p>To redirect visitors reaching <code>yourwebsite.com/blog</code> to <code>yourwebsite.com/posts</code>, add this to the <code>&lt;head&gt;</code> section of the HTML at <code>yourwebsite.com/blog</code>:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nt">&lt;meta</span> <span class="na">http-equiv=</span><span class="s">&quot;refresh&quot;</span> <span class="na">content=</span><span class="s">&quot;0;url=&#39;/posts&#39;&quot;</span> <span class="nt">/&gt;</span>
|
||||||
|
<span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;canonical&quot;</span> <span class="na">href=</span><span class="s">&quot;/posts&quot;</span> <span class="nt">/&gt;</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 id="walkthrough:afdc852818bb97af4efb4d34b2fcce3b">walkthrough</h3>
|
||||||
|
|
||||||
|
<p>Setting <code>http-equiv=&quot;refresh&quot;</code> in the first line performs the actual redirect. The number in the <code>content</code> attribute specified in seconds tells the browser how long to wait before redirecting. In this example, <code>0</code> redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The <code>url</code> specfies the destination for the redirect. In this example, we wanted to switch to <code>/posts</code>.</p>
|
||||||
|
|
||||||
|
<p>The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>About</title>
|
||||||
|
<link>http://localhost:1313/about/</link>
|
||||||
|
<pubDate>Sat, 22 Aug 2015 06:42:21 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/about/</guid>
|
||||||
|
<description><p>I&rsquo;m a software engineer and student at UT Austin. I primarily program in JavaScript. I currently work at Evernote. I also teach a web development class as part of <a href="//cs.utexas.edu/users/mad">MAD</a>, a computer science campus organization.</p>
|
||||||
|
|
||||||
|
<p>I love soccer and mediterranean food. You can find recent open source work on <a target="_blank" href="//github.com/nishanths">GitHub</a>.</p>
|
||||||
|
|
||||||
|
<p>Please feel free to get in touch at <a href="mailto:nishanths@utexas.edu">nishanths@utexas.edu</a>.</p>
|
||||||
|
|
||||||
|
<p><img src="//s.gravatar.com/avatar/9e766e4880d9a79fd1244c1b04dc31fe?size=4096&default=retro" class="profile"></p>
|
||||||
|
|
||||||
|
<p><br /></p>
|
||||||
|
|
||||||
|
<p><a href="colophon/">About this site</a></p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>colophon</title>
|
||||||
|
<link>http://localhost:1313/colophon/</link>
|
||||||
|
<pubDate>Sat, 22 Aug 2015 06:28:26 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/colophon/</guid>
|
||||||
|
<description><p>This website is the place where I write about JavaScript, git, and tech. It is also a personal homepage.</p>
|
||||||
|
|
||||||
|
<p>The site is built with <a target="_blank" href="//gohugo.io">Hugo</a>—a static site generator made with Go and is hosted on GitHub Pages. The website <a target="_blank" href="//github.com/nishanths/nishanths.me">source code</a> is available on GitHub. It uses the <a target="_blank" href="//github.com/nishanths/cocoa-hugo-theme">cocoa</a> theme. The posts are written in Markdown.</p>
|
||||||
|
|
||||||
|
<p>The primary font face is Proxima Nova and the monospace font face is Ubuntu Mono. The social icons are from the Ionicons font set. CSS classes for code syntax highlighting are inserted during compile-time by Hugo using Pygments.</p>
|
||||||
|
|
||||||
|
<p>If you find errors, <a href="https://github.com/nishanths/nishanths.me/issues/new">please let me know</a>.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Code</title>
|
||||||
|
<link>http://localhost:1313/code/</link>
|
||||||
|
<pubDate>Wed, 19 Aug 2015 20:29:37 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/code/</guid>
|
||||||
|
<description><ul>
|
||||||
|
<li><a href="https://github.com/nishanths/iterators.js">iterators.js</a>: Useful functional iterators for node and the browser</li>
|
||||||
|
<li><a href="https://github.com/nishanths/spitfire-live">Spitfire</a>: HackTX 2015, Winner – a real-time rhyming assistant</li>
|
||||||
|
<li><a href="https://github.com/nishanths/markdown-viewer-component">markdown-viewer-component</a>: Web Component that renders Markdown placed inside an element as HTML</li>
|
||||||
|
<li><a href="https://github.com/nishanths/cocoa-hugo-theme">cocoa-hugo-theme</a>: Distraction-free reading theme for Hugo, the static site generator</li>
|
||||||
|
<li><a href="https://github.com/nishanths/slack-texts">slack-texts</a>: Important channel messages also sent to your phone via SMS</li>
|
||||||
|
<li><a href="https://github.com/nishanths/YWeatherAPI">YWeatherAPI</a>: Powerful Yahoo! Weather API wrapper for Mac and iOS</li>
|
||||||
|
<li><a href="https://github.com/utcsmad/umad-website-2015">uMAD 2015</a>: Website for the student developer conference built with Middleman</li>
|
||||||
|
<li><a href="https://github.com/nishanths/what-s-playing">What&rsquo;s Playing</a>: Desktop notifications for online music playback changes</li>
|
||||||
|
<li><a href="https://github.com/nishanths/QuickCal">QuickCal</a>: Highlight and add dates from any website to Google Calendar</li>
|
||||||
|
<li><a href="https://github.com/nishanths/youtube-pause-chrome">YouTube Pause</a>: Spacebar pauses the video instead of scrolling down the page. <a href="http://www.cnet.com/how-to/chrome-pause-youtube-videos-with-the-spacebar/">CNET</a></li>
|
||||||
|
<li><a href="https://duckduckgo.com/?q=ISBN+number+0-06-250217-4&amp;ia=books">ISBN Search</a>: DuckDuckGo module to lookup book information by ISBN</li>
|
||||||
|
<li><a href="https://duckduckgo.com/?q=html+encode+the+paragraph+sign&amp;ia=answer">HTML Entities Encoder &amp;</a> <a href="https://duckduckgo.com/?q=decoded+html+for+%26%23x00a5%3B&amp;ia=answer">Decoder</a>: Encode and decode HTML entities on DuckDuckGo using natural queries</li>
|
||||||
|
<li><a href="https://github.com/nishanths/auto-browser">Auto-Browser</a>: HackTX 2014, Top 10</li>
|
||||||
|
</ul>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title></title>
|
||||||
|
<link>http://localhost:1313/about-this-site/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/about-this-site/</guid>
|
||||||
|
<description><!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/colophon"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/colophon"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title></title>
|
||||||
|
<link>http://localhost:1313/blog/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/blog/</guid>
|
||||||
|
<description><!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/posts"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title></title>
|
||||||
|
<link>http://localhost:1313/projects/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/projects/</guid>
|
||||||
|
<description><!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/code"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/code"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title></title>
|
||||||
|
<link>http://localhost:1313/resume/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/resume/</guid>
|
||||||
|
<description><!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=//cl.ly/0v2m3E0c0p2t/shanmugham-resume.pdf"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title></title>
|
||||||
|
<link>http://localhost:1313/writing/</link>
|
||||||
|
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/writing/</guid>
|
||||||
|
<description><!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/posts"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
156
exampleSite/public/posts/index.html
Normal file
156
exampleSite/public/posts/index.html
Normal file
@@ -0,0 +1,156 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
Posts
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section main">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="page-heading">
|
||||||
|
|
||||||
|
Posts
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 25, 2015</div>
|
||||||
|
<a href="http://localhost:1313/posts/use-at-instead-of-head/"><div>Use @ instead of HEAD</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="post-item">
|
||||||
|
<div class="meta">Aug 22, 2015</div>
|
||||||
|
<a href="http://localhost:1313/posts/redirect-webpages-html/"><div>Redirect webpages using HTML</div></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
68
exampleSite/public/posts/index.xml
Normal file
68
exampleSite/public/posts/index.xml
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Posts on Nishanth Shanmugham</title>
|
||||||
|
<link>http://localhost:1313/posts/</link>
|
||||||
|
<description>Recent content in Posts on Nishanth Shanmugham</description>
|
||||||
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
<language>en-US</language>
|
||||||
|
<lastBuildDate>Tue, 25 Aug 2015 17:09:14 -0500</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/posts/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Use @ instead of HEAD</title>
|
||||||
|
<link>http://localhost:1313/posts/use-at-instead-of-head/</link>
|
||||||
|
<pubDate>Tue, 25 Aug 2015 17:09:14 -0500</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/posts/use-at-instead-of-head/</guid>
|
||||||
|
<description><p>I recently discovered that from git version <a href="https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100">1.8.5</a> onwards, <code>@</code> can replace <code>HEAD</code>:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset --hard @~2
|
||||||
|
<span class="nv">$ </span>git rebase -i @~10
|
||||||
|
<span class="nv">$ </span>git diff @~2..@~3
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>And also in most scenarios <code>HEAD</code> can be left out completely, so you can say:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- @<span class="o">{</span>2<span class="o">}</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>instead of:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- HEAD@<span class="o">{</span>2<span class="o">}</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>It takes some getting used to, but it&rsquo;s definitely faster than typing <code>HEAD</code>.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<title>Redirect webpages using HTML</title>
|
||||||
|
<link>http://localhost:1313/posts/redirect-webpages-html/</link>
|
||||||
|
<pubDate>Sat, 22 Aug 2015 15:45:30 -0700</pubDate>
|
||||||
|
|
||||||
|
<guid>http://localhost:1313/posts/redirect-webpages-html/</guid>
|
||||||
|
<description>
|
||||||
|
|
||||||
|
<p>Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.</p>
|
||||||
|
|
||||||
|
<p>To redirect visitors reaching <code>yourwebsite.com/blog</code> to <code>yourwebsite.com/posts</code>, add this to the <code>&lt;head&gt;</code> section of the HTML at <code>yourwebsite.com/blog</code>:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nt">&lt;meta</span> <span class="na">http-equiv=</span><span class="s">&quot;refresh&quot;</span> <span class="na">content=</span><span class="s">&quot;0;url=&#39;/posts&#39;&quot;</span> <span class="nt">/&gt;</span>
|
||||||
|
<span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;canonical&quot;</span> <span class="na">href=</span><span class="s">&quot;/posts&quot;</span> <span class="nt">/&gt;</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 id="walkthrough:afdc852818bb97af4efb4d34b2fcce3b">walkthrough</h3>
|
||||||
|
|
||||||
|
<p>Setting <code>http-equiv=&quot;refresh&quot;</code> in the first line performs the actual redirect. The number in the <code>content</code> attribute specified in seconds tells the browser how long to wait before redirecting. In this example, <code>0</code> redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The <code>url</code> specfies the destination for the redirect. In this example, we wanted to switch to <code>/posts</code>.</p>
|
||||||
|
|
||||||
|
<p>The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</channel>
|
||||||
|
</rss>
|
169
exampleSite/public/posts/redirect-webpages-html/index.html
Normal file
169
exampleSite/public/posts/redirect-webpages-html/index.html
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
Redirect webpages using HTML
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts/redirect-webpages-html/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header narrow">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons narrow">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="section main post">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="front-matter">
|
||||||
|
<div class="title-container">
|
||||||
|
<div class="page-heading">
|
||||||
|
<a href="http://localhost:1313/posts/redirect-webpages-html/">Redirect webpages using HTML</a>
|
||||||
|
</div>
|
||||||
|
<div class="initials"><a href="http://localhost:1313/">ns</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="meta">
|
||||||
|
<div class="date" title="Sat Aug 22 2015 15:45:30 -0700">Aug 22, 2015</div>
|
||||||
|
<div class="reading-time"><div class="middot"></div>1 minute read</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="markdown">
|
||||||
|
|
||||||
|
|
||||||
|
<p>Webpage redirection is great for automatically redirecting people visiting an old URL to a new URL where the content has moved to. It can be done using JavaScript, but there is also a convenient HTML-only solution.</p>
|
||||||
|
|
||||||
|
<p>To redirect visitors reaching <code>yourwebsite.com/blog</code> to <code>yourwebsite.com/posts</code>, add this to the <code><head></code> section of the HTML at <code>yourwebsite.com/blog</code>:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nt"><meta</span> <span class="na">http-equiv=</span><span class="s">"refresh"</span> <span class="na">content=</span><span class="s">"0;url='/posts'"</span> <span class="nt">/></span>
|
||||||
|
<span class="nt"><link</span> <span class="na">rel=</span><span class="s">"canonical"</span> <span class="na">href=</span><span class="s">"/posts"</span> <span class="nt">/></span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3 id="walkthrough:afdc852818bb97af4efb4d34b2fcce3b">walkthrough</h3>
|
||||||
|
|
||||||
|
<p>Setting <code>http-equiv="refresh"</code> in the first line performs the actual redirect. The number in the <code>content</code> attribute specified in seconds tells the browser how long to wait before redirecting. In this example, <code>0</code> redirects immediately. Increasing the wait may be useful for briefly displaying a 404 page before automatically switching to the home page. The <code>url</code> specfies the destination for the redirect. In this example, we wanted to switch to <code>/posts</code>.</p>
|
||||||
|
|
||||||
|
<p>The second line is optional; it helps search engines know which the preferred version of the page is. Usually, this is the redirect destination.</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<p><a href="http://localhost:1313/posts/">Back to posts</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
174
exampleSite/public/posts/use-at-instead-of-head/index.html
Normal file
174
exampleSite/public/posts/use-at-instead-of-head/index.html
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en-US">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
<meta name="MobileOptimized" content="320">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||||
|
<meta name="description" content="Eat, sleep, code, repeat.">
|
||||||
|
|
||||||
|
<base href="http://localhost:1313/">
|
||||||
|
<title>
|
||||||
|
|
||||||
|
|
||||||
|
Use @ instead of HEAD
|
||||||
|
|
||||||
|
</title>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts/use-at-instead-of-head/">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var baseUrl = 'http:\/\/localhost:1313\/';
|
||||||
|
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||||
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
|
window.location.protocol = 'https:';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/reset.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/pygments.css">
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/main.css">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="http://localhost:1313/css/proximanova.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon"
|
||||||
|
|
||||||
|
href="http://localhost:1313/img/leaf.ico"
|
||||||
|
|
||||||
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
<body lang="en">
|
||||||
|
|
||||||
|
<div class="section header narrow">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<a href="http://localhost:1313/posts/"><li>Posts</li></a>
|
||||||
|
<a href="http://localhost:1313/about/"><li>About</li></a>
|
||||||
|
<a href="http://localhost:1313/code/"><li>Code</li></a>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<a href="http://localhost:1313/"><div class="name">Nishanth Shanmugham</div></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section icons narrow">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//github.com/nishanths" target="_blank">
|
||||||
|
<i class="icon ion-social-github"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//twitter.com/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-twitter"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="//linkedin.com/in/nshanmugham" target="_blank">
|
||||||
|
<i class="icon ion-social-linkedin"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="mailto:nishanths@utexas.edu">
|
||||||
|
<i class="icon ion-ios-email larger"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="section main post">
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="front-matter">
|
||||||
|
<div class="title-container">
|
||||||
|
<div class="page-heading">
|
||||||
|
<a href="http://localhost:1313/posts/use-at-instead-of-head/">Use @ instead of HEAD</a>
|
||||||
|
</div>
|
||||||
|
<div class="initials"><a href="http://localhost:1313/">ns</a></div>
|
||||||
|
</div>
|
||||||
|
<div class="meta">
|
||||||
|
<div class="date" title="Tue Aug 25 2015 17:09:14 CDT">Aug 25, 2015</div>
|
||||||
|
<div class="reading-time"><div class="middot"></div>1 minute read</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="markdown">
|
||||||
|
<p>I recently discovered that from git version <a href="https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.5.txt#L100">1.8.5</a> onwards, <code>@</code> can replace <code>HEAD</code>:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset --hard @~2
|
||||||
|
<span class="nv">$ </span>git rebase -i @~10
|
||||||
|
<span class="nv">$ </span>git diff @~2..@~3
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>And also in most scenarios <code>HEAD</code> can be left out completely, so you can say:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- @<span class="o">{</span>2<span class="o">}</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>instead of:</p>
|
||||||
|
|
||||||
|
<p><div class="highlight"><pre><span class="nv">$ </span>git reset -- HEAD@<span class="o">{</span>2<span class="o">}</span>
|
||||||
|
</pre></div>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>It takes some getting used to, but it’s definitely faster than typing <code>HEAD</code>.</p>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<p><a href="http://localhost:1313/posts/">Back to posts</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-61427501-2");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>document.write('<script src="http://'
|
||||||
|
+ (location.host || 'localhost').split(':')[0]
|
||||||
|
+ ':1313/livereload.js?mindelay=10"></'
|
||||||
|
+ 'script>')</script></body>
|
||||||
|
</html>
|
||||||
|
|
8
exampleSite/public/projects/index.html
Normal file
8
exampleSite/public/projects/index.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/code"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/code"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
7
exampleSite/public/resume/index.html
Normal file
7
exampleSite/public/resume/index.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=//cl.ly/0v2m3E0c0p2t/shanmugham-resume.pdf"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
55
exampleSite/public/sitemap.xml
Normal file
55
exampleSite/public/sitemap.xml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/</loc>
|
||||||
|
<lastmod>2015-08-25T17:09:14-05:00</lastmod>
|
||||||
|
<priority>0</priority>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/posts/use-at-instead-of-head/</loc>
|
||||||
|
<lastmod>2015-08-25T17:09:14-05:00</lastmod>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/posts/redirect-webpages-html/</loc>
|
||||||
|
<lastmod>2015-08-22T15:45:30-07:00</lastmod>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/about/</loc>
|
||||||
|
<lastmod>2015-08-22T06:42:21-07:00</lastmod>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/colophon/</loc>
|
||||||
|
<lastmod>2015-08-22T06:28:26-07:00</lastmod>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/code/</loc>
|
||||||
|
<lastmod>2015-08-19T20:29:37-07:00</lastmod>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/about-this-site/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/blog/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/projects/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/resume/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost:1313/writing/</loc>
|
||||||
|
</url>
|
||||||
|
|
||||||
|
</urlset>
|
8
exampleSite/public/writing/index.html
Normal file
8
exampleSite/public/writing/index.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts"/>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/posts"/>
|
||||||
|
</head>
|
||||||
|
</html>
|
BIN
exampleSite/static/img/leaf.ico
Normal file
BIN
exampleSite/static/img/leaf.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 361 KiB |
Reference in New Issue
Block a user