Skip to content

Commit

Permalink
change homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
deepu105 committed Jul 16, 2019
1 parent 62b193a commit 9c6cb31
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 47 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gem 'wdm', '>= 0.1.0' if Gem.win_platform?
group :jekyll_plugins do
gem 'jekyll-feed'
gem 'jekyll-sitemap'
gem 'jekyll-paginate'
gem 'jekyll-paginate-v2'
gem 'jekyll-seo-tag'
gem 'jekyll-archives'
gem 'jekyll-gist'
Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ GEM
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-paginate (1.1.0)
jekyll-paginate-v2 (2.0.0)
jekyll (~> 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.6.1)
Expand Down Expand Up @@ -82,7 +83,7 @@ DEPENDENCIES
jekyll-archives
jekyll-feed
jekyll-gist
jekyll-paginate
jekyll-paginate-v2
jekyll-seo-tag
jekyll-sitemap
jekyll-youtube
Expand Down
20 changes: 13 additions & 7 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Technorage, where I rage about technology"
logo: 'assets/images/logo.png'
favicon: 'assets/images/logo.png'
google_analytics: 'UA-74370272-1'
# disqus: 'demowebsite'
disqus: 'deepu-tech'
# mailchimp-list: 'https://wowthemes.us11.list-manage.com/subscribe/post?u=8aeb20a530e124561927d3bd8&amp;id=8c3d2d214b'
include: ["_pages"]
permalink: /:title/
Expand All @@ -15,15 +15,15 @@ authors:
deepu:
name: Deepu
display_name: Deepu K Sasidharan
gravatar: d4udts
gravatar: 7f408bc67dc9ae3b288ee92d16d3c4c2 # md5 hash of d4udts@gmail.com
email: deepu.k.sasidharan@gmail.com
web: https://www.deepu.tech
twitter: https://twitter.com/deepu105
description: "JHipster co-lead, Java, JS, Cloud Native Advocate, Dev @ XebiaLabs, Author, Speaker, Software craftsman. Loves simple & beautiful code. bit.ly/JHIPSTER-BOOK"

# Plugins
plugins:
- jekyll-paginate
- jekyll-paginate-v2
- jekyll-sitemap
- jekyll-feed
- jekyll-seo-tag
Expand Down Expand Up @@ -53,9 +53,15 @@ jekyll-archives:
permalinks:
category: '/category/:name/'

# Pagination
paginate: 6
paginate_path: /page:num/
# Pagination Settings
pagination:
enabled: true
per_page: 6
permalink: '/page/:num/'
title: ' - page :num'
limit: 0
sort_field: 'date'
sort_reverse: true

# Other
markdown: kramdown
Expand All @@ -73,7 +79,7 @@ adsense: "disabled"
# adsense-data-ad-slot: "1363087678"

# Lazy Images ("enabled" or "disabled")
lazyimages: "disabled"
lazyimages: "enabled"

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
Expand Down
2 changes: 1 addition & 1 deletion _includes/featuredbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h4 class="card-text">{{ post.excerpt | strip_html | truncatewords:25 }}</h4>
{% endif %}
<span class="post-date">{{ post.date | date_to_string }}</span>
</span>
<span class="post-read-more"><a href="{{ site.baseurl }}/{{ post.url }}" title="Read Story"><svg class="svgIcon-use" width="25" height="25" viewbox="0 0 25 25"><path d="M19 6c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v14.66h.012c.01.103.045.204.12.285a.5.5 0 0 0 .706.03L12.5 16.85l5.662 4.126a.508.508 0 0 0 .708-.03.5.5 0 0 0 .118-.285H19V6zm-6.838 9.97L7 19.636V6c0-.55.45-1 1-1h9c.55 0 1 .45 1 1v13.637l-5.162-3.668a.49.49 0 0 0-.676 0z" fill-rule="evenodd"></path></svg></a></span>
<span class="post-read-more"><a href="{{ site.baseurl }}{{ post.url }}" title="Read Story"><svg class="svgIcon-use" width="25" height="25" viewbox="0 0 25 25"><path d="M19 6c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v14.66h.012c.01.103.045.204.12.285a.5.5 0 0 0 .706.03L12.5 16.85l5.662 4.126a.508.508 0 0 0 .708-.03.5.5 0 0 0 .118-.285H19V6zm-6.838 9.97L7 19.636V6c0-.55.45-1 1-1h9c.55 0 1 .45 1 1v13.637l-5.162-3.668a.49.49 0 0 0-.676 0z" fill-rule="evenodd"></path></svg></a></span>
<div class="clearfix"></div>
</div>
</div>
Expand Down
54 changes: 29 additions & 25 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link rel="icon" href="{{ site.baseurl }}/assets/images/logo.png">
<link rel="icon" href="{{ site.baseurl }}/assets/images/logo.png">

