Skip to content

Commit

Permalink
added disqus mailchip and customization
Browse files Browse the repository at this point in the history
  • Loading branch information
lavkumarv committed Jan 21, 2017
1 parent ac4ad37 commit 6740259
Show file tree
Hide file tree
Showing 28 changed files with 325 additions and 9,950 deletions.
4 changes: 4 additions & 0 deletions 404.html
@@ -0,0 +1,4 @@
---
layout: blank
title: 404
---
41 changes: 30 additions & 11 deletions _config.yml
@@ -1,25 +1,44 @@
title: Feature Blog
email: lav.kumar.dev@gmail.com
description: >
baseurl: "" # the subpath of your site, e.g. /blog
url: "localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com
# Basic settings
description: This is personal blog.
baseurl: "/"
url: "localhost:4000"
twitter_username: jekyllrb
github_username: jekyll
include: ['_pages']

# Build settings
markdown: kramdown
theme: minima
markdown: kramdown
highlighter: pygments
lsi: false
excerpt_separator: "\n\n"
gems:
- jekyll-feed
- jekyll-paginate
exclude:
- Gemfile
- Gemfile.lock

# Outputting
#permalink: /:title.html

# pagination
gems: [jekyll-paginate]
paginate: 2
paginate: 5
paginate_path: "/page:num/"

# Enable comments
comments: true

# Markdown settings
kramdown:
auto_ids: true
footnote_nr: 1
entity_output: as_char
toc_levels: 1..6
smart_quotes: lsquo,rsquo,ldquo,rdquo
enable_coderay: false

coderay:
coderay_wrap: div
coderay_line_numbers: inline
coderay_line_number_start: 1
coderay_tab_width: 4
coderay_bold_every: 10
coderay_css: style
17 changes: 17 additions & 0 deletions _data/global.yml
Expand Up @@ -7,3 +7,20 @@ footer_text: 'This text is footer text. Footer text goes here.'
# Admin Settings
admin_name: 'Lav Vishwakarma'
admin_email: 'lav.kumar.dev@gmail.com'

#####################################################################
#About Page
author_name: 'Lav Kumar Vishwakarma'
author_profession: 'Full Stack Developer'
author_description: 'More and more people are using mobile phones where screen real estate is a commodity. Even on desktops and tablets applications that get out of the way and let users focus on content feel better. There’s more room to breathe; your eyes
don’t feel like squinting. How can we improve on the fixed header pattern?'
author_image: '/images/author.jpg'

# social proiles
facebook: ''
twitter: ''
linkedin: ''
instagram: ''
github: ''
google-plus: ''
#####################################################################
3 changes: 1 addition & 2 deletions _data/nav.yml
@@ -1,4 +1,3 @@
main:
- { url: '/', text: 'Home' }
- { url: '/about', text: 'About' }
- { url: '/blog', text: 'Blog' }
- { url: '/https://github.com/lavkumarv', text: 'Github' }
16 changes: 8 additions & 8 deletions _includes/footer.html
Expand Up @@ -4,24 +4,24 @@
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="copyright">
© 2017, Feature blog, All rights reserved
© 2017, {{ site.data.global.title }}, All rights reserved
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="design">
<a href="#">Lav kumar vishwakarma </a> | <a target="_blank" href="#">Design & Develop by me</a>
<a href="#"> {{ site.admin_name }} </a> | <a target="_blank" href="https://github.com/lavkumarv">Design & Develop by Lav Vishwakarma</a>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap 's JavaScript plugins) -->

<!-- ALl js file links -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://localhost:4000/js/bootstrap.min.js"></script>
<script src="http://localhost:4000/js/custom.js"></script>
<script src="http://localhost:4000/js/lunr.min.js"></script>
<script src="http://localhost:4000/js/search.js"></script>
<script src="{{site.url}}/js/bootstrap.min.js"></script>
<script src="{{site.url}}/js/custom.js"></script>
<script src="{{site.url}}/js/lunr.min.js"></script>
<script src="{{site.url}}/js/search.js"></script>
</body>

</html>
158 changes: 86 additions & 72 deletions _includes/header.html
@@ -1,76 +1,93 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>This is my first blog</title>
<title>{% if page.title %}{{ page.title }} ♥ {{ site.data.global.title }}{% elsif post.title %}{{ post.title }} ♥ {{ site.data.global.title }}{% else %}{{ site.data.global.title }} ♥ {{ site.data.global.description }}{% endif %}</title>

