Skip to content
Browse files

oops

  • Loading branch information...
1 parent 6bd182e commit 2591fb5a13f2fdf8bb4ef44dced8031915c7d884 @schacon committed Feb 11, 2009
Showing with 77 additions and 65 deletions.
  1. +9 −23 _layouts/master.html
  2. +2 −2 _layouts/post.html
  3. +0 −13 _posts/2009-02-02-london-git-training.markdown
  4. +3 −8 about.textile
  5. +8 −9 atom.xml
  6. +36 −0 import-wp.rb
  7. +19 −10 stylesheets/master.css
View
32 _layouts/master.html
@@ -4,27 +4,27 @@
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>Mister Bleigh - {{ page.title }}</title>
+ <title>Scott Chacon - {{ page.title }}</title>
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8"/>
<script src="/javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="/javascripts/jquery.github.js" type="text/javascript" charset="utf-8"></script>
- <link rel='alternate' type='application/rss+xml' href='http://feeds2.feedburner.com/mbleigh' />
+ <link rel='alternate' type='application/rss+xml' href='http://feeds2.feedburner.com/schacon' />
</head>
<body>
<div id='wrapper'>
<div id='header'>
- <h1>Mister Bleigh</h1>
- <h2>is Michael Bleigh on the web.</h2>
+ <h1>Scott Chacon</h1>
+ <h2>is a tool of the masses</h2>
</div>
<div id='menu'>
<ul>
<li><a href='/'>Home</a></li>
<li><a href='/blog.html'>Blog</a></li>
<li><a href='/about.html'>About</a></li>
<li><a href='/open-source.html'>Open Source</a></li>
- <li><a href='http://github.com/mbleigh' target='_blank' rel='me'>GitHub</a></li>
- <li><a href='http://www.linkedin.com/in/mbleigh' target='_blank' rel='me'>LinkedIn</a></li>
- <li><a href='http://twitter.com/mbleigh' target='_blank' rel='me'>Twitter</a></li>
+ <li><a href='http://github.com/schacon' target='_blank' rel='me'>GitHub</a></li>
+ <li><a href='http://www.linkedin.com/in/schacon' target='_blank' rel='me'>LinkedIn</a></li>
+ <li><a href='http://twitter.com/chacon' target='_blank' rel='me'>Twitter</a></li>
</ul>
</div>
<div id='content'>
@@ -33,21 +33,7 @@
</div>
</div>
<div id='footer'>
- Copyright &copy; 2009 Michael Bleigh. Some rights reserved. Hosted by <a href='http://github.com/mbleigh/mbleigh.github.com/' target='_blank'>GitHub</a> and powered by <a href='http://github.com/mojombo/jekyll'>Jekyll</a>.
+ Copyright &copy; 2009 Scott Chacon. Some rights reserved. Hosted by <a href='http://github.com/schacon/schacon.github.com/' target='_blank'>GitHub</a> and powered by <a href='http://github.com/mojombo/jekyll'>Jekyll</a>.
</div>
- <script type="text/javascript">
- //<![CDATA[
- (function() {
- var links = document.getElementsByTagName('a');
- var query = '?';
- for(var i = 0; i < links.length; i++) {
- if(links[i].href.indexOf('#disqus_thread') >= 0) {
- query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
- }
- }
- document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/misterbleigh/get_num_replies.js' + query + '"></' + 'script>');
- })();
- //]]>
- </script>
</body>
-</html>
+</html>
View
4 _layouts/post.html
@@ -21,6 +21,6 @@
</div>
<script type="text/javascript" charset="utf-8">
- var disqus_url = "http://www.mbleigh.com/{{page.url}}";
+ var disqus_url = "http://schacon.github.com/{{page.url}}";
</script>
-<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/misterbleigh/embed.js"></script><noscript><a href="http://misterbleigh.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/scottchacon/embed.js"></script><noscript><a href="http://scottchacon.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
View
13 _posts/2009-02-02-london-git-training.markdown
@@ -1,13 +0,0 @@
----
-layout: post
-title: London Git Training
----
-
-![Git London Bus](http://gitlondon.com/images/backgrounds/london-bus.png){: class="right"}
-
-At the end of March, I’m going to be traveling to Europe for [Scotland on Rails](http://scotlandonrails.com) to do a Git talk (also likely a talk at the University of Edinburgh, if you’re there).
-
-While there, I thought I would do a more in-depth training session in London for all our friends toiling in SVN heck or otherwise wanting to sharpen their Git-Fu. My friends at Codebase have helped me rent a space, catering and all that so we can have a nice long session learning the ins and outs of Git.
-
-If you are interested in signing up for the training, which is happening on April 3rd (a Friday), you can check out our website at [gitlondon.com](http://gitlondon.com). If you know anyone in the UK who might be interested in doing it, please do let them know. If you’re in the UK and don’t want to do the training, but do want to go out for beers after, send me a note.
-
View
11 about.textile
@@ -1,16 +1,11 @@
---
-title: About Michael Bleigh
+title: About Scott Chacon
layout: master
---
-h2. About Michael Bleigh
+h2. About Scott Chacon
-Michael Bleigh is the author of this blog as well as a Rubyist, designer, and open source advocate. He is currently the Creative Director and Open-Source Activist at "Intridea":http://www.intridea.com/, a Washington D.C. based web applications development firm.
-
-Michael has contributed a number of open-source projects to the Ruby community including the "SubdomainFu":http://github.com/mbleigh/subdomain-fu and "ActsAsTaggableOn":http://github.com/mbleigh/acts-as-taggable-on plugins for Rails. He was also chosen to speak at RailsConf Europe 2008 as well as the Great Lakes Ruby Bash in 2008.
-
-His work at Intridea has included being the product manager and technical lead for "Present.ly":http://www.presentlyapp.com/, the business micro-communications platform launched in September of 2008.
h2. About This Site
-This site is built using the "Jekyll":http://github.com/mojombo/jekyll library and hosted on "GitHub":http://github.com/. The source code used to create this library is "publicly available on GitHub":http://github.com/mbleigh/mbleigh.github.com as well.
+This site is built using the "Jekyll":http://github.com/mojombo/jekyll library and hosted on "GitHub":http://github.com/. The source code used to create this library is "publicly available on GitHub":http://github.com/schacon/schacon.github.com as well.
View
17 atom.xml
@@ -4,24 +4,23 @@ layout: nil
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <title>Mister Bleigh</title>
- <link href="http://mbleigh.github.com/atom.xml" rel="self"/>
- <link href="http://www.mbleigh.com/"/>
+ <title>Scott Chacon</title>
+ <link href="http://schacon.github.com/atom.xml" rel="self"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
- <id>http://www.mbleigh.com/</id>
+ <id>http://schacon.github.com/</id>
<author>
- <name>Michael Bleigh</name>
- <email>mbleigh@mbleigh.com</email>
+ <name>Scott Chacon</name>
+ <email>schacon@gmail.com</email>
</author>
{% for post in site.posts %}
<entry>
<title>{{ post.title }}</title>
- <link href="http://mbleigh.github.com/{{ post.url }}"/>
+ <link href="http://schacon.github.com/{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
- <id>http://mbleigh.com/{{ post.id }}</id>
+ <id>http://schacon.github.com/{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
-</feed>
+</feed>
View
36 import-wp.rb
@@ -0,0 +1,36 @@
+require 'rexml/document'
+require 'date'
+require 'fileutils'
+
+include REXML # so that we don't have to prefix everything with REXML::...
+
+file = File.new( "wordpress.2009-02-11.xml" )
+doc = REXML::Document.new file
+
+entries = []
+
+doc.elements.each("//item") do |element|
+ title = element.get_text("title")
+ post_name = element.get_text("wp:post_name")
+ datestr = "#{element.get_text("pubDate")}"
+ d = DateTime.parse(datestr).strftime("%Y-%m-%d")
+ desc = element.get_text("content:encoded")
+ category = element.get_text("category")
+ category = "Blogging" if category == "" or category.nil?
+ puts category
+ puts d
+ puts title
+ puts post_name
+ dir = "_posts/#{category}/"
+ FileUtils.mkdir(dir) if !File.exists?(dir)
+ filename = dir + "#{d}-#{post_name}.html"
+ post = "---\n"
+ post += "layout: post\n"
+ post += "title: #{title}\n"
+ post += "---\n"
+ post += desc.to_s.gsub("’", "'").gsub("\n\n", "<br/>\n")
+ File.open(filename, 'w') { |f| f.write(post) }
+end
+
+
+
View
29 stylesheets/master.css
@@ -1,17 +1,22 @@
body {
font-family: Arial, sans-serif;
letter-spacing: -0.05em;
- background: #210;
- color: #353B40;
+ background: #A4CFBE;
+ color: #6C6E58;
+}
+
+img.right {
+ float: right;
+ margin: 15px;
}
a {
- color: #262;
+ color: #3E423A;
font-weight: bold;
}
a:visited {
- color: #353b40;
+ color: #6C6E58;
font-weight: normal;
}
@@ -28,7 +33,7 @@ a:visited {
#header {
text-transform: lowercase;
text-align: left;
- background: #421;
+ background: #417378;
-moz-border-radius-topleft: 1em;
-webkit-border-top-left-radius: 1em;
-moz-border-radius-topright: 1em;
@@ -52,11 +57,11 @@ a:visited {
margin-left: 0.5em;
font-size: 2em;
font-weight: normal;
- color: #fed;
+ color: #F4F7D9;
}
#menu {
- background: #310;
+ background: #3E423A;
}
#menu ul {
@@ -110,6 +115,8 @@ div.post {
margin-top: 0.2em;
}
+.post { color: #333; }
+
.post h1 a {
text-decoration: none;
clear: left;
@@ -121,6 +128,8 @@ div.post {
font-weight: bold;
}
+.post br { margin-bottom: 10px;}
+
pre {
background: #f8f8f8;
border: 1px solid #E7E5DC;
@@ -163,7 +172,7 @@ div.related {
#footer {
margin-bottom: 2em;
- color: #dba;
+ color: #3E423A;
font-size: 0.9em;
padding: 0.5em;
text-align: center;
@@ -174,7 +183,7 @@ div.related {
}
#content .home_box h2 {
- background: #484;
+ background: #417378;
padding: 0.3em 0.5em;
border-bottom: 3px solid #262;
margin-bottom: 0em;
@@ -198,7 +207,7 @@ div.related {
.clearfix { clear: both;}
#footer a {
- color: #ecb;
+ color: #3E423A;
font-weight: normal;
}

0 comments on commit 2591fb5

Please sign in to comment.
Something went wrong with that request. Please try again.