wangchucheng / hugo-eureka Goto Github PK
View Code? Open in Web Editor NEWEureka is a feature-rich and highly customizable Hugo theme.
Home Page: https://www.wangchucheng.com/en/docs/hugo-eureka/
License: Apache License 2.0
Eureka is a feature-rich and highly customizable Hugo theme.
Home Page: https://www.wangchucheng.com/en/docs/hugo-eureka/
License: Apache License 2.0
Would RSS be available?
希望 Google 收录我的博客
Hugo v0.78.1
Eureka v0.1.3
config/_default/config.toml
中填入了我自己的 Google Analytics 代码(衡量 ID)xuchunqiu/xuchunqiu.github.io
我注意到在 Google 中是可以检索出”技术公馆“的,同时 Chrome 扩展 Tag Assistant (by Google) 显示我俩的 Result of Tag Analysis 并不相同:
所以想请问,为了以 Google Analytics(分析)的方式通过 Google Search Console 的所有权验证,我还要对哪些地方进行配置呢?还是说我只能以其它方式(如 HTML 标记)进行所有权验证?
I was building a site using the Eureka Theme. It worked fine locally but when I pushed it to my Github repo, the theme was not rendering.
I checked my baseURL and it was correct. I tried using other themes and the page rendered.
Can you help me with identifying the issue?
Thank You!
Could you please check why Heading 2 is not working? Thank you.
In _index.md I have:
+++
title = ...
description = ...
date = ...
series = ...
categories = ...
draft = false
collapsible = true
+++
...
## Header 2
....
Preview works, but the commit fails with pipeline error:
Error: Error building site: failed to render pages: render of "section" failed: execute of template failed: template: products/list.html:2:3: executing "main" at <partial "doc_layout.html" .>: error calling partial: "/builds/.../layouts/partials/doc_layout.html:44:23": execute of template failed: template: partials/doc_layout.html:44:23: executing "partials/doc_layout.html" at <partial "doc_toc.html" .>: error calling partial: partial "doc_toc.html" not found
请问作者未来有加入这三个功能的计划吗~
I have a simple example and not sure if it is a problem or not (or expected behavior). In content/../something.md
you want to place an image with name xyz.jpg
using standard markdown syntax. When you run Hugo, you receive error:
ERROR 2020/11/27 00:50:59 render of "section" failed: execute of template failed: template: products/list.html:3:4: executing "products/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/head.html:80:3: executing "partials/head.html" at <partial "schema.html" .>: error calling partial: execute of template failed: template: partials/schema.html:23:3: executing "partials/schema.html" at <partial "schema_node.html" .>: error calling partial: execute of template failed: template: partials/schema_node.html:15:24: executing "partials/schema_node.html" at <partial "get_image.html" (dict "context" . "url" .Params.featuredImage "keyword" "*featured*")>: error calling partial: "/private/path/themes/eureka/layouts/partials/get_image.html:2:76": execute of template failed: template: partials/get_image.html:2:76: executing "partials/get_image.html" at <.keyword>: nil pointer evaluating resource.Resource.Permalink
ERROR 2020/11/27 00:50:59 render of "term" failed: execute of template failed: template: _default/list.html:3:4: executing "_default/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/head.html:80:3: executing "partials/head.html" at <partial "schema.html" .>: error calling partial: execute of template failed: template: partials/schema.html:23:3: executing "partials/schema.html" at <partial "schema_node.html" .>: error calling partial: execute of template failed: template: partials/schema_node.html:15:24: executing "partials/schema_node.html" at <partial "get_image.html" (dict "context" . "url" .Params.featuredImage "keyword" "*featured*")>: error calling partial: "/private/path/themes/eureka/layouts/partials/get_image.html:2:76": execute of template failed: template: partials/get_image.html:2:76: executing "partials/get_image.html" at <.keyword>: nil pointer evaluating resource.Resource.Permalink
Total in 209 ms
Error: Error building site: failed to render pages: render of "section" failed: "/private/path/layouts/products/list.html:2:76": execute of template failed: template: products/list.html:2:3: executing "main" at <partial "doc_layout.html" .>: error calling partial: execute of template failed: template: partials/doc_layout.html:18:31: executing "partials/doc_layout.html" at <partial "get_image.html" (dict "context" . "url" .Params.featuredImage "keyword" "*featured*")>: error calling partial: "/private/path/themes/eureka/layouts/partials/get_image.html:2:76": execute of template failed: template: partials/get_image.html:2:76: executing "partials/get_image.html" at <.keyword>: nil pointer evaluating resource.Resource.Permalink
This error goes away, if I place an image with featured
in name in the same directory as markdown then error goes away.
This is a bug for me, because I do not want a featured image, but I do want an image in the markdown. I would assume a simple fix inside the get_image.html
, but I lack knowledge of hugo or go to solve it quickly. Anyone can help with a quickfix?
能否增加功能使homepage的about.md可直接引用authors文件中的某一作者文件。
Please add a search bar for this amazing theme.
Is your feature request related to a problem? Please describe.
Images can not be clicked or viewed in fullscreen mode.
Describe the solution you'd like
It would be a great feature to make them clickable and swipe to all images for one post.
https://github.com/vinta/pangu.js
A plugin to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).
It would be great if you take it into consideration.
Hi, I’m loving the Eureka theme — it’s elegant and a light, pleasant experience to read!
I wanted to try out the dark mode on https://www.wangchucheng.com/en/ but it seems not to be working.
Can you please have a look?
Would you please add a feature of inserting video like featuredImage?
Thank you very much.
It seems that other themes can be overwritten style by a new css file. How can I overwrite the css style in eureka?
’
rendered on the homepage snippets. On the individual pages, the text renders just fine. This is on my localhost.
Politicians don’t understand
Is your feature request related to a problem? Please describe.
There is no support for self-hosted comment systems.
Describe the solution you'd like
I suggest to add support for Remark42 (https://github.com/umputun/remark42). This is cool system written in Go with tons of features (as Hugo btw).
Is your feature request related to a problem? Please describe.
I would like a way to to do an "Experience" timeline/resume style of summaries for the front page of my website using this theme. It's basically like a card style but instead focuses on a title field, dates string field (e.g. 2019 - present), organization field, and a location field. I also want to show the appropriate icons with the dates, organization, and location fields.
I want to use this style of card for my portfolio website.
My proposed solution is detailed below. I would like your feedback on which to use before I code it up.
My solution is on how to use the same framework as the pages.html widget to accommodate this resume-timeline-style of card.
This is a similar effect I want to achieve. With the focus of the card being the title, organization, time. I won't add the blue circles though. Screenshot below from the demo website of the Hugo Academic Theme.
Describe the solution you'd like
I propose making the following changes:
resume-timeline-style = true
line to the front matter of posts which are to be shown in this style.components/summary-plain.html
to do the if-else checking on the resume-timeline-style
true/false boolean.utils/get-summary-resume-timeline-style.html
to format the card appropriately (showing title, dates, organization, and location if such values exist on the front matter)Two diagrams are below. The first shows the existing code (how I interpreted it). The second shows what the code would look like after my proposed change.
Before (link to diagram editor here):
Proposed Changes (link to diagram editor here):
Describe alternatives you've considered
I've also considered adding a new widget.
Disadvantage: Adding a new widget could make the coat bloated. Existing code with the page.html
widget already achieves a similar desired effect.
I've also considered adding a new style in addition to plain, card, and masonry.
Disadvantage: Adding a new style could get bloated. The existing plain and card summaries code already a similar desired desired effect.
Additional context
It can be used for other types of content. e.g. showing awards, history of employment, educational history, etc.
It's basically a card with a title field, dates string field (e.g. 2019 - present), organization field, and a location field.
Direct Questions
resume-timeline-style
since its flexible enough.With the proposal as is right now, it all seems achievable for me with what I know now (though I'm fairly new to Hugo, HTML, and CSS). So I imagine that I could do the PR for my proposed solution, but let me know if you had another solution in mind.
目前这个目录字体过大,导致我的标题都换行显示,我得重新换个简短的名字,这个挺影响docs使用的
可以参考我的博客:https://www.haohongfan.com/docs/gohandbook/ 标题过长的效果
我觉得这个主题还是不错的,细节可以再优化下,如果可以的话,可以添加我的wx: forever_hhf 探讨下
Hi. I find sth strange but I don't know whether it is caused by the setting problem or it's a bug.
If the first paragraph of the content had no header, then the blank line after this paragraph will not be rendered correctly, which means that:
---
, then the horizontal line will be close to the first paragraph than the content after itFor example, if the source code of the markdown is
aaa
bbb
it will be rendered as
aaa
bbb
instead of
aaa
bbb
I hope that I describe the problem clearly :)
Privately speaking, this is the most beautiful Hugo theme I have seen.
My content will contains a lot of mathematical formulas, will Mathjax or Katex be supported by Eureka in future? :)
This feels like a dumb question, but I can't figure out how to remove the "Write anything you like here!" text in the footer. I don't see anything that would control that element of the page in the homepage folder or any of the yaml files.
You can see it hanging out at the bottom of the page here: https://pa20bm.github.io/HugoSite/
On a similar note, in the process of getting Eureka installed and working, I somehow managed to get "Cvs" at the top of this page – https://pa20bm.github.io/HugoSite/cv/ – when obviously I'd like it to just say "My C.V.," but I can no longer find any config files that control that text or even include the "cvs" text in them when I run a search on all of the files on my computer.
Any help would be greatly appreciated.
Add busuanzi to count visitors in the footnote or count visits for each blog.
busuanzi website: https://busuanzi.ibruce.info/
Potential solution(Chinese version): https://cloud.tencent.com/developer/article/1669144
Hello,
Is there any plan to upgrade tailwind CSS to 2.0?
Thank you.
如题,保持baseURL配置为默认值“/"时,运行hugo
以及hugo server
结果正常。
一旦修改baseURL为其他值(比如我自己的GitHub Pages域名),运行hugo
会报以下错误:
Start building sites …
Total in 43 ms
Error: Error building site: POSTCSS: failed to transform "css/eureka.css" (text/css): resource "css/waynerv.github.io/css/eureka.css_fc3f76d7bee2760c3a903059afc3d9b2" not found in file cache
测试了用git submodule和hugo modules两种方式安装主题,结果都是一样的。hugo版本信息如下:
Hugo Static Site Generator v0.79.1/extended darwin/amd64 BuildDate: unknown
是我的使用方式不对吗?
目前的版本,按照 readme
安装之后,运营时会提示 :
Error: Cannot find module 'postcss'
手工运行 npm install postcss
后能解决。
BTW,依赖 npm 的话, hugo 就没办法独立运行了,感觉不够方便啊。
是否能考虑在 doc 类型的文档中,当 toc 设置为 false 时,文字能够响应式的将原来‘本页目录’的空白区所利用?
如果首页Slogan可以根据不同语言设置不同的Slogan就更好了
v.11 版消除了对 npm 的依赖,👍。越来越接近我想要的效果了
关于 toc ,我提供两个小建议。
Describe the bug
There is a missing archetype for experiences widget. I'll fix this when I can. Just documenting it now.
New widgets should have the archetype made so new widgets can be generated automatically with the archetype template.
To Reproduce
hugo new -k widgets/experiences test/test_experiences.md
Expected behavior
A template for the experiences widget be made with the experiences widget configuration parameters.
Screenshots
N/A
Environment
Additional context
I'll add a blank archetype soon and PR it. Just adding this before I forget.
Is your feature request related to a problem? Please describe.
Add a badge for theme Eureka to README.md.
Describe the solution you'd like
I generate a badge here: https://img.shields.io/badge/Theme-Eureka-%23de8800
The badge color is from the picture in the vintage widget in the Eureka theme.
Additional context
Badge example:
Code:
[![Theme is Eureka](https://img.shields.io/badge/Theme-Eureka-%23de8800)](https://github.com/wangchucheng/hugo-eureka)
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Does this issue reproduce with the latest release?
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Add any other context about the problem here.
Describe the bug
Truncated summaries of pages improperly rendering HTML
To Reproduce
Create a page. In the YAML or first lines of post include apostrophes or ampersands.
Generate hugo.
Expected behaviour
Apostrophes and ampersands rendered correctly
Screenshots
You can see the issue here: https://ncpwg.org/resources/
When the page is clicked into it's fine:
Will there be mermaid support https://mermaid-js.github.io to render diagrams
How can one add submenu?
10:40:08 PM: Error: "/opt/build/repo/themes/hugo-eureka/layouts/partials/doc_layout.html:166:1": parse failed: template: partials/doc_layout.html:166: function "return" not defined
10:40:08 PM:
10:40:08 PM: ────────────────────────────────────────────────────────────────
10:40:08 PM: "build.command" failed
10:40:08 PM: ────────────────────────────────────────────────────────────────
10:40:08 PM:
10:40:08 PM: Error message
10:40:08 PM: Command failed with exit code 255: hugo
10:40:08 PM:
10:40:08 PM: Error location
10:40:08 PM: In Build command from Netlify app:
10:40:08 PM: hugo
10:40:08 PM:
10:40:08 PM: Resolved config
If you click "About" the whole header jumps to the right, if you click "Posts" the whole header jumps back to the left, ... Maybe the problem is content width.
主页上的"阅读更多"指向的是当前主页,相当于没做跳转.
这里能否改成可配置的呢?
Describe the solution you'd like
https://kubernetes.io/docs/contribute/style/hugo-shortcodes/#tabs
https://hugo-dynamic-tabs.netlify.app/
你好,
我按照教程进行安装,报错。
我的步骤:
hugo new site quickstart
cd quickstart
git init .
# 按照教程走
git submodule add https://github.com/wangchucheng/hugo-eureka.git themes/eureka
cp -r themes/eureka/exampleSite/config .
rm config.toml
# 配置后,运行
hugo server
报错:
Describe the bug
To Reproduce
Does this issue reproduce with the latest release?
是的
Screenshots
$ hugo serve
Building sites … WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2021/05/18 11:11:50 found no layout file for "HTML" for kind "page": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
Environment
It is possible to make the author page the homepage?
Thank you
Hello
It would be ghreat to be able to set the default theme to dark instead of light.
你好,
感谢开发这么简洁漂亮的模板。关于主页配置/功能建议,有几个问题想要请教/交流:
菜单栏能否添加分类(category)或者标签(tags)一栏?
效果举例:
https://themes.gohugo.io//theme/hugo-theme-meme/categories/
https://hugoloveit.com/categories/
https://themes.gohugo.io//theme/hugo-theme-meme/tags/
https://hugoloveit.com/tags/
如何在日志中自动生成如下目录?需要在Configure.toml中配置还是要在post/_index.md
中添加呢?具体怎么操作?
以你的博文举例:https://www.wangchucheng.com/zh/posts/migration-from-nginx-to-envoy/
日志展示时能否仅显示摘要部分(而不是显示前XX字)?目前日志显示的是创作时间,阅读时长和分类,怎么添加其他属性呢(比如最后修改时间)?
我在archetypes/default.md
设置了如下默认参数。
使用hugo new post.md
时会自动填充date
和lastmod
为同一时间,如果我后续修改日志,如何自动更新lastmod
?
+++
title = "{{ replace .Name "-" " " | title }}"
date = "{{ .Date }}"
lastmod = "{{ .Date }}"
categories = [ ]
tags = [ ]
slug = ""
draft = false
+++
是否考虑支持Waline评论系统/Valine评论系统/utterances(基于 GitHub Issues 的评论系统)?
Waline官网:https://waline.js.org/
Valine官网:https://valine.js.org/index.html
utterances: https://github.com/utterance/utterances
别人写的静态博客系统比较:https://eallion.com/comments/
是否考虑添加搜索功能?
添加一个Github issue,以汇总使用该主题的用户及博客链接?
我自己对Hugo主题开发比较感兴趣,请问你是否有推荐的博客/教程?
谢谢解答!
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.