Skip to content

Commit

Permalink
added google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sujaykundu777 committed Jul 24, 2019
1 parent e09882c commit 41d40b4
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 11 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@

[![Gem Version](https://badge.fury.io/rb/devlopr.svg)](https://badge.fury.io/rb/devlopr)
[![Netlify Status](https://api.netlify.com/api/v1/badges/4232ac2b-63e0-4c78-92e0-e95aad5ab8c3/deploy-status)](https://app.netlify.com/sites/devlopr/deploys)
![](https://ruby-gem-downloads-badge.herokuapp.com/devlopr?type=total&color=brightgreen&style=plastic)

## Creating a new blog using devlopr jekyll theme:

Follow this [Guide to Get Started](https://sujaykundu.com/jekyll/2019/06/22/building-a-blog-using-devlopr-jekyll-theme.html)

![Screenshot 1](https://raw.githubusercontent.com/sujaykundu777/devlopr-starter/master/assets/img/screenshot1.png)

![Screenshot 2](https://raw.githubusercontent.com/sujaykundu777/devlopr-starter/master/assets/img/screenshot2.png)

![Screenshot 3](https://raw.githubusercontent.com/sujaykundu777/devlopr-starter/master/assets/img/screenshot3.png)

![Screenshot 4](https://raw.githubusercontent.com/sujaykundu777/devlopr-starter/master/assets/img/screenshot4.png)



Expand Down
8 changes: 7 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ flickr_username: yourusername
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-seo-tag
- jekyll-seo-tag
- jekyll-analytics

jekyll_analytics:
GoogleAnalytics: # Add, if you want to track with Google Analytics
id: UA-46783401-10 # Required - replace with your tracking id
anonymizeIp: false # Optional - Default: false - set to true for anonymized tracking
8 changes: 8 additions & 0 deletions _includes/ads.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Google Adsense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-7259836434848202",
enable_page_level_ads: true
});
</script>
2 changes: 1 addition & 1 deletion _includes/blog_sidebar.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="col-lg-4">
<div class="card">
<div class="card-header"> About {{ site.author }} </div>
<div class="card-header"> About </div>
<div class="card-body text-dark">
<!-- Your Bio -->
<p> {{ site.author_bio }}</p>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/about_me.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="row">
<div class="col-lg-8">
<div class="card">
<h1 class="card-title">About Me</h1>
<h1 class="card-title">About</h1>
{%- include author_bio.html -%}
</div>
<div class="card">
Expand Down
2 changes: 1 addition & 1 deletion _layouts/contact_me.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<div class="card">
<h1 class="card-title"> Contact Me</h1>
<h1 class="card-title"> Contact</h1>

{%- include contact_me_form.html -%}
</div>
2 changes: 2 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

{%- include header.html -%}

{%- include ads.html -%}

<div class="col-lg-12">

{{ content }}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/my_projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

<div class="card">
<h1 class="card-title"> My Projects</h1>
<h1 class="card-title">Projects</h1>

<br />
{%- include author_projects.html -%}
Expand Down
2 changes: 1 addition & 1 deletion contact.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Contact Me
title: Contact
layout: contact_me
permalink: /contact
---
12 changes: 7 additions & 5 deletions devlopr.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

Gem::Specification.new do |spec|
spec.name = "devlopr"
spec.version = "0.3.3"
spec.version = "0.3.5"
spec.authors = ["Sujay Kundu"]
spec.email = ["[email protected]"]

spec.summary = %q{ A Theme built for developers }
spec.homepage = "https://github.com/sujaykundu777/devlopr-jekyll"
spec.license = "MIT"

spec.metadata["plugin_type"] = "theme"

spec.files = `git ls-files -z`.split("\x0").select { |f|
f.match(%r!^(assets|_(includes|layouts|sass)/|(LICENSE|README)((\.(txt|md|markdown)|$)))!i) }


spec.add_runtime_dependency "jekyll-sitemap", '~> 1.2.0'
spec.add_runtime_dependency "jekyll-feed", '~> 0.11.0'
spec.add_runtime_dependency "jekyll-seo-tag", '~> 2.5.0'
spec.add_runtime_dependency "jekyll-sitemap", '~> 1.3', '>= 1.3.1'
spec.add_runtime_dependency "jekyll-feed", '~> 0.12.1'
spec.add_runtime_dependency "jekyll-seo-tag", '~> 2.6', '>= 2.6.1'
spec.add_runtime_dependency "jekyll-analytics", '~> 0.1.11'

spec.add_runtime_dependency "jekyll", "~> 3.8.5"
spec.add_development_dependency "bundler", '~> 2.0', '>= 2.0.1'
Expand Down
2 changes: 2 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ permalink: /

[![Gem Version](https://badge.fury.io/rb/devlopr.svg)](https://badge.fury.io/rb/devlopr)
[![Netlify Status](https://api.netlify.com/api/v1/badges/4232ac2b-63e0-4c78-92e0-e95aad5ab8c3/deploy-status)](https://app.netlify.com/sites/devlopr/deploys)
![](https://ruby-gem-downloads-badge.herokuapp.com/devlopr?type=total&color=brightgreen&style=plastic)


Anyone can use devlopr jekyll theme to build a personal <strong>Portfolio + Blog Type of Website like this one.</strong>,and that too hosted freely on <b>[Github Pages](https://pages.github.com)</b> or <b>[Netlify](https://netlify.com) </b>. So Get Your Free and Fast Static Website Today using devlopr-jekyll :D

Expand Down

0 comments on commit 41d40b4

Please sign in to comment.