在本地运行雨果。请参阅我的目录结构的附件照片。
在Chrome浏览器中点击localhost:1313/directions-accomodations
。内容文件(红色框)正在加载single.html
模板(蓝色框)。
我希望它加载自定义模板。 directions.html
(其中的任何一个)。我需要将directions.html
放在哪里,或者,为了实现这一点,我应该在layout
中为/directions-accomodations/index.md
的前值赋予哪个值?
非常感谢!
您可以将布局提及为布局:“方向住宿/路线”
这将使布局指向directions.html