init
This commit is contained in:
commit
b7b08cfcef
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
_site
|
||||||
|
.DS_Store
|
||||||
|
.jekyll
|
||||||
|
.jekyll-metadata
|
||||||
|
.bundle
|
||||||
|
.sass-cache
|
||||||
|
Gemfile
|
||||||
|
Gemfile.lock
|
||||||
|
node_modules
|
||||||
|
package.json
|
8
404.md
Normal file
8
404.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: 404 - Page not found
|
||||||
|
---
|
||||||
|
|
||||||
|
Sorry, we can't find that page that you're looking for. You can try again by going [back to the homepage]({{ site.baseurl }}/).
|
||||||
|
|
||||||
|
[<img src="{{ site.baseurl }}/images/404.jpg" alt="Constructocat by https://github.com/jasoncostello" style="width: 400px;"/>]({{ site.baseurl }}/)
|
20
LICENSE
Normal file
20
LICENSE
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2019 Amit Merchant
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
README.md
Normal file
22
README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Reverie is a Jekyll theme which is simple and opinionated. It's actually a fork of [jekyll-now](https://github.com/barryclark/jekyll-now) with some additional features and personal touches which I've implemented to suit my needs for [my blog](https://www.amitmerchant.com).
|
||||||
|
|
||||||
|
This is a plug-and-play Jekyll theme which you can use on GitHub Pages without even setting up a local environment.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Command-line free fork-first workflow, using GitHub.com to create, customize and post to your blog
|
||||||
|
- Fully responsive and mobile optimized base theme (Theme Demo)
|
||||||
|
- Sass/Coffeescript support using Jekyll 2.0
|
||||||
|
- Free hosting on your GitHub Pages user site
|
||||||
|
- Markdown blogging
|
||||||
|
- Syntax highlighting using Pygments
|
||||||
|
- Dracula syntax theme included
|
||||||
|
- Disqus commenting
|
||||||
|
- Google Analytics integration
|
||||||
|
- Categorize posts out-of-the box
|
||||||
|
- A home widget to show recent GitHub commit
|
||||||
|
- RSS Feed
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
MIT
|
93
_config.yml
Normal file
93
_config.yml
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
#
|
||||||
|
# This file contains configuration flags to customize your site
|
||||||
|
#
|
||||||
|
|
||||||
|
# Name of your site (displayed in the header)
|
||||||
|
name: Reverie
|
||||||
|
|
||||||
|
# Name of the author
|
||||||
|
author: Amit Merchant
|
||||||
|
|
||||||
|
# Short bio or description (displayed in the header)
|
||||||
|
description: An elegant Jekyll theme
|
||||||
|
|
||||||
|
# URL of your avatar or profile pic (you could use your GitHub profile pic)
|
||||||
|
avatar: https://avatars0.githubusercontent.com/u/3647841?v=3&s=460
|
||||||
|
|
||||||
|
#
|
||||||
|
# Flags below are optional
|
||||||
|
#
|
||||||
|
|
||||||
|
# Includes an icon in the footer for each username you enter
|
||||||
|
footer-links:
|
||||||
|
dribbble:
|
||||||
|
email: amit.d.merchant@gmail.com
|
||||||
|
facebook:
|
||||||
|
flickr:
|
||||||
|
github: amitmerchant1990
|
||||||
|
instagram:
|
||||||
|
linkedin:
|
||||||
|
pinterest:
|
||||||
|
rss: rss
|
||||||
|
twitter: amit_merchant
|
||||||
|
stackoverflow:
|
||||||
|
youtube: # channel/<your_long_string> or user/<user-name>
|
||||||
|
googleplus: # anything in your profile username that comes after plus.google.com/
|
||||||
|
playconsole:
|
||||||
|
|
||||||
|
|
||||||
|
# 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:
|
||||||
|
|
||||||
|
# Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking
|
||||||
|
google_analytics:
|
||||||
|
|
||||||
|
# Your website URL (e.g. http://amitmerchant1990.github.io or http://www.amitmerchant.com)
|
||||||
|
# Used for Sitemap.xml and your RSS feed
|
||||||
|
url:
|
||||||
|
enforce_ssl:
|
||||||
|
|
||||||
|
# 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: ""
|
||||||
|
|
||||||
|
#
|
||||||
|
# !! You don't need to change any of the configuration flags below !!
|
||||||
|
#
|
||||||
|
|
||||||
|
permalink: /:title/
|
||||||
|
|
||||||
|
# The release of Jekyll Now that you're using
|
||||||
|
version: v1.2.0
|
||||||
|
|
||||||
|
# Jekyll 3 now only supports Kramdown for Markdown
|
||||||
|
kramdown:
|
||||||
|
# Use GitHub flavored markdown, including triple backtick fenced code blocks
|
||||||
|
input: GFM
|
||||||
|
# Jekyll 3 and GitHub Pages now only support rouge for syntax highlighting
|
||||||
|
syntax_highlighter: rouge
|
||||||
|
syntax_highlighter_opts:
|
||||||
|
# Use existing pygments syntax highlighting css
|
||||||
|
css_class: 'highlight'
|
||||||
|
|
||||||
|
# Set the Sass partials directory, as we're using @imports
|
||||||
|
sass:
|
||||||
|
style: :expanded # You might prefer to minify using :compressed
|
||||||
|
|
||||||
|
# Use the following plug-ins
|
||||||
|
plugins:
|
||||||
|
- jekyll-sitemap # Create a sitemap using the official Jekyll sitemap gem
|
||||||
|
- jekyll-feed # Create an Atom feed using the official Jekyll feed gem
|
||||||
|
- jekyll-seo-tag
|
||||||
|
|
||||||
|
# Exclude these files from your production _site
|
||||||
|
exclude:
|
||||||
|
- Gemfile
|
||||||
|
- Gemfile.lock
|
||||||
|
- LICENSE
|
||||||
|
- README.md
|
||||||
|
- CNAME
|
||||||
|
|
16
_includes/analytics.html
Normal file
16
_includes/analytics.html
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{% if site.google_analytics %}
|
||||||
|
<!-- Google Analytics -->
|
||||||
|
<script>
|
||||||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||||
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||||
|
|
||||||
|
ga('create', '{{ site.google_analytics }}', 'auto');
|
||||||
|
ga('send', 'pageview', {
|
||||||
|
'page': '{{ site.baseurl }}{{ page.url }}',
|
||||||
|
'title': '{{ page.title | replace: "'", "\\'" }}'
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<!-- End Google Analytics -->
|
||||||
|
{% endif %}
|
17
_includes/disqus.html
Normal file
17
_includes/disqus.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{% if site.disqus %}
|
||||||
|
<div class="comments">
|
||||||
|
<div id="disqus_thread"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
var disqus_shortname = '{{ site.disqus }}';
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||||
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
|
})();
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
30
_includes/meta.html
Normal file
30
_includes/meta.html
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
||||||
|
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'>
|
||||||
|
|
||||||
|
{% if page.excerpt %}
|
||||||
|
<meta name="description" content="{{ page.excerpt| strip_html }}" />
|
||||||
|
<meta property="og:description" content="{{ page.excerpt| strip_html }}" />
|
||||||
|
{% elsif page.description %}
|
||||||
|
<meta name="description" content="{{ page.description }}" />
|
||||||
|
<meta property="og:description" content="{{ page.description }}" />
|
||||||
|
{% else %}
|
||||||
|
<meta name="description" content="{{ site.description }}">
|
||||||
|
<meta property="og:description" content="{{ site.description }}" />
|
||||||
|
{% endif %}
|
||||||
|
<meta name="author" content="{{ site.name }}" />
|
||||||
|
|
||||||
|
{% if page.title %}
|
||||||
|
<meta property="og:title" content="{{ page.title }}" />
|
||||||
|
<meta property="twitter:title" content="{{ page.title }}" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if page.image %}
|
||||||
|
<meta property="og:image" content="{{ site.url }}{{ page.image }}"/>
|
||||||
|
<meta property="twitter:image" content="{{ site.url }}{{ page.image }}"/>
|
||||||
|
{% else %}
|
||||||
|
<meta property="og:image" content="https://avatars0.githubusercontent.com/u/3647841?v=3&s=460"/>
|
||||||
|
<meta property="twitter:image" content="https://avatars0.githubusercontent.com/u/3647841?v=3&s=460"/>
|
||||||
|
{% endif %}
|
||||||
|
<meta property="og:site_name" content="Amit Merchant - Software Engineer"/>
|
14
_includes/svg-icons.html
Normal file
14
_includes/svg-icons.html
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{% if site.footer-links.dribbble %}<a href="https://dribbble.com/{{ site.footer-links.dribbble }}"><i class="svg-icon dribbble"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.email %}<a href="mailto:{{ site.footer-links.email }}"><i class="svg-icon email"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.facebook %}<a href="https://www.facebook.com/{{ site.footer-links.facebook }}"><i class="svg-icon facebook"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.flickr %}<a href="https://www.flickr.com/{{ site.footer-links.flickr }}"><i class="svg-icon flickr"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.github %}<a href="https://github.com/{{ site.footer-links.github }}"><i class="svg-icon github"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.instagram %}<a href="https://instagram.com/{{ site.footer-links.instagram }}"><i class="svg-icon instagram"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.linkedin %}<a href="https://www.linkedin.com/in/{{ site.footer-links.linkedin }}"><i class="svg-icon linkedin"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.pinterest %}<a href="https://www.pinterest.com/{{ site.footer-links.pinterest }}"><i class="svg-icon pinterest"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.rss %}<a href="{{ site.baseurl }}/feed.xml"><i class="svg-icon rss"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.twitter %}<a href="https://www.twitter.com/{{ site.footer-links.twitter }}"><i class="svg-icon twitter"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.stackoverflow %}<a href="http://stackoverflow.com/{{ site.footer-links.stackoverflow }}"><i class="svg-icon stackoverflow"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.youtube %}<a href="https://youtube.com/{{ site.footer-links.youtube }}"><i class="svg-icon youtube"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.googleplus %}<a href="https://plus.google.com/{{ site.footer-links.googleplus }}"><i class="svg-icon googleplus"></i></a>{% endif %}
|
||||||
|
{% if site.footer-links.playconsole %}<a href="https://play.google.com/store/apps/dev?id={{ site.footer-links.playconsole }}"><i class="svg-icon playconsole"></i></a>{% endif %}
|
54
_layouts/default.html
Normal file
54
_layouts/default.html
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>{% if page.title %}{{ page.title }} – {% endif %}{{ site.name }} – {{ site.description }}</title>
|
||||||
|
{% seo %}
|
||||||
|
{% include meta.html %}
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/style.css" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" title="{{ site.name }} - {{ site.description }}" href="{{ site.baseurl }}/feed.xml" />
|
||||||
|
<link rel="canonical" href="{{ site.url }}{{ page.url }}" />
|
||||||
|
|
||||||
|
<meta name="theme-color" content="#673AAC">
|
||||||
|
<script type="text/javascript">
|
||||||
|
var host = "www.amitmerchant.com";
|
||||||
|
if ((host == window.location.host) && (window.location.protocol != "https:"))
|
||||||
|
window.location.protocol = "https";
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="bar"></div>
|
||||||
|
<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.name }}</a></h1>
|
||||||
|
<p class="site-description">{{ site.description }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<a href="{{ site.baseurl }}/">Home</a>
|
||||||
|
<a href="{{ site.baseurl }}/about">About</a>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="main" role="main" class="container">
|
||||||
|
{{ content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="wrapper-footer">
|
||||||
|
<div class="container">
|
||||||
|
<footer class="footer">
|
||||||
|
{% include svg-icons.html %}
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% include analytics.html %}
|
||||||
|
</body>
|
||||||
|
</html>
|
12
_layouts/page.html
Normal file
12
_layouts/page.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
<article class="page">
|
||||||
|
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
|
||||||
|
<div class="entry">
|
||||||
|
{{ content }}
|
||||||
|
</div>
|
||||||
|
</article>
|
39
_layouts/post.html
Normal file
39
_layouts/post.html
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
<article class="post detailed">
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p class="author_title">{{site.name}} · {{ page.date | date: "%B %e, %Y" }}</p>
|
||||||
|
{% if page.last_modified_at %}
|
||||||
|
<p class="author_title" datetime="{{ page.last_modified_at | date_to_xmlschema }}">(Updated: {{ page.last_modified_at | date: "%b %-d, %Y" }})</p>
|
||||||
|
{% endif %}
|
||||||
|
<div class="post-tags">
|
||||||
|
{% if post %}
|
||||||
|
{% assign categories = post.categories %}
|
||||||
|
{% else %}
|
||||||
|
{% assign categories = page.categories %}
|
||||||
|
{% endif %}
|
||||||
|
{% for category in categories %}
|
||||||
|
<a href="{{site.baseurl}}/categories/#{{category|slugize}}">{{category}}</a>
|
||||||
|
{% unless forloop.last %} {% endunless %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="entry">
|
||||||
|
{{ content }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p><span class="share-box">Share:</span> <a href="http://twitter.com/share?text={{ page.title }}&url={{site.url}}{{page.url}}" target="_blank">Twitter</a>, <a href="https://www.facebook.com/sharer.php?u={{site.url}}{{page.url}}" target="_blank">Facebook</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--<div class="date">
|
||||||
|
Written on {{ page.date | date: "%B %e, %Y" }}
|
||||||
|
</div>-->
|
||||||
|
|
||||||
|
{% include disqus.html %}
|
||||||
|
</article>
|
27
_posts/2019-02-03-introducing-reverie-jekyll-theme.md
Normal file
27
_posts/2019-02-03-introducing-reverie-jekyll-theme.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
layout: post
|
||||||
|
title: Introducing Reverie - An elegant Jekyll theme
|
||||||
|
categories: [Miscellaneous, Jekyll]
|
||||||
|
---
|
||||||
|
|
||||||
|
Reverie is a Jekyll theme which is simple and opinionated. It's actually a fork of [jekyll-now](https://github.com/barryclark/jekyll-now) with some additional features and personal touches which I've implemented to suit my needs for [my blog](https://www.amitmerchant.com).
|
||||||
|
|
||||||
|
This is a plug-and-play Jekyll theme which you can use on GitHub Pages without even setting up a local environment.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Command-line free fork-first workflow, using GitHub.com to create, customize and post to your blog
|
||||||
|
- Fully responsive and mobile optimized base theme (Theme Demo)
|
||||||
|
- Sass/Coffeescript support using Jekyll 2.0
|
||||||
|
- Free hosting on your GitHub Pages user site
|
||||||
|
- Markdown blogging
|
||||||
|
- Syntax highlighting using Pygments
|
||||||
|
- Dracula syntax theme included
|
||||||
|
- Disqus commenting
|
||||||
|
- Google Analytics integration
|
||||||
|
- Categorize posts out-of-the box
|
||||||
|
- A home widget to show recent GitHub commit
|
||||||
|
- RSS Feed
|
||||||
|
- SEO friendly
|
||||||
|
|
||||||
|
|
95
_sass/_darcula.scss
Normal file
95
_sass/_darcula.scss
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
.highlight {
|
||||||
|
background-color: #1e1c3f;
|
||||||
|
padding: 7px 7px 7px 10px;
|
||||||
|
overflow: scroll;
|
||||||
|
font-size: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family:'Bitstream Vera Sans Mono','Courier', monospace;
|
||||||
|
color: #d8d8d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlighter-rouge {
|
||||||
|
background-color: #FAFAFA;
|
||||||
|
color: #FF554A;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight .hll { background-color: #f1fa8c }
|
||||||
|
.highlight { background: #282a36; color: #f8f8f2 }
|
||||||
|
.highlight .c { color: #6272a4 } /* Comment */
|
||||||
|
.highlight .err { color: #f8f8f2 } /* Error */
|
||||||
|
.highlight .g { color: #f8f8f2 } /* Generic */
|
||||||
|
.highlight .k { color: #ff79c6 } /* Keyword */
|
||||||
|
.highlight .l { color: #f8f8f2 } /* Literal */
|
||||||
|
.highlight .n { color: #f8f8f2 } /* Name */
|
||||||
|
.highlight .o { color: #ff79c6 } /* Operator */
|
||||||
|
.highlight .x { color: #f8f8f2 } /* Other */
|
||||||
|
.highlight .p { color: #f8f8f2 } /* Punctuation */
|
||||||
|
.highlight .ch { color: #6272a4 } /* Comment.Hashbang */
|
||||||
|
.highlight .cm { color: #6272a4 } /* Comment.Multiline */
|
||||||
|
.highlight .cp { color: #ff79c6 } /* Comment.Preproc */
|
||||||
|
.highlight .cpf { color: #6272a4 } /* Comment.PreprocFile */
|
||||||
|
.highlight .c1 { color: #6272a4 } /* Comment.Single */
|
||||||
|
.highlight .cs { color: #6272a4 } /* Comment.Special */
|
||||||
|
.highlight .gd { color: #8b080b } /* Generic.Deleted */
|
||||||
|
.highlight .ge { color: #f8f8f2; text-decoration: underline } /* Generic.Emph */
|
||||||
|
.highlight .gr { color: #f8f8f2 } /* Generic.Error */
|
||||||
|
.highlight .gh { color: #f8f8f2; font-weight: bold } /* Generic.Heading */
|
||||||
|
.highlight .gi { color: #f8f8f2; font-weight: bold } /* Generic.Inserted */
|
||||||
|
.highlight .go { color: #44475a } /* Generic.Output */
|
||||||
|
.highlight .gp { color: #f8f8f2 } /* Generic.Prompt */
|
||||||
|
.highlight .gs { color: #f8f8f2 } /* Generic.Strong */
|
||||||
|
.highlight .gu { color: #f8f8f2; font-weight: bold } /* Generic.Subheading */
|
||||||
|
.highlight .gt { color: #f8f8f2 } /* Generic.Traceback */
|
||||||
|
.highlight .kc { color: #ff79c6 } /* Keyword.Constant */
|
||||||
|
.highlight .kd { color: #8be9fd; font-style: italic } /* Keyword.Declaration */
|
||||||
|
.highlight .kn { color: #ff79c6 } /* Keyword.Namespace */
|
||||||
|
.highlight .kp { color: #ff79c6 } /* Keyword.Pseudo */
|
||||||
|
.highlight .kr { color: #ff79c6 } /* Keyword.Reserved */
|
||||||
|
.highlight .kt { color: #8be9fd } /* Keyword.Type */
|
||||||
|
.highlight .ld { color: #f8f8f2 } /* Literal.Date */
|
||||||
|
.highlight .m { color: #bd93f9 } /* Literal.Number */
|
||||||
|
.highlight .s { color: #f1fa8c } /* Literal.String */
|
||||||
|
.highlight .na { color: #50fa7b } /* Name.Attribute */
|
||||||
|
.highlight .nb { color: #8be9fd; font-style: italic } /* Name.Builtin */
|
||||||
|
.highlight .nc { color: #50fa7b } /* Name.Class */
|
||||||
|
.highlight .no { color: #f8f8f2 } /* Name.Constant */
|
||||||
|
.highlight .nd { color: #f8f8f2 } /* Name.Decorator */
|
||||||
|
.highlight .ni { color: #f8f8f2 } /* Name.Entity */
|
||||||
|
.highlight .ne { color: #f8f8f2 } /* Name.Exception */
|
||||||
|
.highlight .nf { color: #50fa7b } /* Name.Function */
|
||||||
|
.highlight .nl { color: #8be9fd; font-style: italic } /* Name.Label */
|
||||||
|
.highlight .nn { color: #f8f8f2 } /* Name.Namespace */
|
||||||
|
.highlight .nx { color: #f8f8f2 } /* Name.Other */
|
||||||
|
.highlight .py { color: #f8f8f2 } /* Name.Property */
|
||||||
|
.highlight .nt { color: #ff79c6 } /* Name.Tag */
|
||||||
|
.highlight .nv { color: #8be9fd; font-style: italic } /* Name.Variable */
|
||||||
|
.highlight .ow { color: #ff79c6 } /* Operator.Word */
|
||||||
|
.highlight .w { color: #f8f8f2 } /* Text.Whitespace */
|
||||||
|
.highlight .mb { color: #bd93f9 } /* Literal.Number.Bin */
|
||||||
|
.highlight .mf { color: #bd93f9 } /* Literal.Number.Float */
|
||||||
|
.highlight .mh { color: #bd93f9 } /* Literal.Number.Hex */
|
||||||
|
.highlight .mi { color: #bd93f9 } /* Literal.Number.Integer */
|
||||||
|
.highlight .mo { color: #bd93f9 } /* Literal.Number.Oct */
|
||||||
|
.highlight .sa { color: #f1fa8c } /* Literal.String.Affix */
|
||||||
|
.highlight .sb { color: #f1fa8c } /* Literal.String.Backtick */
|
||||||
|
.highlight .sc { color: #f1fa8c } /* Literal.String.Char */
|
||||||
|
.highlight .dl { color: #f1fa8c } /* Literal.String.Delimiter */
|
||||||
|
.highlight .sd { color: #f1fa8c } /* Literal.String.Doc */
|
||||||
|
.highlight .s2 { color: #f1fa8c } /* Literal.String.Double */
|
||||||
|
.highlight .se { color: #f1fa8c } /* Literal.String.Escape */
|
||||||
|
.highlight .sh { color: #f1fa8c } /* Literal.String.Heredoc */
|
||||||
|
.highlight .si { color: #f1fa8c } /* Literal.String.Interpol */
|
||||||
|
.highlight .sx { color: #f1fa8c } /* Literal.String.Other */
|
||||||
|
.highlight .sr { color: #f1fa8c } /* Literal.String.Regex */
|
||||||
|
.highlight .s1 { color: #f1fa8c } /* Literal.String.Single */
|
||||||
|
.highlight .ss { color: #f1fa8c } /* Literal.String.Symbol */
|
||||||
|
.highlight .bp { color: #f8f8f2; font-style: italic } /* Name.Builtin.Pseudo */
|
||||||
|
.highlight .fm { color: #50fa7b } /* Name.Function.Magic */
|
||||||
|
.highlight .vc { color: #8be9fd; font-style: italic } /* Name.Variable.Class */
|
||||||
|
.highlight .vg { color: #8be9fd; font-style: italic } /* Name.Variable.Global */
|
||||||
|
.highlight .vi { color: #8be9fd; font-style: italic } /* Name.Variable.Instance */
|
||||||
|
.highlight .vm { color: #8be9fd; font-style: italic } /* Name.Variable.Magic */
|
||||||
|
.highlight .il { color: #bd93f9 } /* Literal.Number.Integer.Long */
|
86
_sass/_highlights.scss
Normal file
86
_sass/_highlights.scss
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
|
||||||
|
.highlight {
|
||||||
|
background-color: #1e1c3f;
|
||||||
|
padding: 7px 7px 7px 10px;
|
||||||
|
overflow: scroll;
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family:'Bitstream Vera Sans Mono','Courier', monospace;
|
||||||
|
color: #d8d8d8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlighter-rouge {
|
||||||
|
background-color: #FAFAFA;
|
||||||
|
color: #FF554A;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight .c { color: #586E75 } /* Comment */
|
||||||
|
.highlight .err { color: #93A1A1 } /* Error */
|
||||||
|
.highlight .g { color: #93A1A1 } /* Generic */
|
||||||
|
.highlight .k { color: #859900 } /* Keyword */
|
||||||
|
.highlight .l { color: #93A1A1 } /* Literal */
|
||||||
|
.highlight .n { color: #93A1A1 } /* Name */
|
||||||
|
.highlight .o { color: #859900 } /* Operator */
|
||||||
|
.highlight .x { color: #CB4B16 } /* Other */
|
||||||
|
.highlight .p { color: #93A1A1 } /* Punctuation */
|
||||||
|
.highlight .cm { color: #586E75 } /* Comment.Multiline */
|
||||||
|
.highlight .cp { color: #859900 } /* Comment.Preproc */
|
||||||
|
.highlight .c1 { color: #586E75 } /* Comment.Single */
|
||||||
|
.highlight .cs { color: #859900 } /* Comment.Special */
|
||||||
|
.highlight .gd { color: #2AA198 } /* Generic.Deleted */
|
||||||
|
.highlight .ge { color: #93A1A1; font-style: italic } /* Generic.Emph */
|
||||||
|
.highlight .gr { color: #DC322F } /* Generic.Error */
|
||||||
|
.highlight .gh { color: #CB4B16 } /* Generic.Heading */
|
||||||
|
.highlight .gi { color: #859900 } /* Generic.Inserted */
|
||||||
|
.highlight .go { color: #93A1A1 } /* Generic.Output */
|
||||||
|
.highlight .gp { color: #93A1A1 } /* Generic.Prompt */
|
||||||
|
.highlight .gs { color: #93A1A1; font-weight: bold } /* Generic.Strong */
|
||||||
|
.highlight .gu { color: #CB4B16 } /* Generic.Subheading */
|
||||||
|
.highlight .gt { color: #93A1A1 } /* Generic.Traceback */
|
||||||
|
.highlight .kc { color: #CB4B16 } /* Keyword.Constant */
|
||||||
|
.highlight .kd { color: #268BD2 } /* Keyword.Declaration */
|
||||||
|
.highlight .kn { color: #859900 } /* Keyword.Namespace */
|
||||||
|
.highlight .kp { color: #859900 } /* Keyword.Pseudo */
|
||||||
|
.highlight .kr { color: #268BD2 } /* Keyword.Reserved */
|
||||||
|
.highlight .kt { color: #DC322F } /* Keyword.Type */
|
||||||
|
.highlight .ld { color: #93A1A1 } /* Literal.Date */
|
||||||
|
.highlight .m { color: #2AA198 } /* Literal.Number */
|
||||||
|
.highlight .s { color: #2AA198 } /* Literal.String */
|
||||||
|
.highlight .na { color: #93A1A1 } /* Name.Attribute */
|
||||||
|
.highlight .nb { color: #E91E63 } /* Name.Builtin */
|
||||||
|
.highlight .nc { color: #268BD2 } /* Name.Class */
|
||||||
|
.highlight .no { color: #CB4B16 } /* Name.Constant */
|
||||||
|
.highlight .nd { color: #268BD2 } /* Name.Decorator */
|
||||||
|
.highlight .ni { color: #CB4B16 } /* Name.Entity */
|
||||||
|
.highlight .ne { color: #CB4B16 } /* Name.Exception */
|
||||||
|
.highlight .nf { color: #268BD2 } /* Name.Function */
|
||||||
|
.highlight .nl { color: #93A1A1 } /* Name.Label */
|
||||||
|
.highlight .nn { color: #93A1A1 } /* Name.Namespace */
|
||||||
|
.highlight .nx { color: #B39DDB } /* Name.Other */
|
||||||
|
.highlight .py { color: #93A1A1 } /* Name.Property */
|
||||||
|
.highlight .nt { color: #268BD2 } /* Name.Tag */
|
||||||
|
.highlight .nv { color: #268BD2 } /* Name.Variable */
|
||||||
|
.highlight .ow { color: #859900 } /* Operator.Word */
|
||||||
|
.highlight .w { color: #93A1A1 } /* Text.Whitespace */
|
||||||
|
.highlight .mf { color: #2AA198 } /* Literal.Number.Float */
|
||||||
|
.highlight .mh { color: #2AA198 } /* Literal.Number.Hex */
|
||||||
|
.highlight .mi { color: #2AA198 } /* Literal.Number.Integer */
|
||||||
|
.highlight .mo { color: #2AA198 } /* Literal.Number.Oct */
|
||||||
|
.highlight .sb { color: #586E75 } /* Literal.String.Backtick */
|
||||||
|
.highlight .sc { color: #2AA198 } /* Literal.String.Char */
|
||||||
|
.highlight .sd { color: #93A1A1 } /* Literal.String.Doc */
|
||||||
|
.highlight .s2 { color: #2AA198 } /* Literal.String.Double */
|
||||||
|
.highlight .se { color: #CB4B16 } /* Literal.String.Escape */
|
||||||
|
.highlight .sh { color: #93A1A1 } /* Literal.String.Heredoc */
|
||||||
|
.highlight .si { color: #2AA198 } /* Literal.String.Interpol */
|
||||||
|
.highlight .sx { color: #2AA198 } /* Literal.String.Other */
|
||||||
|
.highlight .sr { color: #DC322F } /* Literal.String.Regex */
|
||||||
|
.highlight .s1 { color: #2AA198 } /* Literal.String.Single */
|
||||||
|
.highlight .ss { color: #2AA198 } /* Literal.String.Symbol */
|
||||||
|
.highlight .bp { color: #268BD2 } /* Name.Builtin.Pseudo */
|
||||||
|
.highlight .vc { color: #268BD2 } /* Name.Variable.Class */
|
||||||
|
.highlight .vg { color: #268BD2 } /* Name.Variable.Global */
|
||||||
|
.highlight .vi { color: #268BD2 } /* Name.Variable.Instance */
|
||||||
|
.highlight .il { color: #2AA198 } /* Literal.Number.Integer.Long */
|
53
_sass/_reset.scss
Normal file
53
_sass/_reset.scss
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
/***************/
|
||||||
|
/* MEYER RESET */
|
||||||
|
/***************/
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
// Apply a natural box layout model to all elements
|
||||||
|
// from: http://www.paulirish.com/2012/box-sizing-border-box-ftw/
|
||||||
|
*, *:before, *:after {
|
||||||
|
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
|
||||||
|
}
|
20
_sass/_svg-icons.scss
Normal file
20
_sass/_svg-icons.scss
Normal file
File diff suppressed because one or more lines are too long
27
_sass/_variables.scss
Normal file
27
_sass/_variables.scss
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
//
|
||||||
|
// VARIABLES
|
||||||
|
//
|
||||||
|
|
||||||
|
// Colors
|
||||||
|
$blue: #4183C4;
|
||||||
|
|
||||||
|
// Grays
|
||||||
|
$black: #000;
|
||||||
|
$darkerGray: #222;
|
||||||
|
$darkGray: #333;
|
||||||
|
$gray: #666;
|
||||||
|
$lightGray: #eee;
|
||||||
|
$white: #fff;
|
||||||
|
|
||||||
|
// Font stacks
|
||||||
|
$helvetica: Helvetica, Arial, sans-serif;
|
||||||
|
$helveticaNeue: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
$georgia: Georgia, serif;
|
||||||
|
|
||||||
|
// Mobile breakpoints
|
||||||
|
@mixin mobile {
|
||||||
|
@media screen and (max-width: 640px) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
25
about.md
Normal file
25
about.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: About
|
||||||
|
permalink: /about/
|
||||||
|
---
|
||||||
|
|
||||||
|
Reverie is a Jekyll theme which is simple and opinionated. It's actually a fork of [jekyll-now](https://github.com/barryclark/jekyll-now) with some additional features and personal touches which I've implemented to suit my needs for [my blog](https://www.amitmerchant.com).
|
||||||
|
|
||||||
|
This is a plug-and-play Jekyll theme which you can use on GitHub Pages without even setting up a local environment.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Command-line free fork-first workflow, using GitHub.com to create, customize and post to your blog
|
||||||
|
- Fully responsive and mobile optimized base theme (Theme Demo)
|
||||||
|
- Sass/Coffeescript support using Jekyll 2.0
|
||||||
|
- Free hosting on your GitHub Pages user site
|
||||||
|
- Markdown blogging
|
||||||
|
- Syntax highlighting using Pygments
|
||||||
|
- Dracula syntax theme included
|
||||||
|
- Disqus commenting
|
||||||
|
- Google Analytics integration
|
||||||
|
- Categorize posts out-of-the box
|
||||||
|
- A home widget to show recent GitHub commit
|
||||||
|
- RSS Feed
|
||||||
|
- SEO friendly
|
24
categories.md
Normal file
24
categories.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
permalink: /categories/
|
||||||
|
title: Categories
|
||||||
|
---
|
||||||
|
|
||||||
|
|
||||||
|
<div id="archives">
|
||||||
|
{% for category in site.categories %}
|
||||||
|
<div class="archive-group">
|
||||||
|
{% capture category_name %}{{ category | first }}{% endcapture %}
|
||||||
|
<div id="#{{ category_name | slugize }}"></div>
|
||||||
|
<p></p>
|
||||||
|
|
||||||
|
<h3 class="category-head">{{ category_name }}</h3>
|
||||||
|
<a name="{{ category_name | slugize }}"></a>
|
||||||
|
{% for post in site.categories[category_name] %}
|
||||||
|
<article class="archive-item">
|
||||||
|
<h4><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h4>
|
||||||
|
</article>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
BIN
fonts/EBGaramond-Regular.ttf
Normal file
BIN
fonts/EBGaramond-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/FuturaPTLight.otf
Normal file
BIN
fonts/FuturaPTLight.otf
Normal file
Binary file not shown.
BIN
fonts/aramisi.ttf
Normal file
BIN
fonts/aramisi.ttf
Normal file
Binary file not shown.
BIN
images/404.jpg
Normal file
BIN
images/404.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
50
index.html
Normal file
50
index.html
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
<!--<div id="gh-latest"></div>-->
|
||||||
|
<div class="posts">
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<article class="post">
|
||||||
|
|
||||||
|
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p class="post_date">{{ post.date | date: "%B %e, %Y" }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="entry">
|
||||||
|
{{ post.excerpt }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
|
||||||
|
</article>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/*var xmlhttp = new XMLHttpRequest();
|
||||||
|
var userMetaURL = "https://api.github.com/users/yourusername/events";
|
||||||
|
xmlhttp.onreadystatechange = function () {
|
||||||
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
var userMeta = JSON.parse(this.responseText);
|
||||||
|
|
||||||
|
for(let i = 0; i < userMeta.length; i++){
|
||||||
|
if(userMeta[i].type == 'PushEvent'){
|
||||||
|
var commitURL = userMeta[i].payload.commits[0].url.replace('api.', '').replace('repos/', '').replace('commits', 'commit');
|
||||||
|
var projectURL = userMeta[i].repo.url.replace('api.', '').replace('repos/', '');
|
||||||
|
var commitMessage = userMeta[i].payload.commits[0].message;
|
||||||
|
var projectName = userMeta[i].repo.name;
|
||||||
|
var commitDate = new Date(userMeta[i].created_at).toDateString();
|
||||||
|
|
||||||
|
var ghLatestActivity = '<a class="chip yellow lighten-2">Latest commit</a>"' + '<a class="text-link" href="' + commitURL + '"' + '>' + commitMessage + '</a>' + '" at ' + '<a class="text-link" href="' + projectURL + '"' + '>' + projectName + '</a>' + ' on ' + commitDate + '.';
|
||||||
|
|
||||||
|
document.getElementById("gh-latest").innerHTML = ghLatestActivity;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
xmlhttp.open("GET", userMetaURL, true);
|
||||||
|
xmlhttp.send();*/
|
||||||
|
</script>
|
1041
style.scss
Normal file
1041
style.scss
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user