-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 30f50d8
Showing
197 changed files
with
45,242 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Jekyll | ||
_site/ | ||
.jekyll-cache | ||
.jekyll-metadata | ||
.sass-cache | ||
|
||
# Ruby | ||
.bundle/ | ||
.byebug_history | ||
.ruby-gemset | ||
.ruby-version | ||
*.gem | ||
Gemfile.lock | ||
|
||
# Files | ||
.analysis | ||
.DS_Store | ||
*.swp | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "github-pages", group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019 Lynn | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Light Blog | ||
|
||
 | ||
|
||
Light Blog is a light and responsive Jekyll theme, and it's easy to be used as a [remote theme](https://github.blog/2017-11-29-use-any-theme-with-github-pages/). | ||
|
||
Github Pages' remote theme is kind like a [gem-based theme](https://jekyllrb.com/docs/themes/#understanding-gem-based-themes). The user doesn't need to worry about the theme files (like HTML, CSS, etc.), but focus on the posts. When the theme is separated with your content, it's easier to deployed and update your site. | ||
|
||
> With gem-based themes, some of the site’s directories (such as the `assets`, `_layouts`, `_includes`, and `_sass` directories) are stored in the theme’s gem, hidden from your immediate view. Yet all of the necessary directories will be read and processed during Jekyll’s build process. | ||
## Usage | ||
|
||
Check out the [post](https://lynn9388.github.io/light-blog/2019/04/18/getting-started-with-light-blog.html) for more info on how to use this theme in your site. | ||
|
||
## Acknowledge | ||
|
||
The theme's design is based on [Zhuang Ma's blog](https://github.com/mzlogin/mzlogin.github.io), which is modified from [Yummy-Jekyll](https://github.com/DONGChuan/Yummy-Jekyll). Thank you! | ||
|
||
## License | ||
|
||
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Welcome to Jekyll! | ||
# | ||
# This config file is meant for settings that affect your whole blog, values | ||
# which you are expected to set up once and rarely edit after that. If you find | ||
# yourself editing this file very often, consider using Jekyll's data files | ||
# feature for the data you need to update frequently. | ||
# | ||
# For technical reasons, this file is *NOT* reloaded automatically when you use | ||
# 'bundle exec jekyll serve'. If you change this file, please restart the server process. | ||
|
||
# Site settings | ||
# These are used to personalize your new site. If you look in the HTML files, | ||
# you will see them accessed via {{ site.title }}, {{ site.subtitle }}, and so on. | ||
# You can create any custom variable you would like, and they will be accessible | ||
# in the templates via {{ site.myvariable }}. | ||
title: Akash Sharma's Blog | ||
subtitle: Blogs on Data Science, Deep Learning, Algorithms and much more. | ||
description: A blog sharing my learnings spanning across various domains. | ||
baseurl: /akash-sharma's-blog | ||
timezone: Asia/Kolkata | ||
sidebar_repository_limit: 5 | ||
paginate: 10 | ||
publication_date: 2020 | ||
|
||
# Uncomment the line below if you use this theme as a GitHub Page's remote theme. | ||
remote_theme: Akash-Sharma-1/Akash-Sharma-Blog | ||
|
||
# Author settings | ||
author: Akash Sharma | ||
organization: IIIT Delhi | ||
location: New Delhi, India | ||
social: | ||
github: Akash-Sharma-1 | ||
|
||
# Comments settings (https://utteranc.es/) | ||
# You must use your own repository, otherwise it won't work. | ||
comments_repository: lynn9388/comments | ||
|
||
# Google Analytics settings (https://analytics.google.com/) | ||
ga_measurement_id: | ||
|
||
# Build settings (https://help.github.com/en/articles/configuring-jekyll) | ||
# If you use this theme as a Github Pages's remote theme, you don't need to edit the | ||
# content below, but still need to keep it in your blog's _config.yml. | ||
collections: | ||
wiki: | ||
output: true | ||
navigation: | ||
- name: Home | ||
link: / | ||
- name: Archive | ||
link: /archive/ | ||
- name: Wiki | ||
link: /wiki/ | ||
- name: About | ||
link: /about/ | ||
defaults: | ||
- scope: | ||
path: pages | ||
values: | ||
layout: default | ||
- scope: | ||
path: _posts | ||
values: | ||
layout: post | ||
- scope: | ||
path: _wiki | ||
values: | ||
layout: post | ||
sass: | ||
style: compressed | ||
plugins: | ||
- jekyll-feed | ||
- jekyll-seo-tag | ||
- jekyll-sitemap | ||
- jemoji | ||
- rouge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<footer> | ||
<div class="container"> | ||
<hr class="my-0"> | ||
<div class="row align-items-center text-muted my-3"> | ||
<div class="col"> | ||
<span>© {{ site.publication_date }} {{ site.author }}</span> | ||
<a href="{{ site.baseurl }}/feed.xml"><span class="feed iconify" data-icon="foundation:rss"></span></a> | ||
</div> | ||
<div class="col-auto text-center px-0"> | ||
<a href="{{ site.github.repository_url }}"><span class="github text-center text-muted iconify" data-icon="foundation:social-github"></span></a> | ||
</div> | ||
<div class="col text-right"> | ||
<a href="javascript:$('html,body').animate({ scrollTop: 0 }, 'slow');">TOP</a> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0"> | ||
<link rel="shortcut icon" type="image/x-icon" href="{{ site.baseurl }}/favicon.ico"> | ||
|
||
{% seo %} | ||
{% feed_meta %} | ||
{% if site.ga_measurement_id %} | ||
{% include modules/google-analytics.html %} | ||
{% endif %} | ||
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quattrocento+Sans"> | ||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css"> | ||
|
||
<!-- Support for Bootstrap https://getbootstrap.com --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/umd/popper.min.js" integrity="sha256-fTuUgtT7O2rqoImwjrhDgbXTKUwyxxujIMRIK7TbuNU=" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | ||
|
||
<!-- Support for pattern background https://github.com/btmills/geopattern --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/geopattern/1.2.3/js/geopattern.min.js" integrity="sha256-AOyAcXCKLfI+FRdiZr4VTj9h9Wwv0YXXa2CPfUWbBS8=" crossorigin="anonymous"></script> | ||
|
||
<!-- Support for SVG icon https://iconify.design --> | ||
<script src="https://code.iconify.design/1/1.0.0/iconify.min.js"></script> | ||
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<header> | ||
<nav class="container navbar navbar-expand-sm py-2"> | ||
<a class="navbar-brand title p-0" href="{{ site.baseurl }}/"> | ||
<span class="iconify" data-icon="octicon:mark-github"></span> | ||
<span>{{ site.title }}</span> | ||
</a> | ||
|
||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<div class="navbar-nav ml-auto"> | ||
{% for item in site.navigation %} | ||
<a class="nav-item nav-link text-right" href="{{ site.baseurl }}{{ item.link }}">{{ item.name }}</a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
|
||
<script> | ||
{% if page.name == "index.html" %} | ||
$("header").addClass("bg-primary"); | ||
$(".navbar").addClass("navbar-dark"); | ||
{% else %} | ||
$(".navbar").addClass("navbar-light"); | ||
$("a[href$='{{ site.baseurl }}{{ page.url }}']").addClass("active"); | ||
{% endif %} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css" integrity="sha256-Vzbj7sDDS/woiFS3uNKo8eIuni59rjyNGtXfstRzStA=" crossorigin="anonymous" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/3.0.1/github-markdown.min.css" integrity="sha256-HbgiGHMLxHZ3kkAiixyvnaaZFNjNWLYKD/QG6PWaQPc=" crossorigin="anonymous" /> | ||
|
||
<!-- Support for deep anchor links https://github.com/bryanbraun/anchorjs --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.0/anchor.js" integrity="sha256-0X7DxIkZMaHhAon0xCc/C/YhG6y0dg8Uj8c50+gbu8c=" crossorigin="anonymous"></script> | ||
|
||
<!-- Support for fancybox https://github.com/fancyapps/fancybox --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js" integrity="sha256-yt2kYMy0w8AbtF89WXb2P1rfjcP/HTHLT7097U8Y5b8=" crossorigin="anonymous"></script> | ||
|
||
<!-- Support for MathJax https://github.com/mathjax/mathjax --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous" async></script> | ||
|
||
<article class="markdown-body"> | ||
{{ content }} | ||
</article> | ||
{% include modules/comments.html %} | ||
|
||
<script> | ||
// Add anchors to headers. | ||
anchors.add(); | ||
|
||
// Show images in fancybox. | ||
$("p img").each(function() { | ||
$(this).wrapAll('<a data-fancybox="images" data-caption="' + this.alt + '" href="' + this.src + '"></a>'); | ||
}); | ||
$('[data-fancybox="images"]').fancybox({ | ||
transitionEffect: "slide", | ||
|
||
// Support for retina displays. | ||
afterLoad : function(instance, current) { | ||
var pixelRatio = window.devicePixelRatio || 1; | ||
|
||
if ( pixelRatio > 1.5 ) { | ||
current.width = current.width / pixelRatio; | ||
current.height = current.height / pixelRatio; | ||
} | ||
} | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% assign comments_repository_owner = site.comments_repository | split: "/" | first %} | ||
{% if site.github.owner_name == comments_repository_owner %} | ||
{% if site.comments_repository %} | ||
<script src="https://utteranc.es/client.js" | ||
repo="{{ site.comments_repository }}" | ||
issue-term="pathname" | ||
theme="github-light" | ||
crossorigin="anonymous" | ||
async> | ||
</script> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_measurement_id }}"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag() {dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', '{{ site.ga_measurement_id }}'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<nav> | ||
<ur class="pagination"> | ||
{% if paginator.previous_page %} | ||
<li class="page-item"> | ||
{% if paginator.previous_page == 1 %} | ||
<a class="page-link" href="{{ site.baseurl }}/" aria-label="Previous"><span aria-hidden="true">«</span></a> | ||
{% else %} | ||
<a class="page-link" href="{{ site.baseurl }}/page{{paginator.previous_page}}" aria-label="Previous"><span aria-hidden="true">«</span></a> | ||
{% endif %} | ||
</li> | ||
{% else %} | ||
<li class="page-item disabled"> | ||
<a class="page-link" aria-label="Previous"><span aria-hidden="true">«</span></a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if paginator.page == 1 %} | ||
<li class="page-item active"><a class="page-link">1<span class="sr-only">(current)</span></a></li> | ||
{% else %} | ||
<li class="page-item"><a class="page-link" href="{{ site.baseurl }}/">1</a></li> | ||
{% endif %} | ||
|
||
{% for count in (2..paginator.total_pages) %} | ||
{% if count == paginator.page %} | ||
<li class="page-item active"><a class="page-link">{{ count }}<span class="sr-only">(current)</span></a></li> | ||
{% else %} | ||
<li class="page-item"><a class="page-link" href="{{ site.baseurl }}/page{{ count }}">{{ count }}</a></li> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% if paginator.next_page %} | ||
<li class="page-item"> | ||
<a class="page-link" href="{{ paginator.next_page_path | relative_url }}" aria-label="Next"><span aria-hidden="true">»</span></a> | ||
</li> | ||
{% else %} | ||
<li class="page-item disabled"> | ||
<a class="page-link" aria-label="Next"><span aria-hidden="true">»</span></a> | ||
</li> | ||
{% endif %} | ||
</ur> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<ul class="post-list pl-0"> | ||
{% for post in paginator.posts %} | ||
<li class="pb-3"> | ||
<a class="title" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> | ||
<div class="excerpt" class="text-muted">{{ post.excerpt | strip_html | strip | truncate: 250 }}</div> | ||
<div class="info"> | ||
<span class="pr-3"> | ||
{% if post.date %} | ||
<span class="iconify" data-icon="octicon:calendar"></span> | ||
<span class="text-muted">{{ post.date | date: "%Y/%m/%d" }}</span> | ||
{% endif %} | ||
</span> | ||
|
||
{% for tag in post.tags %} | ||
<span class="pr-3"> | ||
<span class="iconify" data-icon="octicon:tag"></span> | ||
<a class="text-muted" href="{{ site.baseurl }}/archive/#{{ tag }}">{{ tag }}</a> | ||
</span> | ||
{% endfor %} | ||
</div> | ||
</li> | ||
<hr> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<div class="repository-list"> | ||
<p class="name">My Popular Repositories</p> | ||
<div class="row"> | ||
{% assign repositories = site.github.public_repositories | sort: "stargazers_count" | reverse %} | ||
{% for repository in repositories | limit: site.sidebar_repository_limit %} | ||
<div class="col-sm-6 col-md-12 mb-3"> | ||
<a class="repository-card btn rounded p-0" href="{{ repository.html_url }}"> | ||
<div class="card p-1"> | ||
<div class="name rounded center text-light"> | ||
{{ repository.name }} | ||
</div> | ||
<div class="info center"> | ||
<div class="p-2"> | ||
<div class="description mb-2">{{ repository.description }}</div> | ||
<div> | ||
<span class="iconify" data-icon="octicon:star"></span> | ||
<span class="pr-3">{{ repository.stargazers_count }}</span> | ||
<span class="iconify" data-icon="octicon:repo-forked"></span> | ||
<span class="pr-3">{{ repository.forks_count }}</span> | ||
<span class="iconify" data-icon="octicon:clock"></span> | ||
<span>{{ repository.updated_at | date: '%Y-%m-%d' }}</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
<script> | ||
$(".repository-card .name").each(function () { | ||
$(this).geopattern($(this).text().trim()); | ||
}); | ||
</script> |
Oops, something went wrong.