Skip to content

Commit

Permalink
Intial restructure and content addition
Browse files Browse the repository at this point in the history
Signed-off-by: Anil Vishnoi <[email protected]>
  • Loading branch information
vishnoianil committed Mar 5, 2017
1 parent d439352 commit e605bff
Show file tree
Hide file tree
Showing 60 changed files with 947 additions and 844 deletions.
8 changes: 3 additions & 5 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
layout: page
title: "404 Page Not Found"
title: "Under Construction"
permalink: 404.html
---

<h4>The page you were looking for is not found.</h4>
<p>Sorry, we've misplaced that URL or it's pointing to something that doesn't
exist. Please
<p>Just waiting for some spare time to fill in the details. Please
<a href="{{ '' | prepend: site.baseurl | prepend: site.url | append: '/' }}">
head back home</a> to try finding it again.</p>
expore other stuff</a> and hopefully I will have something useful on this page soon.</p>
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)

gem 'github-pages', versions['github-pages']
gem 'rake'
gem 'github-pages', versions['github-pages'], group: :jekyll_plugins
gem 'rake'
133 changes: 3 additions & 130 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,132 +1,5 @@
# Gaya Jekyll Theme
# Welcome to my GitPages source code repo

Modern responsive theme made for jekyll blogging platform.
Gaya is a simple theme build from ground up with the focus of performance.
The theme itself quickly adapts to the users device, so it looks great on
smartphones, tablets, desktops or even the large monitors.
I cloned this theme from [Gaya](http://gayan.me/gaya/) and modified as per my need.

- Ability to change theme color at any time with any color.
- Easy customizable menu navigation.
- SEO Friendly
- Embed image, YouTube/Vimeo video or SoundCloud audio to your post.

---

![Theme preview](http://gayan.me/thumbnails/gaya-jekyll-theme-preview-590x300.png "Gaya jekyll theme")

### Need Help?

Please submit as an
[issue](https://github.com/web-create/harmony/issues/new), I am happy
to response back.

## How to install/run

1. [Fork](https://github.com/gayanvirajith/gaya) this repository.
2. Clone it: git clone https://github.com/YOUR-USERNAME/gaya.
3. If you completely new to jekyll, please read more about [Jekyll](http://jekyllrb.com/) and [Github pages](https://help.github.com/articles/using-jekyll-with-pages).
4. Change your directory into cloned repository.
5. Run `bundle install`
6. Edit the _config.yml on root directory. Change `url` property to to
`http://127.0.0.1:4000` since you are going to run on localhost.
7. Run the jekyll server by having: `bundle exec jekyll serve --baseurl ''` or `rake preview`

Try to locate your browser at [http://localhost:4000](http://localhost:4000).

Note: If you are a windows user please refer this nice website - http://jekyll-windows.juthilo.com/ by Julian Thilo to configure ruby + jekyll on windows.


## Theme options and configurations

Following options can be seen within the file `_config.yml`. More information
about configuration can be found on the [Jekyll Documentationn][jekyll]

### General settings

| Property name | Description |
------------ | -------------
`title` | The title of your blog shown in the site header along with the logo.
`tagline` | The site tagline also shown in the site header along with the title.
`email` | The email address associated with blog/site.
`description` | The site description used to show author's/site's description in the top of the sidebar.
`baseurl` | The subpath of your site, e.g. /blog/. More information can be found in the [Jekyll Documentationn][jekyll].
`url` | The base host name & protocol for your site. More information can be found in the [Jekyll Documentationn][jekyll].
`logourl` | Path to main logo image.
`author_thumbnail` | Path to author's thumbnail image.
`author` | Name of the author.
`paginate` | Number of posts to show per page, More information can be found in the [Jekyll Documentationn][jekyll].

### Social profile links

| Property name | Description |
------------ | -------------
`github` | GitHub link (Leave empty to exclude)
`twitter` | Twitter link (Leave empty to exclude)
`facebook` | Facebook link (Leave empty to exclude)
`gplus` | Google plus link (Leave empty to exclude)
`dribble` | Dribble link (Leave empty to exclude)
`pinterest` | Pinterest link (Leave empty to exclude)

### Theme settings

| Property name | Description |
------------ | -------------
`highlight_color` | The main highlight/theme color of the site. You can put any color as a hex color. The configured color will be applied to sidebar, anchor links, buttons etc.
`show_share_buttons` | Set as True/False to enable or disable Post share option.
`show_author_info` | Set as True/False to enable or disable the author information on a post.
`disqus_shortname` | Disqus Short name for Disqus comments. Leave empty to disable comments.
`google_analytics_key` | Enter your Google analytics tracking ID to enable analytic support.
`google_webmaster_key` | Enter your Google web-master verification key to verify your site with the web-master tool. (This is an alternative way of verifying your site with the web-master tool, the general way is to upload a file to your server.)


### Page level configurations

These configurations can be found within the top section of the each page, see the a post under `_posts` directory for example.

| Property name | Description |
------------ | -------------
`banner_image` | Specify the image name eg: `sample-banner-image-1.jpg` for banner image for the post. Jekyll system tries to locate the image under `assets/images`. So make sure you place all banner images under assets/images.
`banner_video` | If you want to embed `Youtube/Vimeo` Video or `SoundCloud` audio, Specify the resource within single quotes. Please have a look on example post in `_posts/2014-12-14-what-is-nodejs.md` to see how we embed YouTube video.
`comments` | Set as True/False, if false will disable comments for current page/post.
`browser_title` | SEO property. Use this property if you want to display different browser title other than default page title. Please have a look on example post under `_posts/2014-12-14-what-is-nodejs.md` to see how we used the property.
`meta_description` | SEO property. Use this property If you want to have unique meta description for each post. See the example post on `_posts/2014-12-14-what-is-nodejs.md` to see how we used the property.

### Sidebar navigation configurations

As jekyll supports data files, **Gaya** theme uses `YAML` [data file][df] to load sidebar navigation items. You could find the `main-nav.yaml` data file under `_data/` directory. You could add any number of menu items by modifying `main-nav.yaml`.

An example of `main-nav.yaml`:

```
- title: "About me" # Title/Caption of the menu item
href: "/about" # the page where it pointed
- title: "Blog Archive"
href: "/archive"
```

At some point you want to link an external URL, in that case you could edit the `_includes/sidebar.html` file. See the following example:

```
<nav class="sidebar-nav">
<a class="sidebar-nav-item"
href="http://www.example.com"
target="_blank">
Example site
</a>
</nav>
```

## License

(The MIT License)

Copyright (c) 2014 Gayan Virajith

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.

[jekyll]: http://jekyllrb.com
[df]: http://jekyllrb.com/docs/datafiles/
Thanks to the folks who spend time on creating the theme. This looks great!.
54 changes: 34 additions & 20 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
# Site settings
title: Your awesome title
tagline: And Tagline
email: gayanvirajith@gmail.com
title: Anil Vishnoi
tagline: Computer Engineer, Open Source Enthusiast, Photographer
email: vishnoianil@gmail.com
description: > # this means to ignore newlines until "baseurl:"
Hi, I’m a professional UI/UX designer and web developer.
I love being minimal and creative.
baseurl: "/gaya" # the subpath of your site, e.g. /blog/
url: "http://gayan.me" # the base hostname & protocol for your site
Computer engineer working in the domain of disruptive networking technologies.
baseurl: "/avishnoi.github.io" # the subpath of your site, e.g. /blog/
url: "http://127.0.0.1:4000" # the base hostname & protocol for your site
logourl: /assets/images/logo.png # Site logo
author: "Tom Warlker"
author_thumbnail: "/assets/images/avatar.jpg" # Author avatar
author: "Anil Vishnoi"
author_thumbnail: "/assets/images/avatar-1.jpg" # Author avatar
# Theme customization - please change from the defaults!
theme:
# Color for sidebar bar, links, etc
highlight_color: "#205081" #205081" # "#272935"
# Social media links, leave blank to ignore
social:
github: gayanvirajith
twitter: gayanvirajith
facebook: gayanvirajith
gplus: +gayanvirajith
# dribble: gayanvirajith
pinterest: gayanvirajith
social:
github: vishnoianil
twitter: vishnoianil_
facebook: vishnoianil
gplus: +vishnoianil
dribble:
pinterest:

# Enable share buttons on post footer
show_share_buttons: true
Expand All @@ -30,12 +29,27 @@ theme:
show_author_info: true

# Disqus comments manager - shortname
# disqus_shortname: gaya-webcreate
disqus_shortname: vishnoianil

# Google Analytics/Webmaster key, leave blank to ignore
google_analytics_key:
google_webmaster_key:
google_analytics_key:
google_webmaster_key:

footer-links:
dribbble:
email: [email protected]
facebook: dmm613
flickr:
github: davidmeyer
instagram:
linkedin: davidmeyer4
pinterest:
rss: # just type anything here for a working RSS icon
twitter: dmm613
stackoverflow: # your stackoverflow profile, e.g. "users/50476/bart-kiers"
youtube: # channel/<your_long_string> or user/<user-name>
googleplus: # anything in your pr

# Build settings
markdown: kramdown

Expand All @@ -46,7 +60,7 @@ permalink: pretty
paginate: 5

# Files/Folders to be excluded from generated _site folder
exclude:
exclude:
- CNAME
- Gemfile
- Rakefile
Expand Down
14 changes: 11 additions & 3 deletions _data/main-nav.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
- title: "About me" # Title/Caption of the menu item
href: "/about" # the page where it pointed
- title: "Blog Archive"
href: "/archive"
href: "/about" # the page where it pointed
- title: "Archive"
href: "/archive"
- title: "Talks"
href: "/talks"
- title: "Research Papers"
href: "/papers"
- title: "Patents"
href: "/patents"
- title: "Photography"
href: "/photography"
17 changes: 8 additions & 9 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{% capture sidebar %}
{% comment %}
<!--
<!--
Handler for toggling the sidebar `.sidebar-toggle-checkbox` is used for regular
styles and `#sidebar-toggle-checkbox` for behavior.
styles and `#sidebar-toggle-checkbox` for behavior.
-->
{% endcomment %}
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">

<div class="sidebar" id="sidebar">

{% if site.author_thumbnail && site.author_thumbnail != '' %}
<img
<img
src="{{ site.author_thumbnail | prepend: site.baseurl | prepend: site.url }}"
alt="{{ site.title }}" />

Expand All @@ -24,8 +24,8 @@

<nav class="sidebar-nav">

<a class="sidebar-nav-item{% if page.url == '/index.html' %} active {% endif %}"
href="{{ '' | prepend: site.baseurl | prepend: site.url | append: '/' }}">
<a class="sidebar-nav-item{% if page.url == '/index.html' %} active {% endif %}"
href="{{ '' | prepend: site.baseurl | prepend: site.url | append: '/' }}">
Home
</a>

Expand All @@ -37,13 +37,13 @@
{% assign c = "" %}
{% endif %}

<a class="sidebar-nav-item {{ c }}"
<a class="sidebar-nav-item {{ c }}"
href="{{ item.href | prepend: site.baseurl | prepend: site.url }}">
{{ item.title }}
</a>
{% endfor %}

<a class="sidebar-nav-item"
<a class="sidebar-nav-item"
href="http://github.com/{{ site.theme.social.github }}"
target="_blank">
GitHub/Download
Expand All @@ -53,12 +53,11 @@

<div class="sidebar-info small">
<p>
Made by <a href="http://gayan.me" target="_blank">Gayan Virajith</a> For everyone.
Powered by <a href="http://jekyllrb.com" target="_blank">Jekyll</a>
</p>
</div>

{% include social.html %}

</div>
{% endcapture %}{{ sidebar | strip_newlines }}
{% endcapture %}{{ sidebar | strip_newlines }}
34 changes: 17 additions & 17 deletions _includes/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,54 @@

{% if site.theme.social.twitter %}
<li>
<a title="{{ site.theme.social.twitter }} on Twitter"
href="https://twitter.com/{{ site.theme.social.twitter }}"
<a title="{{ site.theme.social.twitter }} on Twitter"
href="https://twitter.com/{{ site.theme.social.twitter }}"
class="twitter wc-img-replace" target="_blank">Twitter</a>
</li>
</li>
{% endif %}

{% if site.theme.social.gplus %}
<li>
<a title="{{ site.theme.social.gplus }} on Google Plus"
href="https://plus.google.com/{{ site.theme.social.gplus }}"
<a title="{{ site.theme.social.gplus }} on Google Plus"
href="https://plus.google.com/{{ site.theme.social.gplus }}"
class="google wc-img-replace" target="_blank">Google</a>
</li>
{% endif %}

{% if site.theme.social.facebook %}
<li>
<a title="{{ site.theme.social.facebook }} on Facebook"
href="https://facebook.com/{{ site.theme.social.facebook }}"
<a title="{{ site.theme.social.facebook }} on Facebook"
href="https://facebook.com/{{ site.theme.social.facebook }}"
class="facebook wc-img-replace" target="_blank">Facebook</a>
</li>
{% endif %}

{% if site.theme.social.github %}
<li>
<a title="{{ site.theme.social.github }} on Github"
href="https://github.com/{{ site.theme.social.github }}"
<a title="{{ site.theme.social.github }} on Github"
href="https://github.com/{{ site.theme.social.github }}"
class="github wc-img-replace" target="_blank">Github</a>
</li>
{% endif %}
{% endif %}

{% if site.theme.social.dribble %}
<li>
<a title="{{ site.theme.social.dribble }} on Dribble"
href="https://dribbble.com/{{ site.theme.social.dribble }}"
<a title="{{ site.theme.social.dribble }} on Dribble"
href="https://dribbble.com/{{ site.theme.social.dribble }}"
class="dribble wc-img-replace" target="_blank">Dribble</a>
</li>
</li>
{% endif %}

{% if site.theme.social.pinterest %}
<li>
<a title="{{ site.theme.social.pinterest }} on Pinterest"
href="https://www.pinterest.com/{{ site.theme.social.pinterest }}"
<a title="{{ site.theme.social.pinterest }} on Pinterest"
href="https://www.pinterest.com/{{ site.theme.social.pinterest }}"
class="pinterest wc-img-replace" target="_blank">Pinterest</a>
</li>
</li>
{% endif %}

<li>
<a title="Subscribe via RSS"
<a title="Subscribe via RSS"
href="{{ '/feed.xml' | prepend: site.baseurl | prepend: site.url }}"
class="rss wc-img-replace" target="_blank">
RSS
Expand Down
Loading

0 comments on commit e605bff

Please sign in to comment.