Sitemap | Middleman - Static Site Generator | Tutorial 12

preview_player
Показать описание

This video is one in a series of videos where we'll be looking at building static websites using the Middleman framework. The course is designed for intermediate web developers, and will introduce some of the core concepts of Middleman in an easy to follow manner.

Throughout the course we'll be looking at various topics including content organization, templates, data files, conditionals, front matter and much more.
Рекомендации по теме
Комментарии
Автор

If anyone else is having a problem with this and getting this error.
"undefined method `include?' for nil:NilClass"

I have found this works, right now it is printing the path and title - edit as needed

<% sitemap.resources.each do |f| %>
<% if f.path.include? "html" %>
<strong><%= f.data.title %> - </strong> <%= f.path %>
<br>
<% end %>
<% end %>

JamesRiter