wayjam / hugo-theme-fluency Goto Github PK
View Code? Open in Web Editor NEWA fluent hugo theme.
License: MIT License
A fluent hugo theme.
License: MIT License
在使用版本hugo_extended_0.115.3_windows-amd64
进行网页构建时出现以下警告:
WARN Site.RSSLink is deprecated and will be removed in a future release.
Use the Output Format's Permalink method instead,
e.g. .OutputFormats.Get "RSS".Permalink
望请及时更新。感谢作者的优秀主题!
$ hugo -D
Start building sites …
hugo v0.88.1+extended darwin/amd64 BuildDate=unknown
WARNING: calling IsSet with unsupported type "ptr" (*hugolib.pageState) will always return false.
ERROR 2021/10/11 14:16:01 render of "page" failed: execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/shaocongcong/Documents/gowork/src/github.com/congim/blog/themes/fluency/layouts/partials/head.html:40:67": execute of template failed: template: partials/head.html:40:67: executing "partials/head.html" at <.>: range can't iterate over linux
ERROR 2021/10/11 14:16:01 render of "page" failed: execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/shaocongcong/Documents/gowork/src/github.com/congim/blog/themes/fluency/layouts/partials/head.html:40:67": execute of template failed: template: partials/head.html:40:67: executing "partials/head.html" at <.>: range can't iterate over linux
ERROR 2021/10/11 14:16:01 render of "page" failed: execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/shaocongcong/Documents/gowork/src/github.com/congim/blog/themes/fluency/layouts/partials/head.html:40:67": execute of template failed: template: partials/head.html:40:67: executing "partials/head.html" at <.>: range can't iterate over linux
ERROR 2021/10/11 14:16:01 render of "page" failed: execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/shaocongcong/Documents/gowork/src/github.com/congim/blog/themes/fluency/layouts/partials/head.html:40:67": execute of template failed: template: partials/head.html:40:67: executing "partials/head.html" at <.>: range can't iterate over 学?
ERROR 2021/10/11 14:16:01 render of "page" failed: execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/Users/shaocongcong/Documents/gowork/src/github.com/congim/blog/themes/fluency/layouts/partials/head.html:40:67": execute of template failed: template: partials/head.html:40:67: executing "partials/head.html" at <.>: range can't iterate over linux
Error: Error building site: failed to render pages: render of "term" failed: "/Users/shaocongcong/Documents/gowork/src/github.com/congim/blog/themes/fluency/layouts/_default/list.html:13:19": execute of template failed: template: _default/list.html:13:19: executing "main" at <.>: range can't iterate over db
Total in 144 ms
zeabur
现在更改了部署流程,需要把config.yaml
改名为hugo.toml
放在要发布网站的根目录下,下面这个网址是官方的示例页面:
https://github.com/zeabur/hugo-template
使用旧的config.yaml
时会出现以下错误:
Error: "/src/hugo.toml:13:13": unmarshal failed: toml: expected character =
Error: building at STEP "RUN hugo --minify": while running runtime: exit status 255
exit status 255
下面是要上传部署网站的源文件目录:
archetypes
- default.md
content
- archives
- posts
-(发布的文章)
- about.md
- archives.md
public
- .keep(文件夹不能为空)
themes
- fluency
hugo.toml
尝试把config.yaml
里的”:“改为”=“;”-“改为”=“后仍部署失败,变量名不能含有”-“。
我尝试了另一个配置模板搭建了别的网站(不用fluency主题,一个网址导航站),部署成功,下面是它的hugo.toml
:
baseURL = "网址"
languageCode = "zh-CN"
title = "网站标题"
theme = "WebStack-Hugo"
preserveTaxonomyNames = true
disablePathToLower = true
hasCJKLanguage = true
[params]
author = "作者名"
description = "描述"
siteurl = "./"
upload = "网址"
about = "./about"
repository = "https://github.com/shenweiyan/WebStack-Hugo"
enablePreLoad = true
textPreLoad = "网址导航"
expandSidebar = false
logosPath = "assets/images/logos"
defaultLogo = "assets/images/logos/default.webp"
baiduhmid = '111111111111111111111111111'
[params.qweather]
key = "11111111111111111"
[params.images]
favicon = "assets/images/favicon.png"
searchImageL = "assets/images/bg-math.jpg"
searchImageD = "assets/images/bg-math-b.jpg"
logoExpandLight = "assets/images/logos/default.webp"
logoExpandDark = "assets/images/logos/default.webp"
logoCollapseLight = "assets/images/logos/default.webp"
logoCollapseDark = "assets/images/logos/default.webp"
[markup.goldmark.renderer]
unsafe = true
[params.footer]
copyright = '本站内容源自互联网,如有内容侵犯了你的权益,请联系删除相关内容,请到个人博客查看联系方式 <br/>© 2021 - {year} By [WebStack-Hugo](https://github.com/shenweiyan/WebStack-Hugo) | <br/>'
感谢您的主题
An error occurs while building any static website from 0.89 version. There is a typo at the file layouts/partials/post_metadata.html
that rises an error saying that "The Lastmod field could not be evaluated."
This can be fixed just replacing the uppercase "M" letter at line 4 of this file by a lowercase one (LastMod -> Lastmod).
Best,
Adriano.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.