Skip to content

Commit

Permalink
adding jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Osuri committed Aug 23, 2011
1 parent 91965ae commit 858170f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
13 changes: 13 additions & 0 deletions _layouts/default.html
Expand Up @@ -13,6 +13,7 @@
try{Typekit.load();}catch(e){}
//]]>
</script>
<script src='https://www.google.com/jsapi?key=ABQIAAAA9tY08LlsIeMqIln2VLJBiBT1QcW1pqS1h8CoEOeyHLsvcKFZ0xTPorLc8Vsc3-c0ng2mcpyjiN0zGQ' type='text/javascript'></script>
</head>
<body>
<div id='container'>
Expand Down Expand Up @@ -71,5 +72,17 @@ <h3>
</p>
</div>
</div>
<script type='text/javascript'>
//<![CDATA[
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-5317873-6");
pageTracker._trackPageview();
} catch(err) {}
//]]>
</script>
</body>
</html>
9 changes: 9 additions & 0 deletions _layouts/post.html
Expand Up @@ -12,6 +12,15 @@
try{Typekit.load();}catch(e){}
//]]>
</script>
<script src='https://www.google.com/jsapi?key=ABQIAAAA9tY08LlsIeMqIln2VLJBiBT1QcW1pqS1h8CoEOeyHLsvcKFZ0xTPorLc8Vsc3-c0ng2mcpyjiN0zGQ' type='text/javascript'></script>
<script type='text/javascript'>
//<![CDATA[
google.load("jquery", "1.6.2");
$(document).ready(function() {
$("a.newwindow").attr("target","_blank");
});
//]]>
</script>
</head>
<body>
<div id='container'>
Expand Down
7 changes: 3 additions & 4 deletions _posts/2011-08-22-git-sub-announcement.textile
Expand Up @@ -5,13 +5,13 @@ title: git-sub(1) - Git substitution utility

When we renamed my github organization, the whole team had to manually update the remote URLs which proved to be a daunting task. I created git-sub to make this easier.

Install using "homebrew":http://mxcl.github.com/homebrew (Mac OS):
Install using <a href="http://twitter.com/intent/tweet?source=webclient&text=RT+%40GregOsuri+%22Introducing+git-sub%281%29+url+-+Recursively+substitutes+remote+URLs+for+multiple+repositories+http%3A%2F%2Fgregosuri.com%2F2011%2F08%2F22%2Fgit-sub-announcement.html%22" target="_blank">homebrew</a> (Mac OS):

{% highlight bash %}
brew install git-sub
{% endhighlight %}

Install from "source":https://github.com/gosuri/git-sub:
Install from "(newwindow)source":https://github.com/gosuri/git-sub:

{% highlight bash %}
git clone https://gosuri@github.com/gosuri/git-sub.git
Expand All @@ -30,7 +30,6 @@ Example:

To replace all occurrences of 'foo' in the remote url with 'bar'


{% highlight bash %}

$ git sub url foo bar # will dry run
Expand All @@ -51,6 +50,6 @@ Changes have been made to the above urls

Check out the "source":http://github.com/gosuri/git-sub and "man pages":http://gregosuri.com/git-sub.

Like it? Spread the love, "Tweet":http://twitter.com/intent/tweet?source=webclient&text=RT%20@GregOsuri%20%22Introducing%20git-sub:%20git%20substitution%20utility%20to%20recursively%20update%20recursive%20URLs%22 and follow me on "Twitter":http://twitter.com/GregOsuri for updates.
<p> Like it? You can <a href="http://twitter.com/intent/tweet?source=webclient&text=RT+%40GregOsuri+%22Introducing+git-sub%281%29+url+-+Recursively+substitutes+remote+URLs+for+multiple+repositories+http%3A%2F%2Fgregosuri.com%2F2011%2F08%2F22%2Fgit-sub-announcement.html%22" target="_blank"> Tweet </a> about it or(and) follow me on <a href="http://twitter.com/GregOsuri" target="_blank">Twitter</a> for updates.</p>


3 changes: 2 additions & 1 deletion _templates/default.haml
Expand Up @@ -10,6 +10,7 @@
%script{:type =>"text/javascript", :src=>"http://use.typekit.com/xrn7yhf.js" }
:javascript
try{Typekit.load();}catch(e){}
%script{:type => "text/javascript", :src => "https://www.google.com/jsapi?key=ABQIAAAA9tY08LlsIeMqIln2VLJBiBT1QcW1pqS1h8CoEOeyHLsvcKFZ0xTPorLc8Vsc3-c0ng2mcpyjiN0zGQ" }
%body
#container
#content
Expand Down Expand Up @@ -62,4 +63,4 @@
pageTracker._trackPageview();
} catch(err) {}
6 changes: 6 additions & 0 deletions _templates/post.haml
Expand Up @@ -9,6 +9,12 @@
%script{:type =>"text/javascript", :src=>"http://use.typekit.com/xrn7yhf.js" }
:javascript
try{Typekit.load();}catch(e){}
%script{:type => "text/javascript", :src => "https://www.google.com/jsapi?key=ABQIAAAA9tY08LlsIeMqIln2VLJBiBT1QcW1pqS1h8CoEOeyHLsvcKFZ0xTPorLc8Vsc3-c0ng2mcpyjiN0zGQ" }
:javascript
google.load("jquery", "1.6.2");
$(document).ready(function() {
$("a.newwindow").attr("target","_blank");
});
%body
#container
#content
Expand Down

0 comments on commit 858170f

Please sign in to comment.