<title>{{ page.title }} | {{site.name}}</title>
<title>{{ page.title }} | {{site.name}}</title>

{% seo %}
{% seo %}

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

<link href="{{ site.baseurl }}/assets/css/screen.css" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="{{ site.baseurl }}/assets/css/screen.css" rel="stylesheet">

<link href="{{ site.baseurl }}/assets/css/main.css" rel="stylesheet">
<link href="{{ site.baseurl }}/assets/css/main.css" rel="stylesheet">

<script src="{{ site.baseurl }}/assets/js/jquery.min.js"></script>
<script src="{{ site.baseurl }}/assets/js/jquery.min.js"></script>

</head>

{% if jekyll.environment == 'production' %}
<!-- change your GA id in _config.yml -->
<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');
(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');
</script>
{% endif %}

Expand All @@ -49,12 +49,12 @@

<!-- Begin Logo -->
<a class="navbar-brand" href="{{ site.baseurl }}/">
<img src="{{ site.baseurl }}/{{ site.logo }}" alt="{{ site.name }}">
<img src="{{ site.baseurl }}/{{ site.logo }}" alt="{{ site.name }}">
</a>
<!-- End Logo -->

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMediumish" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<span class="navbar-toggler-icon"></span>
</button>

<div class="collapse navbar-collapse" id="navbarMediumish">
Expand All @@ -68,27 +68,31 @@
{% else %}
<li class="nav-item">
{% endif %}
<a class="nav-link" href="{{ site.baseurl }}/index.html">Blog</a>
<a class="nav-link" href="{{ site.baseurl }}/">About</a>
</li>


{% if page.url contains "/blogs/" or page.layout == "post" %}
<li class="nav-item active">
{% else %}
<li class="nav-item">
<a class="nav-link" href="{{ site.baseurl }}/about">About</a>
{% endif %}
<a class="nav-link" href="{{ site.baseurl }}/blogs/">Blog</a>
</li>

<li class="nav-item">
<a target="_blank" class="nav-link" href="https://bootstrapstarter.com/bootstrap-templates/template-mediumish-bootstrap-jekyll/"> Docs</a>
<a target="_blank" class="nav-link" href="https://bootstrapstarter.com/bootstrap-templates/template-mediumish-bootstrap-jekyll/"> Docs</a>
</li>

<li class="nav-item">
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mediumish-wordpress/"><i class="fab fa-wordpress-simple"></i> WP Version</a>
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mediumish-wordpress/"><i class="fab fa-wordpress-simple"></i> WP Version</a>
</li>

<li class="nav-item">
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mediumish-ghost/"><i class="fab fa-snapchat-ghost"></i> Ghost Version</a>
<a target="_blank" class="nav-link" href="https://www.wowthemes.net/themes/mediumish-ghost/"><i class="fab fa-snapchat-ghost"></i> Ghost Version</a>
</li>

<li class="nav-item">
<a target="_blank" class="nav-link" href="https://github.com/wowthemesnet/mediumish-theme-jekyll"><i class="fab fa-github"></i> Fork on Github</a>
<a target="_blank" class="nav-link" href="https://github.com/wowthemesnet/mediumish-theme-jekyll"><i class="fab fa-github"></i> Fork on Github</a>
</li>

{% include search-lunr.html %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ <h3 class="font-weight-bold">Summary</h3>
<!-- Prev/Next -->
<div class="row PageNavigation d-flex justify-content-between font-weight-bold">
{% if page.previous.url %}
<a class="prev d-block col-md-6" href="{{ site.baseurl }}/{{page.previous.url}}"> &laquo; {{page.previous.title}}</a>
<a class="prev d-block col-md-6" href="{{ site.baseurl }}{{page.previous.url}}"> &laquo; {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="next d-block col-md-6 text-lg-right" href="{{ site.baseurl }}/{{page.next.url}}">{{page.next.title}} &raquo; </a>
<a class="next d-block col-md-6 text-lg-right" href="{{ site.baseurl }}{{page.next.url}}">{{page.next.title}} &raquo; </a>
{% endif %}
<div class="clearfix"></div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions index.html → _pages/blogs.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
layout: default
title: Home
title: Blogs
permalink: /blogs
pagination:
enabled: true
comments: false
---

{% if page.url == "/" %}

<!-- Featured
================================================== -->
<section class="featured-posts">
Expand All @@ -26,8 +28,6 @@ <h2><span>Featured</span></h2>
</div>
</section>

{% endif %}

<!-- Posts Index
================================================== -->
<section class="recent-posts">
Expand Down
7 changes: 3 additions & 4 deletions _pages/about.md → index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
layout: page
title: Mediumish Template for Jekyll
permalink: /about
comments: true
layout: default
title: Deepu K
comments: false
---

<div class="row justify-content-between">
Expand Down

0 comments on commit 9c6cb31

Please sign in to comment.