Cannot generate tag pages with blog.tag_template #49

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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@DarrenN

DarrenN 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 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

This comment has been minimized.

Show comment
Hide comment
@bhollis

bhollis May 29, 2012

Member

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
Member

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

@activestylus activestylus referenced this issue in middleman/middleman Mar 1, 2013

Closed

Dynamic pages: template not found #803

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment