美文网首页
hugo error

hugo error

作者: LFBuildMountain | 来源:发表于2018-04-05 21:22 被阅读0次

error1

---
title: "Myfirst"
date: 2018-04-05T19:08:00+08:00
draft: false
tags: ['hello','hi','hey']
categories: 'aaa'
---

Change detected, rebuilding site
ERROR 2018/04/05 21:13:55 in .Render: Failed to execute template "theme/post/summary.html": template: theme/post/summary.html:8:19: executing "theme/post/summary.html" at <.>: range can't iterate over aaa
Total in 26 ms

value of tags and categories must be inside an array, enclosed by []

solution

categories: ['aaa']

相关文章

网友评论

      本文标题:hugo error

      本文链接:https://www.haomeiwen.com/subject/ywwdhftx.html