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

Docs problem on Setting up blog in an existing project #349

Open
adamdill opened this issue Jul 20, 2017 · 2 comments
Open

Docs problem on Setting up blog in an existing project #349

adamdill opened this issue Jul 20, 2017 · 2 comments
Labels

Comments

@adamdill
Copy link

This isn't a code problem, but a tiny docs issue.

on https://middlemanapp.com/basics/blogging/ the instructions for activating the extension in an existing project are:

activate :blog do |blog|
  # set options on blog
end

Unfortunately, this doesn't work out of the box. This error is thrown:

NoMethodError at /blog/2012/01/01/example-article
undefined method `link' for nil:NilClass
[snip]/gems/middleman-blog-4.0.2/lib/middleman-blog/helpers.rb: in tag_path, line 86

Maybe the docs could be updated to include these two template options, so that the example works as specified?

activate :blog do |blog|
  # set options on blog
  blog.tag_template = "tag.html"
  blog.calendar_template = "calendar.html"
end

PS: love the project, thank you!

@dearshrewdwit
Copy link

thanks @adamdill just what I needed

@github-actions github-actions bot added the Stale label Apr 12, 2024
@markets
Copy link
Member

markets commented Apr 15, 2024

ℹ️ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants