mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
85fa3fac02
a “cheap” way to support adding data to pages created through `proxy` or `page` by adding frontmatter at the expected destination url. for example proxying a page to `/proxied.html`, by adding a sidecar frontmatter file at `source/proxied.html.frontmatter` (or source/proxied.frontmatter if directory indexes is activated) the frontmatter will be merged with the proxy source and available to `current_resource` at the destination.
5 lines
258 B
Ruby
5 lines
258 B
Ruby
# Proxy ignored.html, which should ignore itself through a frontmatter
|
|
page 'proxied.html', :proxy => 'ignored.html'
|
|
page 'proxied_with_frontmatter.html', :proxy => 'ignored.html'
|
|
page 'override_layout.html', :layout => :alternate
|
|
page 'page_mentioned.html'
|