Comments (8)
Thanks !! here the result: https://antivirus.tedic.org/ ;)
from hugo-theme-dream.
-
This is possible, but I think adding the post image in the individual post page may interfere with the sight, especially when just entering.
-
Yep, we should handle the date format in different languages. I'm already pushing a commit 5f15a23 to execute it.
But there have some jobs I need your help.
You can click the commit link above, copy the
zh.toml
content, create a new file namedes.toml
(Spanish), and paste. Then replace the weekday and month with Spanish.Last, follow the
summary.html
's change, add these codes:{{ if ... }} {{ else if eq .Site.Language.Lang "es" }} (Write Spanish date format here) {{ else }}
Related doc: https://gohugo.io/content-management/multilingual/#customize-dates
from hugo-theme-dream.
-
Can you help me with some advices to get it working for our case? Maybe we can put an if "show_covers = true" condition?
-
I created data folder and put es.toml there. Then I put this in summary:
{{ if eq .Site.Language.Lang "es" }}
{{ index .Site.Data.es.Weekday (printf "%d" .Date.Weekday) }},{{ .Date.Day }} de {{ index .Site.Data.es.Month (printf "%d" .Date.Month) }} de {{ .Date.Year }}
{{ else }}
{{ .Date.Format "Monday, Jan 2, 2006" }}
{{ end }}
but got this error:
Rebuild failed:
Failed to render pages: render of "home" failed: execute of template failed: template: index.html:14:9: executing "main" at <.Render>: error calling Render: failed to execute template ["summary"] v: "/usr/share/blog/themes/dream/layouts/_default/summary.html:21:7": execute of template failed: template: _default/summary.html:21:7: executing "_default/summary.html" at <index .Site.Data.es.Weekday (printf "%d" .Date.Weekday)>: error calling index: index of untyped nil
thanks !! 💚
from hugo-theme-dream.
-
Ok, I can put a config to show the summary image in the single post page.
Is your idea to put the image here?
-
Seems that you have weekday missing in the
es.toml
. You can give this repo a PR that I can help u to finish it,
from hugo-theme-dream.
-
Yes ! then I also can move it .. but not sure how to link there. Also I'm not sure where to put featured images, now I'm putting at dream/static/img but I think should be outside dream folder.
-
#131 💚
from hugo-theme-dream.
You can put your own images in your blog/static/
. All static resources' paths will relative to this folder.
from hugo-theme-dream.
@lupa18 I'm already finished the question 1.
Here is the doc: https://g1eny0ung.site/hugo-theme-dream/#/params-configurations?id=showsummarycoverinpost-true
from hugo-theme-dream.
Looks great!
from hugo-theme-dream.
Related Issues (20)
- JS is loaded from CDN and has no SRI HOT 5
- Lack of Subresource Integrity HOT 1
- 无法将最后修改时间设置为git提交时间 HOT 4
- Is it possible to use 2 different avatars on Home and About/flip? HOT 4
- i18n should be contained in 1 folder HOT 3
- Plan to rewrite with Bulma HOT 4
- Clicking on tags brings up broken XML page HOT 9
- Featured posts HOT 4
- Series Taxonomy HOT 3
- Search doesn't work in production HOT 3
- Any way to integrate terminal like code UI for sharing snippets? HOT 1
- Active fork HOT 3
- Demo is 404 HOT 2
- Stale bot spam HOT 2
- HUGO更新到v0.124.1之后生成站点出现报错 HOT 3
- 你好使用了您的主题,非常好 ,不过现在遇到了一个问题 HOT 14
- 请问首页怎样才能选择显示多少篇文章 HOT 6
- Support TOC in v3 HOT 2
- 请问我打开了TOC 不知道为什么页面并不显示目录。 HOT 13
- markdown的代码块部分缺少了滚动条 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-theme-dream.