如何在Hugo中输出json数组frontmatter到布局?

时间:2018-06-09 15:38:34

标签: hugo

我有这个标记文件,带有“替代”数据数组,我想使用.range输出布局中的内容,我不知道如何。

{
  "title" : "Coins",
  "draft" : false,
  "headerBackgroundStyle" : "coins",
  "layout": "coins",
  "subtitle": "asdasd asdasd asdasd",
  "aliases": [
    "/-it-works/how-it-works/"
  ],
 "alternate": [
  {
   "desc": "desc1",
   "img": "img1"
 },
 {
   "desc": "desc2",
   "img": "img2"
  }
 ]
}

0 个答案:

没有答案