Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate tag pages with blog.tag_template #49

Closed
DarrenN opened this issue May 29, 2012 · 2 comments
Closed

Cannot generate tag pages with blog.tag_template #49

DarrenN opened this issue May 29, 2012 · 2 comments

Comments

@DarrenN
Copy link

@DarrenN DarrenN commented May 29, 2012

My config.rb:

activate :blog do |blog|
  blog.layout = "article"
  blog.taglink = "metadata/:tag.html"
  blog.tag_template = "source/tag.html.erb"
end

When I middleman build I get:

error  build/metadata/beta.html
Path metadata/beta.html proxies to unknown file source/tag.html.erb

No matter where I put tag.html.erb or what I name it, I get the same error. It seems there is a problem with the proxy?

I'm using v3.0.0.beta.3 for both blog and middleman

@DarrenN
Copy link
Author

@DarrenN DarrenN commented May 29, 2012

Never mind, solved this through brute force trial and error. The template must be referenced as "filename.html" and the the templare itself named "filename.html.erb"

@DarrenN DarrenN closed this May 29, 2012
@bhollis
Copy link
Member

@bhollis bhollis commented May 29, 2012

Not quite. The correct configuration should be:

activate :blog do |blog|
  blog.layout = "article"
  blog.taglink = "metadata/:tag.html"
  blog.tag_template = "tag.html"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.