以下を使用してstaticMaticプロジェクトをセットアップし/index.html
ます。
@slug = current_page.gsub(/\.html/, '')
を返しますが"/index(.html)"
、/index
用語の修正:-次@slug = current_page.gsub("/", "").gsub(".html", "")
の場所にあります:
https://github.com/adamstac/staticmatic-bootstrap/blob/master/src/helpers/application_helper.rb