ruby - Middleman: How can I get the current article title? -
Using a "intermediate-blog" extension, while creating a simple blog in Middleman, I get a layout file that only produces content
What do I want to get the title of the current position and Have to display
What do I still have:
& lt;% blog.articles.each do | Articles | & Gt%; & Lt;% = link_to article.title, article% & gt; & Lt;% end% & gt;
This is a thief through every post title, even if only a post content is displayed. The title of the post is a post titled two post title three
"output of something like this in the post title one," URL / Post-Title-A
/ P>
I have to try something like that
<% blog.articles.each do | Articles | & Gt%; & Lt;% = link_to current_article.title, article% & gt; & Lt;% end% & gt;
But it only randomly excludes two page titles.