Skip to content

Commit

Permalink
Merge pull request sujaykundu777#63 from sujaykundu777/dev-july
Browse files Browse the repository at this point in the history
added seo and cms changes
  • Loading branch information
sujaykundu777 authored Jul 31, 2020
2 parents 3b3d82a + 0635f98 commit 5cabf29
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 36 deletions.
26 changes: 13 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ GEM
algolia_html_extractor (2.6.2)
json (~> 2.0)
nokogiri (~> 1.10.4)
algoliasearch (1.27.2)
algoliasearch (1.27.3)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
backports (3.17.2)
backports (3.18.1)
colorator (1.1.0)
concurrent-ruby (1.1.6)
devlopr (0.4.5)
Expand All @@ -26,13 +26,13 @@ GEM
eventmachine (1.2.7-x64-mingw32)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
ffi (1.12.2)
ffi (1.12.2-x64-mingw32)
ffi (1.13.1)
ffi (1.13.1-x64-mingw32)
filesize (0.2.0)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
httpclient (2.8.3)
i18n (1.8.2)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
jekyll (4.0.1)
addressable (~> 2.4)
Expand Down Expand Up @@ -80,8 +80,8 @@ GEM
jgd (1.12)
jekyll (>= 1.5.1)
trollop (= 2.9.9)
json (2.3.0)
kramdown (2.2.1)
json (2.3.1)
kramdown (2.3.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
Expand All @@ -91,12 +91,12 @@ GEM
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.4.0)
multi_json (1.14.1)
multi_json (1.15.0)
multipart-post (2.1.1)
nio4r (2.5.2)
nokogiri (1.10.9)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
nokogiri (1.10.9-x64-mingw32)
nokogiri (1.10.10-x64-mingw32)
mini_portile2 (~> 2.4.0)
octokit (4.18.0)
faraday (>= 0.9)
Expand All @@ -121,11 +121,11 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.4)
rouge (3.19.0)
rouge (3.21.0)
safe_yaml (1.0.5)
sassc (2.3.0)
sassc (2.4.0)
ffi (~> 1.9)
sassc (2.3.0-x64-mingw32)
sassc (2.4.0-x64-mingw32)
ffi (~> 1.9)
sawyer (0.8.2)
addressable (>= 2.3.5)
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ urls:
author_logo: profile.png
author: John Doe
author_bio: Hi, my name is John Doe. I built this site using devlopr-jekyll :D
author_email: "johndoe@gmail.com"
author_email: "mail@sujaykundu.com"
author_location: India
author_website_url: "http://johndoe.com"
author_website_url: "https://sujaykundu.com"
typewrite-text: devlopr is a jekyll theme built for developers. You can edit this in _config.yml file

