Skip to content

Commit 4d73962

Browse files
committed
added page_ids to README Usage section
1 parent ca84ed2 commit 4d73962

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@ link_to 'Q4 Reports', page_path('about/corporate/policies/HR/en_US/biz/sales/Qua
4343

4444
Bam.
4545

46+
You can also get a list of your static pages by calling `HighVoltage.page_ids`
47+
This might be useful if you need to build a sitemap. For example, if you are
48+
using the [sitemap_generator](https://github.com/kjvarga/sitemap_generator) gem,
49+
you could add something like this to your sitemap config file:
50+
51+
```ruby
52+
HighVoltage.page_ids.each do |page|
53+
add page, changefreq: 'monthly'
54+
end
55+
```
56+
4657
## Configuration
4758

4859
#### Routing overview

0 commit comments

Comments
 (0)