Skip to content

Commit

Permalink
Different approach to canonicalize URLs that end with /index.html (th…
Browse files Browse the repository at this point in the history
…is technique works when viewing static pages from filesystem too)
  • Loading branch information
SteveSanderson committed Oct 26, 2012
1 parent c652787 commit 2382b3d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/main-menu.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="main-menu">
<ul>
<li><a rel="home" href="{% if page.pathprefix %}{{ page.pathprefix }}{% else %}/{% endif %}">Home</a></li>
<li><a rel="home" href="{{ page.pathprefix }}index.html">Home</a></li>
<li><a rel="installation" href="{{ page.pathprefix }}documentation/installation.html">Download / Install</a></li>
<li><a rel="tutorials" href="http://learn.knockoutjs.com/">Tutorials</a></li>
<li><a rel="examples" href="{{ page.pathprefix }}examples/">Live examples</a></li>
Expand Down
3 changes: 2 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Knockout : {{ page.title }}</title>
<link href="{{ page.pathprefix }}css/tripoli.simple.css" type="text/css" rel="stylesheet" />
<link href="{{ page.pathprefix }}css/tripoli.simple.css" type="text/css" rel="stylesheet" />
{% if page.canonicalUrl %}<link rel="canonical" href="{{ page.canonicalUrl }}" />{% endif %}
<link rel="stylesheet" type="text/css" href="{{ page.pathprefix }}css/styles.css" />
<link rel="stylesheet" type="text/css" href="{{ page.pathprefix }}css/smallScreen.css" media="only screen and (max-device-width: 800px)" />
<!--[if IE]><link rel="stylesheet" type="text/css" href="{{ page.pathprefix }}css/tripoli.simple.ie.css" /><![endif]-->
Expand Down
2 changes: 1 addition & 1 deletion documentation/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Developers familiar with Ruby on Rails, ASP.NET MVC, or other MV* technologies m

## OK, how do you use it?

The quickest and most fun way to get started is by working through the [interactive tutorials](http://learn.knockoutjs.com). Once you've got to grips with the basics, explore the [live examples](../examples/) and then have a go with it in your own project.
The quickest and most fun way to get started is by working through the [interactive tutorials](http://learn.knockoutjs.com). Once you've got to grips with the basics, explore the [live examples](../examples/index.html) and then have a go with it in your own project.

## Is KO intended to compete with jQuery (or Prototype, etc.) or work with it?

Expand Down
1 change: 1 addition & 0 deletions examples/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: example
title: Live examples
canonicalUrl: /examples/
---

To see working examples of using Knockout to create responsive UIs, choose from the menu on the left.
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: default
title: Home
mainmenukey: home
canonicalUrl: /
---
<div id="masthead">
<div id="slogan">
Expand Down

0 comments on commit 2382b3d

Please sign in to comment.