author_work_experiences:
Expand Down
2 changes: 1 addition & 1 deletion _includes/blog_post_article.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h4 class="post-meta">{{ page.summary }}</h4>
<p class="post-summary">
Posted by : {% if page.author %}
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">{{ page.author }}</span> </span
<span itemprop="name"><a href="{{site.author_website_url}}">{{ page.author }}</a></span> </span
>{% endif %} at
<time datetime="{{ page.date }}" itemprop="datePublished"
>{{ page.date | date: "%b %-d, %Y" }}</time
Expand Down
28 changes: 13 additions & 15 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<head>
<meta charset="utf-8" />
<title>
{% if {page.title %}{{ page.title }}{% else %}{{ site.title }} - {{
{% if {page.title %}{{ page.title }} -{{site.title}}{% else %}{{ site.title }} - {{
site.subtitle }}{% endif %}
</title>
<meta http-equip="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="{% if {page.title %}{{ page.title }}{% else %}{{ site.description }}{% endif %}"
/>
<meta
name="keywords"
content="{% if page.title %}{{ page.title }}, {{ site.title }}, {% for categ in page.categories %}{{ categ }}{% if forloop.last == false %}, {% endif %}{% endfor %}{% else %}{{ site.title }}, {% for category in site.categories %}{% capture categories_slug %}{{ category | first }}{% endcapture %}{% for categ in categories_slug %}{{ categ }}{% endfor %}{% if forloop.last == false %}, {% endif %}{% endfor %}{% endif %}"
/>
{% if page.summary %}
<meta name="description" content="{{ page.summary | escape }}- {% if {page.title %}{{ page.title }}{% else %}{{ site.description }}{% endif %}">
{% endif %}
<meta name="keywords" content="{% if page.title %}{{ page.title }}, {{ site.title }}, {% for categ in page.categories %}{{ categ }}{% if forloop.last == false %}, {% endif %}{% endfor %}{% else %}{{ site.title }}, {% for category in site.categories %}{% capture categories_slug %}{{ category | first }}{% endcapture %}{% for categ in categories_slug %}{{ categ }}{% endfor %}{% if forloop.last == false %}, {% endif %}{% endfor %}{% endif %},{{ page.keywords | escape }}"/>

<link
rel="alternate"
type="application/rss+xml"
Expand All @@ -35,15 +32,15 @@
{% else %}
<meta content="{{ site.description }}" property="og:description" />
{% endif %} {% if page.url %}
<meta content="{{ site.url }}{{site.baseurl}}{{ page.url }}" property="og: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 }}{{site.baseurl}}/about/" property="article:author" />
<meta content="{{ site.url }}/about/" property="article:author" />
{% endif %} {% if page.thumbnail %}
<meta content="{{ site.url }}{{site.baseurl}}{{ page.thumbnail }}" property="og:image" />
<meta content="{{ site.url }}{{ page.thumbnail }}" property="og:image" />
{% endif %} {% if page.categories %} {% for category in page.categories
limit:1 %}
<meta content="{{ category }}" property="article:section" />
Expand All @@ -63,15 +60,15 @@
{% endif %}

{% if page.url %}
<meta name="twitter:url" content="{{ site.url }}{{site.baseurl}}{{ page.url }}" />
<meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
{% endif %} {% if page.summary %}
<meta name="twitter:description" content="{{ page.summary }}" />
{% else %}
<meta name="twitter:description" content="{{ site.description }}" />
{% endif %} {% if page.header-img %}
<meta
name="twitter:image:src"
content="{{ site.url }}{{site.baseurl}}{{ page.thumbnail }}"
content="{{ site.url }}{{ page.thumbnail }}"
/>
{% endif %}

Expand Down Expand Up @@ -146,7 +143,8 @@
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"
></script>

<!-- (you can remove the below scripts but do buy me a coffee to show some support :) -->
<!-- Maker widget -->
<script>
(function(d, h, m) {
var js,
Expand Down
4 changes: 3 additions & 1 deletion _posts/2019-02-04-welcome-to-jekyll.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
layout: post
title: "Welcome to devlopr !"
title: "Welcome to devlopr jekyll !"
summary: Hello World ! This is a sample post
author: John Doe
date: '2019-05-22 14:35:23 +0530'
category: jekyll
thumbnail: /assets/img/posts/code.jpg
keywords: devlopr jekyll, how to use devlopr, devlopr, how to use devlopr-jekyll, devlopr-jekyll tutorial,best jekyll themes
permalink: /blog/welcome-to-devlopr-jekyll
---
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.

Expand Down
2 changes: 2 additions & 0 deletions _posts/2020-05-23-netlify-cms-created-this-article.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ date: 2020-05-23T09:52:20.613Z
thumbnail: /assets/img/posts/hello.jpg
category: jekyll
summary: Demo Content using Netlify CMS
keywords: using netlify cms with devlopr-jekyll, devlopr jekyll netlify cms, how to use netlify cms
permalink: /blog/using-netlify-cms
---
# Hello World ,

Expand Down
31 changes: 27 additions & 4 deletions admin/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
backend:
name: git-gateway
name: github
repo: sujaykundu777/sujaykundu777.github.io
branch: master
site_domain: agitated-northcutt-53b578.netlify.app

media_folder: "assets/img/posts" # Media files will be stored in the repo under images/uploads
public_folder: "/assets/img/posts" # The src attribute for uploaded media will begin with /images/uploads

publish_mode: editorial_workflow # To manage status (Edit, Draft, Publish)
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Blog" # Used in the UI
Expand All @@ -16,7 +18,28 @@ collections:
- {label: "Author", name: "author", widget: "string"}
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Featured Image", name: "thumbnail", widget: "image"}
- {label: "Featured Image", name: "thumbnail-img", widget: "image"}
- {label: "Category", name: "category", widget: "string", default: "jekyll"}
- {label: "Summary", name: "summary", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Keywords", name: "keywords", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
- {label: "Thumbnail", name: "thumbnail", widget: "string"}
- {label: "Permalink", name: "permalink", widget: "string"}
- name: "page"
label: "Page"
folder: "_pages"
create: true
slug: ".md"
fields:
- {label: "Layout", name: "layout", widget: "select", options: ["about", "blog", "contact", "gallery", "page", "product"]}
- {label: "Title", name: "title", widget: "string"}
- {label: "Permalink", name: "permalink", widget: "hidden", default: "//"}
- {label: "Body", name: "body", widget: "markdown", required: false}
- name: "layouts"
label: "Layouts"
folder: "_layouts"
extension: "html"
fields:
- {label: "Layout", name: "layout", widget: "hidden", default: "default"}
- {label: "Title", name: "title", widget: "string", required: false}
- {label: "Body", name: "body", widget: "markdown", required: false}

0 comments on commit 5cabf29

Please sign in to comment.