From 86e7843f51f1624f899e974a75e1fd3b78a582a2 Mon Sep 17 00:00:00 2001 From: Sujay Kundu Date: Sun, 28 Jul 2019 01:14:14 +0530 Subject: [PATCH] added tags --- _config.yml | 6 ++-- _includes/blog_sidebar.html | 6 ++++ _includes/blog_tags.html | 8 ++++++ ...05-20-build-a-blog-using-devlopr-jekyll.md | 3 ++ ...g-using-devlopr-jekyll-and-github-pages.md | 3 ++ categories/all.md | 12 ++++---- categories/guides.md | 3 +- categories/personal.md | 12 -------- categories/work.md | 12 -------- devlopr.gemspec | 2 +- tags/all.md | 28 +++++++++++++++++++ 11 files changed, 61 insertions(+), 34 deletions(-) create mode 100644 _includes/blog_tags.html delete mode 100644 categories/personal.md delete mode 100644 categories/work.md create mode 100644 tags/all.md diff --git a/_config.yml b/_config.yml index 8438ebd9b..36374840f 100644 --- a/_config.yml +++ b/_config.yml @@ -32,7 +32,8 @@ plugins: - jekyll-seo-tag - jekyll-analytics - jekyll-algolia - - jekyll-menus + - jekyll-menus + # code highlighter highlighter: rouge @@ -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 \ No newline at end of file + search_only_api_key: 58ffdd7cd6c45ec1577a7fcd789b1b9a + diff --git a/_includes/blog_sidebar.html b/_includes/blog_sidebar.html index c9645248d..5403bf52a 100644 --- a/_includes/blog_sidebar.html +++ b/_includes/blog_sidebar.html @@ -15,4 +15,10 @@ {%- include blog_categories.html -%} +
+
Tags
+
+ {%- include blog_tags.html -%} +
+
\ No newline at end of file diff --git a/_includes/blog_tags.html b/_includes/blog_tags.html new file mode 100644 index 000000000..f38714060 --- /dev/null +++ b/_includes/blog_tags.html @@ -0,0 +1,8 @@ +{% for tag in site.tags %} {% capture tag_name %}{{ tag | first }}{% endcapture %} +
+
  • + {{ tag_name }} +
  • + + +{% endfor %} \ No newline at end of file diff --git a/_posts/2016-05-20-build-a-blog-using-devlopr-jekyll.md b/_posts/2016-05-20-build-a-blog-using-devlopr-jekyll.md index f0b3ef46a..f6fbe3060 100644 --- a/_posts/2016-05-20-build-a-blog-using-devlopr-jekyll.md +++ b/_posts/2016-05-20-build-a-blog-using-devlopr-jekyll.md @@ -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 --- diff --git a/_posts/2016-05-21-deploy-blog-using-devlopr-jekyll-and-github-pages.md b/_posts/2016-05-21-deploy-blog-using-devlopr-jekyll-and-github-pages.md index ff2f5cd7d..1e205b93d 100644 --- a/_posts/2016-05-21-deploy-blog-using-devlopr-jekyll-and-github-pages.md +++ b/_posts/2016-05-21-deploy-blog-using-devlopr-jekyll-and-github-pages.md @@ -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 --- diff --git a/categories/all.md b/categories/all.md index b74d43766..787fdcc9c 100644 --- a/categories/all.md +++ b/categories/all.md @@ -7,13 +7,13 @@ permalink: /blog/categories/

    {{ page.title }}

    -{% for tag in site.categories %} +{% for category in site.categories %}
    - {% capture tag_name %}{{ tag | first }}{% endcapture %} -
    -

    {{ tag_name }}

    - - {% for post in site.tags[tag_name] %} + {% capture category_name %}{{ category | first }}{% endcapture %} +
    +

    {{ category_name }}

    + + {% for post in site.categories[category_name] %} diff --git a/categories/guides.md b/categories/guides.md index 4af8a2249..23dc139ce 100644 --- a/categories/guides.md +++ b/categories/guides.md @@ -1,9 +1,10 @@ --- layout: page +title: Guides permalink: /blog/categories/guides --- -

    Posts by Category : {{ page.title }}

    +
    Posts by Category : {{ page.title }}
    {% for post in site.categories.guides %} diff --git a/categories/personal.md b/categories/personal.md deleted file mode 100644 index 5ab6b9b36..000000000 --- a/categories/personal.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -layout: page -permalink: /blog/categories/personal ---- - -

    Posts by Category : {{ page.title }}

    - -
    -{% for post in site.categories.personal %} -
  • {{ post.date | date_to_string }}   {{ post.title }}
  • -{% endfor %} -
    \ No newline at end of file diff --git a/categories/work.md b/categories/work.md deleted file mode 100644 index 56556b49f..000000000 --- a/categories/work.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -layout: page -permalink: /blog/categories/work ---- - -

    Posts by Category : {{ page.title }}

    - -
    -{% for post in site.categories.work %} -
  • {{ post.date | date_to_string }}   {{ post.title }}
  • -{% endfor %} -
    \ No newline at end of file diff --git a/devlopr.gemspec b/devlopr.gemspec index ca3a48d34..7ee5845bc 100644 --- a/devlopr.gemspec +++ b/devlopr.gemspec @@ -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" diff --git a/tags/all.md b/tags/all.md new file mode 100644 index 000000000..47108567e --- /dev/null +++ b/tags/all.md @@ -0,0 +1,28 @@ +--- +layout: page +permalink: /blog/tags/ +--- + + + +

    {{ page.title }}

    + +
    +{% for tag in site.tags %} +
    + {% capture tag_name %}{{ tag | first }}{% endcapture %} +
    +

    {{ tag_name }}

    + + {% for post in site.tags[tag_name] %} + + + {% endfor %} + +
    +{% endfor %} +
    + +