guangzhengli / hugo-ladder-exampleSite

A example site for https://github.com/guangzhengli/hugo-theme-ladder
https://hugo-ladder.pages.dev
24 stars 4 forks source link

Action中build with jekyII error #9

Open jianjipan opened 1 year ago

jianjipan commented 1 year ago

请问这个错误是因为什么

Build Warning: Layout 'archives' requested in content/archives.md does not exist. Build Warning: Layout 'archives' requested in themes/hugo-theme-ladder/exampleSite/content/archives.md does not exist. Build Warning: Layout 'archives' requested in content/archives.zh.md does not exist. Build Warning: Layout 'archives' requested in themes/hugo-theme-ladder/exampleSite/content/archives.zh.md does not exist. Build Warning: Layout 'art' requested in content/art.md does not exist. Build Warning: Layout 'art' requested in themes/hugo-theme-ladder/exampleSite/content/art.md does not exist. Build Warning: Layout 'art' requested in content/art.zh.md does not exist. Build Warning: Layout 'art' requested in themes/hugo-theme-ladder/exampleSite/content/art.zh.md does not exist. Build Warning: Layout 'blog' requested in content/blog.md does not exist. Build Warning: Layout 'blog' requested in themes/hugo-theme-ladder/exampleSite/content/blog.md does not exist. Build Warning: Layout 'blog' requested in content/blog.zh.md does not exist. Build Warning: Layout 'blog' requested in themes/hugo-theme-ladder/exampleSite/content/blog.zh.md does not exist. Liquid Warning: Liquid syntax error (line 306): [:dot, "."] is not a valid expression in "{{ .Date }}" in content/blog/configurations.md Liquid Warning: Liquid syntax error (line 306): [:dot, "."] is not a valid expression in "{{ .Date }}" in content/blog/zh/configurations.zh.md Liquid Exception: Invalid Date: '{}' is not a valid datetime. in /_layouts/default.html ERROR: YOUR SITE COULD NOT BE BUILT:

                Invalid Date: '{}' is not a valid datetime.
Shallowhave commented 1 year ago

解决了吗 我也有这个问题

Chefback commented 9 months ago

@jianjipan @Shallowhave 我觉得是以下原因 这个问题的原因是没有运行build page 这个action ,而这个action是每次提交都会自动运行,之所以没有运行是因为没有授予GitHub actions 读写权限,在repo setting ->github action -> general 那里授予读写权限就行,

danielchan-25 commented 5 months ago

@jianjipan @Shallowhave 我觉得是以下原因 这个问题的原因是没有运行build page 这个action ,而这个action是每次提交都会自动运行,之所以没有运行是因为没有授予GitHub actions 读写权限,在repo setting ->github action -> general 那里授予读写权限就行,

实测不行,解决了吗大哥们