Skip to content

Commit

Permalink
added tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed Jul 27, 2019
1 parent f5ce376 commit 86e7843
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 34 deletions.
6 changes: 4 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ plugins:
- jekyll-seo-tag
- jekyll-analytics
- jekyll-algolia
- jekyll-menus
- jekyll-menus


# code highlighter
highlighter: rouge
Expand All @@ -59,4 +60,5 @@ algolia:
index_name: blog_posts # You can replace that with whatever name you want
files_to_exclude: []
nodes_to_index: 'article'
search_only_api_key: 58ffdd7cd6c45ec1577a7fcd789b1b9a
search_only_api_key: 58ffdd7cd6c45ec1577a7fcd789b1b9a

6 changes: 6 additions & 0 deletions _includes/blog_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@
{%- include blog_categories.html -%}
</div>
</div>
<div class="card">
<div class="card-header">Tags </div>
<div class="card-body text-dark">
{%- include blog_tags.html -%}
</div>
</div>
</div>
8 changes: 8 additions & 0 deletions _includes/blog_tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% for tag in site.tags %} {% capture tag_name %}{{ tag | first }}{% endcapture %}
<div id="#{{ tag_name | slugize }}"></div>
<li class="tag-head">
<a href="{{ site.baseurl }}/blog/categories/{{ tag_name }}">{{ tag_name }}</a>
</li>
<a name="{{ tag_name | slugize }}"></a>

{% endfor %}
3 changes: 3 additions & 0 deletions _posts/2016-05-20-build-a-blog-using-devlopr-jekyll.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ title: Create a blog using devlopr jekyll
author: Sujay Kundu
date: '2017-11-19 14:35:23 +0530'
category: guides
tag:
- jekyll
- blogging
summary: Getting Started - Build your blog using devlopr jekyll
thumbnail: /assets/img/posts/devlopr.png
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ title: Deploy devlopr jekyll Blog using Github Pages and Travis
author: Sujay Kundu
date: '2017-11-19 14:35:23 +0530'
category: guides
tag:
- jekyll
- blogging
summary: Deployment Guide for devlopr-jekyll blog using Github Pages and Travis CI
thumbnail: /assets/img/posts/deploy-using-github-pages-and-travis.png
---
Expand Down
12 changes: 6 additions & 6 deletions categories/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ permalink: /blog/categories/
<h3> {{ page.title }} </h3>

<div id="categories">
{% for tag in site.categories %}
{% for category in site.categories %}
<div class="category-box" >
{% capture tag_name %}{{ tag | first }}{% endcapture %}
<div id="#{{ tag_name | slugize }}"></div>
<h4 class="tag-head"><a href="{{ site.baseurl }}/blog/categories/{{ tag_name }}">{{ tag_name }}</a></h4>
<a name="{{ tag_name | slugize }}"></a>
{% for post in site.tags[tag_name] %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<div id="#{{ category_name | slugize }}"></div>
<h4 class="category-head"><a href="{{ site.baseurl }}/blog/categories/{{ category_name }}">{{ category_name }}</a></h4>
<a name="{{ category_name | slugize }}"></a>
{% for post in site.categories[category_name] %}
<article class="center">
<h6 ><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h6>
</article>
Expand Down
3 changes: 2 additions & 1 deletion categories/guides.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
layout: page
title: Guides
permalink: /blog/categories/guides
---

<h3> Posts by Category : {{ page.title }} </h3>
<h5> Posts by Category : {{ page.title }} </h5>

<div class="card">
{% for post in site.categories.guides %}
Expand Down
12 changes: 0 additions & 12 deletions categories/personal.md

This file was deleted.

12 changes: 0 additions & 12 deletions categories/work.md

This file was deleted.

2 changes: 1 addition & 1 deletion devlopr.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "jekyll-analytics", '~> 0.1.11'
spec.add_runtime_dependency "jekyll-algolia", '~> 1.4', '>= 1.4.11'
spec.add_runtime_dependency "jekyll-menus", '~> 0.6.0'

spec.add_runtime_dependency "jekyll", "~> 3.8.5"
spec.add_development_dependency "bundler", '~> 2.0', '>= 2.0.1'
spec.add_development_dependency "rake", "~> 12.0"
Expand Down
28 changes: 28 additions & 0 deletions tags/all.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: page
permalink: /blog/tags/
---



<h3> {{ page.title }} </h3>

<div id="categories">
{% for tag in site.tags %}
<div class="category-box" >
{% capture tag_name %}{{ tag | first }}{% endcapture %}
<div id="#{{ tag_name | slugize }}"></div>
<h4 class="tag-head"><a href="{{ site.baseurl }}/blog/categories/{{ tag_name }}">{{ tag_name }}</a></h4>
<a name="{{ tag_name | slugize }}"></a>
{% for post in site.tags[tag_name] %}
<article class="center">
<h6 ><a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a></h6>
</article>

{% endfor %}

</div>
{% endfor %}
</div>


0 comments on commit 86e7843

Please sign in to comment.