Skip to content

Commit da3243a

Browse files
authored
Merge pull request #76 from znz/fix-links
Use / instead of /TryRuby
2 parents e66c27c + 015f1b4 commit da3243a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

source/articles/index.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ title: "TryRuby Articles"
55
.row
66
.col-sm-12
77
- blog.articles.each do |article|
8-
%h2= link_to article.title, "#{environment == :production ? '/TryRuby' : ''}#{article.url}"
9-
%p= article.data.the_summary
8+
%h2= link_to article.title, article.url
9+
%p= article.data.the_summary

source/layouts/_header.html.haml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
%nav.navbar.navbar-default.opal-nav(role="navigation")
22
.container
33
.navbar-header
4-
%a.navbar-brand(href="#{environment == :production ? '/TryRuby' : '/'}")
4+
%a.navbar-brand(href="/")
55
TryRuby
66
%sup= 'R4'
77
%button.navbar-toggle(type="button" data-toggle="collapse" data-target="#opal-navbar")
@@ -12,14 +12,14 @@
1212
#opal-navbar.navbar-collapse.collapse
1313
%ul.nav.navbar-nav
1414
%li
15-
%a(href="#{environment == :production ? '/TryRuby/articles' : '/articles'}")
15+
%a(href="/articles")
1616
%span(class="glyphicon glyphicon-book" aria-hidden="true")
1717
Articles
1818
%li
19-
%a(href="#{environment == :production ? '/TryRuby/playground' : '/playground'}")
19+
%a(href="/playground")
2020
%span(class="glyphicon glyphicon-tower" aria-hidden="true")
2121
Playground
2222
%li
23-
%a(href="#{environment == :production ? '/TryRuby/about' : '/about'}")
23+
%a(href="/about")
2424
%span(class="glyphicon glyphicon-info-sign" aria-hidden="true")
2525
About

0 commit comments

Comments
 (0)