Skip to content

Commit

Permalink
Merge pull request #135 from daryllxd/patch-1
Browse files Browse the repository at this point in the history
Add instruction for overriding layouts for all static pages
  • Loading branch information
Harlow Ward committed Mar 30, 2014
2 parents 186f11b + 29bb292 commit 83997c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ class PagesController < ApplicationController
end
```

To set up a different layout for all High Voltage static pages, use an initializer:

```ruby
# config/initializers/high_voltage.rb
HighVoltage.configure do |config|
config.layout = 'your_layout'
end
```

## Custom finding

You can further control the algorithm used to find pages by overriding
Expand Down

0 comments on commit 83997c7

Please sign in to comment.