README.md in rails_amp-0.1.5 vs README.md in rails_amp-0.1.6
- old
+ new
@@ -249,10 +249,10 @@
<link rel="canonical" href="http://example.com/home/index" />
```
If you want to use the root_url as the canonical url, you should customize the codes.
-```html
+```ruby
<% if controller_name == 'home' && action_name == 'index' %>
<link rel="canonical" href="<%= root_url %>" />
<% else %>
<link rel="canonical" href="<%= rails_amp_canonical_url %>" />
<% end %>