Closed pseidemann closed 11 years ago
Please post your config.rb
and Gemfile.lock
files.
activate :blog do |blog|
blog.prefix = '/en/blog'
end
page '/feed.xml', :layout => false
set :css_dir, 'stylesheets'
set :js_dir, 'javascripts'
set :images_dir, 'images'
configure :build do
activate :minify_css
activate :minify_javascript
activate :cache_buster
end
['en', 'us'].each do |site|
page "/#{site}/*" do
@site = site
end
end
activate :directory_indexes
GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.13)
i18n (= 0.6.1)
multi_json (~> 1.0)
builder (3.2.2)
chunky_png (1.2.8)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.3.3)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
execjs (1.4.0)
multi_json (~> 1.0)
fssm (0.2.10)
haml (4.0.3)
tilt
hike (1.2.2)
http_router (0.10.2)
rack (>= 1.0.0)
url_mount (~> 0.2.1)
i18n (0.6.1)
listen (0.7.3)
maruku (0.6.1)
syntax (>= 1.0.0)
middleman (3.0.14)
middleman-core (= 3.0.14)
middleman-more (= 3.0.14)
middleman-sprockets (~> 3.1.0)
middleman-blog (3.2.0)
maruku (~> 0.6.0)
middleman-core (~> 3.0)
tzinfo (~> 0.3.0)
middleman-core (3.0.14)
activesupport (~> 3.2.6)
bundler (~> 1.1)
listen (~> 0.7.3)
rack (~> 1.4.1)
rack-test (~> 0.6.1)
rb-fsevent (~> 0.9.3)
thor (~> 0.15.4)
tilt (~> 1.3.6)
middleman-more (3.0.14)
coffee-script (~> 2.2.0)
coffee-script-source (~> 1.3.3)
compass (>= 0.12.2)
execjs (~> 1.4.0)
haml (>= 3.1.6)
i18n (~> 0.6.0, < 0.6.2)
maruku (~> 0.6.0)
middleman-core (= 3.0.14)
padrino-helpers (= 0.10.7)
sass (>= 3.1.20)
uglifier (~> 1.2.6)
middleman-sprockets (3.1.1)
middleman-core (>= 3.0.14)
padrino-helpers (= 0.10.7)
sprockets (~> 2.1)
sprockets-helpers (~> 1.0.0)
sprockets-sass (~> 1.0.0)
multi_json (1.7.5)
padrino-core (0.10.7)
activesupport (~> 3.2.0)
http_router (~> 0.10.2)
sinatra (~> 1.3.1)
thor (~> 0.15.2)
tilt (~> 1.3.0)
padrino-helpers (0.10.7)
i18n (~> 0.6)
padrino-core (= 0.10.7)
rack (1.4.5)
rack-protection (1.5.0)
rack
rack-test (0.6.2)
rack (>= 1.0)
rb-fsevent (0.9.3)
sass (3.2.9)
sinatra (1.3.6)
rack (~> 1.4)
rack-protection (~> 1.3)
tilt (~> 1.3, >= 1.3.3)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-helpers (1.0.1)
sprockets (~> 2.0)
sprockets-sass (1.0.1)
sprockets (~> 2.0)
tilt (~> 1.1)
syntax (1.0.0)
thor (0.15.4)
tilt (1.3.7)
tzinfo (0.3.37)
uglifier (1.2.7)
execjs (>= 0.3.0)
multi_json (~> 1.3)
url_mount (0.2.1)
rack
PLATFORMS
ruby
DEPENDENCIES
builder (= 3.2.2)
middleman (= 3.0.14)
middleman-blog (= 3.2.0)
Could you reproduce this bug?
Afraid not. Can you try the 3.1 betas? In your Gemfile:
gem "middleman", "~> 3.1.0.rc"
@pseidemann please reopen this ticket if you can provide a repo that reproduces this issue.
I have the same issue. My standard layout file resides in /layouts/layout.erb and when i build the site i also get this error: error build/blog/2014/01/01/foofoo.html Error: Could not locate layout: _auto_layout
Interesstingly enough, my layout gets applied because my article html has all the HTML from the layout.
Any Ideas?
activate :blog do |blog|
# This will add a prefix to all links, template references and source paths
blog.prefix = "blog"
# blog.permalink = "{year}/{month}/{day}/{title}.html"
# Matcher for blog source files
blog.sources = "/articles/{year}-{month}-{day}-{title}.html"
# blog.taglink = "tags/{tag}.html"
# blog.layout = "layout"
blog.summary_separator = /(READMORE)/
blog.summary_length = 250
# blog.year_link = "{year}.html"
# blog.month_link = "{year}/{month}.html"
# blog.day_link = "{year}/{month}/{day}.html"
blog.default_extension = ".markdown"
#blog.tag_template = "tag.html"
#blog.calendar_template = "calendar.html"
# Enable pagination
# blog.paginate = true
# blog.per_page = 10
# blog.page_link = "page/{num}"
end
Hello,
I'm trying to set up a blog with a prefix but I always get this error message when accessing an article:
What should I do to fix this?