File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" )
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
You can’t perform that action at this time.
0 commit comments