Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix canonical urls on pages

  • Loading branch information...
commit d1742f9eb69740e4454a8fb73925cae5e82728f6 1 parent 2ac3e4d
@tomafro authored
View
2  lib/post.rb
@@ -10,7 +10,7 @@ def body
end
def url
- @path.to(@path.size - 6)
+ "/" + @path.to(@path.size - 6)
end
def layout
View
4 public/404.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />
<link rel="stylesheet" href="/css/style-db97c835f88a11034a9bb34f063ff69a.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" href="http://tomafro.net/atom.xml" />
- <link rel="canonical" href="http://tomafro.net404"/>
+ <link rel="canonical" href="http://tomafro.net/404"/>
<script type="text/javascript" src="http://use.typekit.com/brv6igt.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<title>404: Page not found! &middot; tomafro.net</title>
@@ -25,7 +25,7 @@
</nav>
<article>
<header>
- <h1><a href="404">404: Page not found!</a></h1>
+ <h1><a href="/404">404: Page not found!</a></h1>
</header>
<div class="content">
<p>The page you&rsquo;re looking for couldn&rsquo;t be found. Sorry about that. I&rsquo;m sure it&rsquo;s my fault, not yours.</p>
View
4 public/about.html
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />
<link rel="stylesheet" href="/css/style-db97c835f88a11034a9bb34f063ff69a.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" href="http://tomafro.net/atom.xml" />
- <link rel="canonical" href="http://tomafro.netabout"/>
+ <link rel="canonical" href="http://tomafro.net/about"/>
<script type="text/javascript" src="http://use.typekit.com/brv6igt.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<title>About Tom Ward &middot; tomafro.net</title>
@@ -38,7 +38,7 @@
</nav>
<article>
<header>
- <h1><a href="about">About Tom Ward</a></h1>
+ <h1><a href="/about">About Tom Ward</a></h1>
</header>
<div class="content">
<p>I&rsquo;m a London based software developer, passionate about building and improving the web.</p>
View
2  public/atom.xml
@@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Tom Ward</title>
<link href="http://tomafro.net/atom.xml" rel="self"/>
- <updated>2013-01-13T13:54:41+00:00</updated>
+ <updated>2013-01-26T17:37:27+00:00</updated>
<id>http://tomafro.net/</id>
<author>
<name>Tom Ward</name>
Please sign in to comment.
Something went wrong with that request. Please try again.