<!-- facebook Open Graph Metadatas -->
<meta content="your_facebook_app_id" property="fb:app_id">
<meta content="{{ site.title }}" property="og:site_name">
{% if page.title %}
<meta content="{{ page.title }}" property="og:title">
{% else %}
<meta content="{{ site.title }}" property="og:title">
{% endif %}
{% if page.title %}
<meta content="article" property="og:type">
{% else %}
<meta content="website" property="og:type">
{% endif %}
{% if page.description %}
<meta content="{{ page.description }}" property="og:description">
{% else %}
<meta content="{{ site.description }}" property="og:description">
{% endif %}
{% if page.url %}
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{% endif %}
{% if page.date %}
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
<meta content="{{ site.url }}/about/" property="article:author">
{% endif %}
{% if page.image %}
<meta content="/img/posts/{{ page.image }}" property="og:image">
{% else %}
<meta content="/img/logo-high-resolution.png" property="og:image">
{% endif %}
{% if page.categories %}
{% for category in page.categories limit:1 %}
<meta content="{{ category }}" property="article:section">
{% endfor %}
{% endif %}
{% if page.tags %}
{% for tag in page.tags %}
<meta content="{{ tag }}" property="article:tag">
{% endfor %}
{% endif %}

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@vdaubry">
<meta name="twitter:creator" content="@vdaubry">
{% if page.title %}
<meta name="twitter:title" content="{{ page.title }}">
{% else %}
<meta name="twitter:title" content="{{ site.title }}">
{% endif %}
{% if page.url %}
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
{% endif %}
{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
{% else %}
<meta name="twitter:description" content="{{ site.description }}">
{% endif %}
{% if page.header-img %}
<meta name="twitter:image:src" content="{{ site.url }}/{{ page.header-img }}">
{% endif %}
<meta content="your_facebook_app_id" property="fb:app_id">
<meta content="{{ site.title }}" property="og:site_name">

{% if page.title %}
<meta content="{{ page.title }}" property="og:title">
{% else %}
<meta content="{{ site.title }}" property="og:title">
{% endif %}

{% if page.title %}
<meta content="article" property="og:type">
{% else %}
<meta content="website" property="og:type">
{% endif %}

{% if page.description %}
<meta content="{{ page.description }}" property="og:description">
{% else %}
<meta content="{{ site.description }}" property="og:description">
{% endif %}

{% if page.url %}
<meta content="{{ site.url }}{{ page.url }}" property="og:url">
{% endif %}

{% if page.date %}
<meta content="{{ page.date | date_to_xmlschema }}" property="article:published_time">
<meta content="{{ site.url }}/about/" property="article:author">
{% endif %}

{% if page.image %}
<meta content="/images/{{ page.image }}" property="og:image">
{% else %}
<meta content="/images/default" property="og:image">
{% endif %}

{% if page.categories %}
{% for category in page.categories limit:1 %}
<meta content="{{ category }}" property="article:section">
{% endfor %}
{% endif %}

{% if page.tags %}
{% for tag in page.tags %}
<meta content="{{ tag }}" property="article:tag">
{% endfor %}
{% endif %}


<!-- Twitter meta tags -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@vdaubry">
<meta name="twitter:creator" content="@vdaubry">
{% if page.title %}
<meta name="twitter:title" content="{{ page.title }}">
{% else %}
<meta name="twitter:title" content="{{ site.title }}">
{% endif %}

{% if page.url %}
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}">
{% endif %}

{% if page.description %}
<meta name="twitter:description" content="{{ page.description }}">
{% else %}
<meta name="twitter:description" content="{{ site.description }}">
{% endif %}

{% if page.image %}
<meta name="twitter:image:src" content="{{ site.url }}/{{ page.image }}">
{% else %}
<meta content="/images/default" name="twitter:image:src">
{% endif %}

<!-- Bootstrap -->
<link href="http://localhost:4000/css/bootstrap.css" rel="stylesheet">
<link href="http://localhost:4000/css/custom.css" rel="stylesheet">
<link href="{{ site.url }}/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ site.url }}/css/custom.css" rel="stylesheet">

<!-- Begin MailChimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Expand All @@ -84,22 +101,22 @@
<body>
<nav class="navbar navbar-default nav-down bg-color">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->

<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand nav-link" href="#">Feature Blog</a>
<a class="navbar-brand nav-link" href="/">{{ site.data.global.title }}</a>
</div>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" class="nav-link">About</a></li>
<li><a href="#" class="nav-link">GitHub</a></li>
{% for item in site.data.nav.main %}
<li><a href="{{ item.url }}">{{ item.text }}</a></li>
{% endfor %}
<li>
<div class="col-sm-3 col-md-3">
<form class="navbar-form" role="search" action="get" id="site_search">
Expand All @@ -114,9 +131,6 @@
</div>
</li>
</ul>

</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
22 changes: 11 additions & 11 deletions _includes/pagination.html
@@ -1,23 +1,23 @@
<div class="container">
<ul class="pagination">

{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">«</a></li>
{% endif %}
{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">«</a></li>
{% endif %}

{% for page in (1..paginator.total_pages) %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active"><a href="#">{{ page }} <span class="sr-only">(current)</span></a></li>
<li class="active"><a href="#">{{ page }} <span class="sr-only">(current)</span></a></li>
{% elsif page == 1 %}
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a></li>
<li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a></li>
{% else %}
<li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
<li><a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}

{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">»</a></li>
{% endif %}
{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">»</a></li>
{% endif %}

</ul>
</div>

0 comments on commit 6740259

Please sign in to comment.