Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"
gem "jekyll"
gem "jekyll-redirect-from"
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Homepage and Blog

##### Made using Jekyll


[Link to Website](http://nihal111.github.io/)
69 changes: 69 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Site Settings


# Name of your site (displayed in the header)
myname: Nihal Singh
alias: nihal111
# Short bio or description (displayed in the header)
byline: I like to know things

# URL of your avatar or profile pic (you could use your GitHub profile pic)
avatar: https://avatars1.githubusercontent.com/u/13916513?v=2&s=460


# Includes an icon in the footer for each username you enter
footer-links:
dribbble:
email:
facebook:
flickr:
github: nihal111
instagram:
linkedin: nihal111
pinterest:
rss: # just type anything here for a working RSS icon
twitter:
stackoverflow: # your stackoverflow profile, e.g. "users/50476/bart-kiers"
youtube: # channel/<your_long_string> or user/<user-name>
googleplus: # anything in your profile username that comes after plus.google.com/


# Enter your Disqus shortname (not your username) to enable commenting on posts
# You can find your shortname on the Settings page of your Disqus account
disqus: nihal111

# Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking
google_analytics:

# Your website URL (e.g. http://barryclark.github.io or http://www.barryclark.co)
# Used for Sitemap.xml and your RSS feed
url: "http://nihal111.github.io"

# If you're hosting your site at a Project repository on GitHub pages
# (http://yourusername.github.io/repository-name)
# and NOT your User repository (http://yourusername.github.io)
# then add in the baseurl here, like this: "/repository-name"
baseurl: ""


title: Nihal Singh
email: nihaliter@gmail.com
description: >
Nihal Singh's personal blog.

github_username: nihal111
facebook_username: Nihal Singh
linkedin_username: Nihal Singh
facebook_id: nihal111
linkedin_id: nihal111
address: Indian Institue of Technology, Bombay Mumbai-400076, India
# Build Settings
sass:
sass_dir: _sass
include: ['_pages']
kramdown:
input: GFM
plugins:
- jekyll-redirect-from
whitelist:
- jekyll-redirect-from
49 changes: 49 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<footer class="site-footer">

<div class="wrapper">



<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li class="name">{{ site.myname }}</li>
<li>-{{ site.alias }}</li>
<li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
</ul>
</div>

<div class="footer-col footer-col-2">
<p class="abode">Abode:</p>{{ site.address }}
</div>
<div class="footer-col footer-filler">
<p> </p>
</div>
<div class="footer-col footer-col-3">
<ul class="social-media-list">
{% if site.github_username %}
<li>
{% include icon-github.html username=site.github_username %}
</li>
{% endif %}

{% if site.facebook_username %}
<li>
{% include icon-facebook.html username=site.facebook_username id=site.facebook_id %}
</li>
{% endif %}

{% if site.linkedin_username %}
<li>
{% include icon-linkedin.html username=site.linkedin_username id=site.linkedin_id %}
</li>
{% endif %}
</ul>
</div>


</div>

</div>

</footer>
26 changes: 26 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>{% if page.title %}{{ site.title }} - {{page.title }}{% else %}{{ site.title }}{% endif %}</title>

<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700,800,600' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Muli:400,300' rel='stylesheet' type='text/css'>

<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-114314056-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-114314056-1');
</script>

</head>
29 changes: 29 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<aside>
<div class="container">
<nav>
<a class="site-title" href="/">nihal111</a>
</nav>
<nav class="site-nav">
<a href="#" class="menu-icon">
<svg viewBox="0 0 18 15">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</a>
<div class="trigger">
<ul>
{% for page in site.pages %}
{% if page.header %}
{% if page.title %}
<li><a href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
<li><a href="{{ "/docs/CV.pdf" | prepend: site.baseurl }}">CV</a></li>
<li><a href="{{ "/blog" | prepend: site.baseurl }}">Blog</a></li>
</ul>
</div>
</nav>
</div>
</aside>
1 change: 1 addition & 0 deletions _includes/icon-facebook.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://facebook.com/{{ include.id }}"><span class="icon icon--facebook">{% include icon-facebook.svg %}</span><span class="username">{{ include.username }}</span></a>
6 changes: 6 additions & 0 deletions _includes/icon-facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _includes/icon-facebook.svg~
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'><svg enable-background="new 0 0 32 32" height="16px" id="Layer_1" version="1.0" viewBox="0 0 16 16" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><path d="M32,30c0,1.104-0.896,2-2,2H2c-1.104,0-2-0.896-2-2V2c0-1.104,0.896-2,2-2h28c1.104,0,2,0.896,2,2V30z" fill="#3B5998"/><path d="M22,32V20h4l1-5h-5v-2c0-2,1.002-3,3-3h2V5c-1,0-2.24,0-4,0c-3.675,0-6,2.881-6,7v3h-4v5h4v12H22z" fill="#FFFFFF" id="f"/></g><g/><g/><g/><g/><g/><g/></svg>
1 change: 1 addition & 0 deletions _includes/icon-github.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
1 change: 1 addition & 0 deletions _includes/icon-github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions _includes/icon-linkedin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://linkedin.com/in/{{ include.id }}"><span class="icon icon--linkedin">{% include icon-linkedin.svg %}</span><span class="username">{{ include.username }}</span></a>
9 changes: 9 additions & 0 deletions _includes/icon-linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions _includes/landing_social.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<ul class="social">

<li>
<a href="https://github.com/{{ site.github_username }}">
<span class="icon icon--github">
<img src="/img/github.png" class="darken" alt="GitHub">
</span></a>
</li>

<li>
<a href="https://facebook.com/{{ site.facebook_id}}">
<span class="icon icon--facebook">
<img src="/img/facebook.png" class="darken" alt="Facebook">
</span>
</a>
</li>

<li>
<a href="https://linkedin.com/in/{{ site.linkedin_id}}">
<span class="icon icon--linkedin">
<img src="/img/linkedin.png" class="darken" alt="LinkedIn">
</span>
</a>
</li>

</ul>
17 changes: 17 additions & 0 deletions _includes/masthead.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div class="wrapper-masthead">
<div class="container">
<header class="masthead clearfix">
<a href="{{ site.baseurl }}/" class="site-avatar"><img src="{{ site.avatar }}" /></a>

<div class="site-info">
<h1 class="site-name"><a href="{{ site.baseurl }}/">{{ site.myname }}</a></h1>
<p class="site-description">{{ site.byline }}</p>
</div>

<nav>
{% include social.html %}
</nav>

</header>
</div>
</div>
10 changes: 10 additions & 0 deletions _includes/post-tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="post-tags">
{% if post %}
{% assign tags = post.tags %}
{% else %}
{% assign tags = page.tags %}
{% endif %}
{% for tag in tags %}
<a class="tag" href="/tags/#{{tag|slugize}}">{{tag}}</a>{% unless forloop.last %}{% endunless %}
{% endfor %}
</div>
16 changes: 16 additions & 0 deletions _includes/social.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<a href="https://github.com/{{ site.github_username }}">
<span class="icon icon--github">
<img src="/img/github.png" class="darken" alt="GitHub">
</span></a>

<a href="https://facebook.com/{{ site.facebook_id}}">
<span class="icon icon--facebook">
<img src="/img/facebook.png" class="darken" alt="Facebook">
</span>
</a>

<a href="https://linkedin.com/in/{{ site.linkedin_id}}">
<span class="icon icon--linkedin">
<img src="/img/linkedin.png" class="darken" alt="LinkedIn">
</span>
</a>
17 changes: 17 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
{% include head.html %}

<body>
{% include header.html %}
{% include masthead.html %}
<main>
<article>
{{ content }}
</article>

</main>
{% include footer.html %}
</body>

</html>
8 changes: 8 additions & 0 deletions _layouts/landing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include header.html %}
{{ content }}
</body>
</html>
7 changes: 7 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: default
---

<h2>{{page.title }}</h2>

{{ content }}
40 changes: 40 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
layout: default
---

<center>
<h2>{{ page.title }}</h2>
<time><i>Written on {{ page.date | date: "%b %-d, %Y" }}</i>{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</time>
<br><br>
{% include post-tags.html %}
</center>


{{ content }}


<!-- Code for disqus comments -->
{% if page.comments %}
<div id="disqus_thread"></div>
<script>

var disqus_config = function () {
this.page.url = "{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}"; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = "{{ page.id }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};

(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');

s.src = '//nihal111.disqus.com/embed.js';

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{% endif %}




Loading