Skip to content

Commit

Permalink
Catch more variations on the homepage URL
Browse files Browse the repository at this point in the history
  • Loading branch information
denny committed May 11, 2019
1 parent f812d49 commit 0ce28dd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions root/site-wrapper.tt
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,20 @@
[%- IF status_msg %]<div class="status">[% status_msg %]</div>[% END %]

[%- # TODO: make homepage detection more robust/generic
IF c.request.uri == c.uri_for('/')
OR c.request.uri == c.uri_for('/pages/home')
IF c.request.uri == c.uri_for('/')
OR c.request.uri == c.uri_for('/pages')
OR c.request.uri == c.uri_for('/pages/home')
OR c.request.uri == c.uri_for('/pages/home/home')
-%]
[%- content %]

[% content %]

[%- ELSE %]
<div class="wrapper style2">
<div class="inner">
<div class="container">
<div id="content">
[%- content %]
[% content %]
</div>
</div>
</div>
Expand Down

0 comments on commit 0ce28dd

Please sign in to comment.