Skip to content

Commit c581276

Browse files
committed
Remove deprecated services: Disqus comments, Google Analytics, Facebook JS
1 parent 70198e2 commit c581276

4 files changed

Lines changed: 9 additions & 67 deletions

File tree

_includes/css/ga.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

_includes/css/icons.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@
1818
-webkit-font-smoothing: antialiased;
1919
}
2020

21-
.icon.facebook { color: #a1b6d5; }
2221
.icon.twitter { color: #82cbe4; }
2322
.icon.pinterest { color: #e58f93; }
2423
.icon.mail { color: #999; }
2524
.icon.feed { color: #f5b991; }
2625

27-
.icon.facebook:hover { color: #436eac !important; }
2826
.icon.twitter:hover { color: #0598c9 !important; }
2927
.icon.pinterest:hover { color: #cb2027 !important; }
3028
.icon.mail:hover { color: #343434 !important; }

_layouts/default.html

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<!DOCTYPE html>
2-
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
3-
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
4-
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
5-
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
2+
<html class="no-js">
63
<head>
74
<meta charset="utf-8">
8-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
5+
96
<title>{% if page.title %} {{ page.title }} - {% endif %} Mad about code</title>
107
<meta name="description" content="Ramblings of Ajeesh Mohan">
118
<meta name="viewport" content="width=device-width">
@@ -14,24 +11,12 @@
1411
{% if page.title %}<meta property="og:title" content="{{ title }}"/>{% endif %}
1512
{% if page.layout == 'post' %}<meta property="og:type" content="article"/>
1613
{% else %}<meta property="og:type" content="blog"/>{% endif %}
17-
{% if page.url %}<meta property="og:url" content="http://madaboutcode.com{{ page.url }}"/>{% endif %}
14+
{% if page.url %}<meta property="og:url" content="https://madaboutcode.com{{ page.url }}"/>{% endif %}
1815
<link rel="stylesheet" href="/css/all.css">
19-
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
20-
<link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
21-
<link href="/atom.xml" rel="alternate" title="Atom feed" type="application/atom+xml" />
22-
<script type="text/javascript">
23-
var _gaq = _gaq || [];
24-
_gaq.push(['_setAccount', 'UA-12468390-1']);
25-
_gaq.push(['_setSiteSpeedSampleRate', 90]);
26-
_gaq.push(['_trackPageview']);
27-
28-
(function() {
29-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
30-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
31-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
32-
})();
33-
</script>
34-
</head>
16+
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
17+
<link href='https://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'>
18+
<link href="/atom.xml" rel="alternate" title="Atom feed" type="application/atom+xml" />
19+
</head>
3520
<body {% if page.templatename %} id="{{ page.templatename }}" {% endif %}>
3621
<header id="page-header" class="clearfix">
3722
<h1 id="logo">mad about code</h1>
@@ -41,14 +26,14 @@ <h3 id="subtext">Ramblings of Ajeesh Mohan</h3>
4126
<ul id="primary-nav">
4227
<li><a href="/">blog</a></li>
4328
<li><a href="https://github.com/madaboutcode">github</a></li>
44-
<li><a href="https://twitter.com/ajeeshm">twitter</a></li>
29+
<li><a href="https://x.com/ajeeshm">x</a></li>
4530
</ul>
4631
</nav>
4732
</header>
4833
{{ content }}
4934
<footer id="page-footer">
5035
<section id="share">
51-
<a class="icon twitter" title="Follow me on twitter" href="https://twitter.com/ajeeshm">"</a>
36+
<a class="icon twitter" title="Follow me on X" href="https://x.com/ajeeshm">"</a>
5237
<a class="icon feed" title="Subscribe to this blog" href="/atom.xml" target="_blank">$</a>
5338
</section>
5439
<section id="copyright">&copy; Ajeesh {{ 'now' | date: "%Y" }}</section>

_layouts/post.html

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,5 @@ <h1><a href="{{ page.url }}">{{ page.title }}</a></h1>
2222
</aside>
2323
</header>
2424
{{ content }}
25-
<section id="comments">
26-
<div id="disqus_thread"></div>
27-
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
28-
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
29-
</section>
3025
</article>
3126
</div>
32-
33-
<script type="text/javascript">
34-
function disqus_config() {
35-
this.callbacks.onNewComment = [
36-
function(comment) {
37-
_gaq.push(['_trackEvent', 'UserActivity', 'NewComment', '{{ page.id }}']);
38-
}
39-
];
40-
}
41-
var disqus_shortname = 'madaboutcode';
42-
var disqus_identifier = '{{ page.id }}';
43-
(function() {
44-
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
45-
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
46-
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
47-
})();
48-
</script>
49-
50-
<div id="fb-root"></div>
51-
<script>(function(d, s, id) {
52-
var js, fjs = d.getElementsByTagName(s)[0];
53-
if (d.getElementById(id)) return;
54-
js = d.createElement(s); js.id = id;
55-
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
56-
fjs.parentNode.insertBefore(js, fjs);
57-
}(document, 'script', 'facebook-jssdk'));</script>

0 commit comments

Comments
 (0)