UPDATE: OMG so silly, I just need to remove completely the code from config.rb
Obviously I am trying to overcomplicate things.
I have dataset in .json:
{
"resources":[
{
"name": "name1",
"slug":"url-1",
"published": false,
"title":"Title 1"
},
{
"name": "name2",
"slug":"url-2",
"published": false,
"title":"Title 2"
},
{
"name": "name3",
"slug":"url-3",
"published": false,
"title":"Title 3"
}
]
}
in my config I have:
data.resources.resources.each_with_index do |resource, index|
if resource.name?
proxy "/#{resource.slug}/index.html", "articles.html", :ignore => true
else
end
end
Now, I don’t want to actually create these pages, I only want to keep a reference of this dataset and maybe later loop over on the page, the slug URLs will point to actual articles (Middleman’s blog).
I tried replacing "articles.html"
part in my config.rb
with false
but it didn’t work.
How can I achieve it?