g1eny0ung / hugo-theme-dream Goto Github PK
View Code? Open in Web Editor NEW🌱 A Hugo theme named Dream.
Home Page: http://g1en.site/hugo-theme-dream/
License: MIT License
🌱 A Hugo theme named Dream.
Home Page: http://g1en.site/hugo-theme-dream/
License: MIT License
The update broke something in the single post view.
Hello!
1.- Is it possible to use youtube video previews as cover images? Right now i copy the static image thumbnail that youtube generates for it's site and use it as cover image but everything would look much cleaner if it was just the video with a description.
2.- Can the icon for Mastodon be added to the fonts file?
3.- If you add a tweet preview iframe to a post, the preview card may not resize to the card making it look bigger than the post tile.
I'm not sure how this could be adjusted. Since i'm guessing it's an issue with the tweet shortcode.
Love your theme, Thanks for your work and help.
Hello,
Is it possible to show posts image at individual post view?
How can manage date format to fit language configuration? ie: Spanish date is different from English and I supposed is different to Chinese too.
Thanks in advance !
Love the theme! I have a few posts that involve some code, I find syntax highlighting makes the code more engaging and easier to read. I have found out that Hugo can easily implement highlightjs. I have been able to get any theme I want working with your theme, but, I cannot figure out how to switch between two different highlightjs themes when toggling the theme. In Params I currently have:
[params]
highlightjsVersion = "10.1.2"
highlightjsCDN = "//cdnjs.cloudflare.com/ajax/libs"
highlightjsLang = ["r", "yaml"]
highlightjsTheme = "github"
background = "#252323"
I would like:
highlightjsThemeDark = "rainbow"
highlightjsThemeLight = "github"
Example for code highlighting in my post: https://koderkow.rbind.io/post/introduction-to-neural-networks/
I have tried setting up a light/dark variable, however, I have no experience with Hugo code so I have had a hard time trying to get this to work with your theme. Here is a link to my current work on the partials. I got the highlight js Hugo code from here.
Can I get some help implementing this?
Tags with Capital letters and spaces partially work now:
One post pages, they work as desired:
In header bock and /tags
page, display is also lower-case with hypens:
/tags
pageFrom looking at layouts/partials/header.html
it seems like it's designed to work as the URL includes {{ $name | urlize }}
but the link title
and innerHtml
are simply {{ $name }}
. It looks like the tag has already been urlized before being added to Site.Taxonomies
. Removing this looks like it should work.
It looks like they display correctly on posts pages because posts is reading them from the post without modification, but the header is reading them from a processed Site.Taxonomies
list.
I still getting up to speed on Hugo. Is this something this theme can resolve or is this a Hugo level issue?
layouts/_default/single.html
- displays correctly{{ $tag }}
shows upper case and spaces as desired{{ $tag | urlize }}
uses lower case with hyphens as desired <footer class="ui attached segment dream-tags" data-html2canvas-ignore>
{{ if isset .Params "tags" }}
{{ range $tag := .Params.tags }}
<a class="ui label" href="{{ "tags/" | relLangURL }}{{ $tag | urlize }}" title="{{ $tag }}">{{ $tag }}</a>
{{ end }}
{{ else }}
<a class="ui label">{{ i18n "noTag" }}</a>
{{ end }}
<div
class="ui label"
style="float: right; cursor: pointer;"
onclick="savePostAsImg()">
<i class="save icon"></i>{{ i18n "saveAsImage" }}
</div>
</footer>
layouts/partials/header.html
- displays with "URL slugs"{{ $name }}
uses lower case with hyphens - would like to change this to original tag name with upper case and spaces{{ $name | urlize }}
uses lower case with hyphens as desired {{ if .Site.Taxonomies.tags }}
<section class="ui attached center aligned segment dream-tags">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<a class="ui label" href="{{ "tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}">{{ $name }}</a>
{{ end }}
</section>
{{ end }}
您好,请问一下,这个文章保存为图片是如何实现的呢?
Hi,
I like the tiled layout for your theme. Could you let me know how one would go about such a layout for the loveit theme. I require it for a collaboration and love everything else about loveit theme. Any advice would be appreciated.
Note: only the arrangement of posts is what i am asking about. I think it should be pretty simple, but due to my inexperience with web development, Im not able to do it without some help
The related issue in loveit repo
dillonzq/LoveIt#332 (comment)
比如我有一个项目在码云,他和本地图片的规律保持一致。我不需要重新编译url地址:
码云地址https://gitee.com/xxxx/Blog
本地图片地址 /xxx/123.jpg
同样 码云也有这个文件 /xxx/123.jpg
完整地址就是https://gitee.com/xxxx/Blog/raw/master/xxx/123.jpg
还请大佬指点指点 感谢!
请问博文的阅读时间可以改吗,我的博文的阅读时间都是一分钟。
Hi,
How to have vertical scroll ?
On small computer screen size i need to have vertical scroll to allow users to have whole content.
Thanks,
Best regards
Pascall
This theme seems to be working great in my local development environment in Rstudio, but it generates some errors while deploying it to Netlify. I checked my code and it doesn't seem to have any error. All the error messages point to the layouts/partials/back.html:3:29.
I have also attached a screenshot of the complete errors as reported by netlify.
This is the link to my code
I removed the markup that shuffles images in list pages.
But, when terminology is selected, the shuffled images reappear.
I can't find the layout that controls this.
Hi
I noticed that the avatar is shown nicely on the start page.
However, if I filter articles by category or tag the avatar is not shown anymore and the small image not found icon appears.
My avatar image is in the /static folder and the config.toml parameter is like this
avatar = "raspberry-logo.jpg"
Any idea how to solve that ?
Hugo 0.31.1
Theme download from 7 Jan 2018
Hi, how are you?
This theme is great.
Could you kindly add Netlify CMS?
It would really help with workflow.
I am an avid blogger and would love to move from wordpress to jamstack and use this theme.
After facebook window pops out its shows source as localhost instead of the correct domain.
Hi @g1eny0ung.
A great theme, thanks for creating this.
I have a question. I like that the default covers are getting randomly assigned to the articles on the main page.
Is it possible to add more cover images that get randomly assigned?
I have see the parameter in the front matter to assign a specific image to a specific article, but is it possible to keep the random assinment with my own pictures ?
The page build failed for the master
branch with the following error:
The tag image
on line 129 in themes/dream/exampleSite/content/post/migrate-from-jekyll.md
is not a recognized Liquid tag. For more information, see https://help.github.com/articles/page-build-failed-unknown-tag-error/.
For information on troubleshooting Jekyll see:
大佬还望修复!!
创建了_index.md却没有显示归档,麻烦详细讲讲
Hello,
I did the following:
snap install hugo
hugo new site kapcom.gr
cd kapcom.gr
git clone https://github.com/g1eny0ung/hugo-theme-dream.git themes/dream
echo 'theme = "dream"' >> config.toml
hugo new posts/my-first-post.md
hugo server -D
and then browsed http://localhost:1313/ but the new post is not showing up.
$ hugo version
Hugo Static Site Generator v0.50 linux/amd64 BuildDate: 2018-10-29T12:39:37Z
Ciao, could you please add these new social?
I've already added them in partials:
{{ if .Site.Params.twitter }}
<div class="item">
<a href="https://www.twitter.com/{{ .Site.Params.twitter }}" target="_blank">
<i class="large twitter icon" title="twitter"></i>
</a>
</div>
{{ end }}
{{ if .Site.Params.facebook }}
<div class="item">
<a href="https://www.facebook.com/{{ .Site.Params.twitter }}" target="_blank">
<i class="large facebook icon" title="facebook"></i>
</a>
</div>
{{ end }}
{{ if .Site.Params.facebook }}
<div class="item">
<a href="https://www.instagram.com/{{ .Site.Params.twitter }}" target="_blank">
<i class="large instagram icon" title="instagram"></i>
</a>
</div>
{{ end }}
Also, I've added all social under the categories and tags button, it's looks great, it could be a new features.
Will there be support for multiple blog authors? E.g. with two containers for two people.
I have found (allegedly) such option in https://github.com/UtkarshVerma/hugo-dream-plus, but it's not being updated.
How to use pagination in this theme?
On latest firefox when you click the top left button to show the about page the view of it flipped still stays obstructing the view of the out page.
Do you have any ideas how to create action workflow for this ?
I also connected my Github Repository to forestry.io
I have images in the same directory as each posts index.md.
cover: front matter refers to the local image file.
They never appear.
Hello g1eny0ung. I am learning HUGO and web dev with your theme because it was one of the best documented, has multilingual support and it looks good too! I've been having a couple of issues and questions in which I hope you can help me and or guide me.
When viewing the site from a mobile phone the grid column with and the grid container padding size make the area of the content to be reduced which is causing the words in the content files to be cut in my languaje when displayed in the grid but not in the specific view of that site. Can the text in the homepage behave identical to the post page formatting?
Another similar issue is happening with emoji where they are not displaying in the grid but they do in the post view as visible in the screenshots.
Dates are having a similar problem where they don't display in some posts and in others it's in english instead of spanish in the case of my site.
These are more Feature Requests and questions than issues:
Can a site params be added to control de grid tightness or column with? Or how can this be done in the theme files? I understand that this can change the theme and you may not want to implement but since I don't know web development I'm lost about how to do this properly.
How should i change the reading minutes area at the bottom of the post container in the homepage to display the post's tags instead just like in the post view?
What does the showcase feature in the front matter do? I couldn't find any reference in the documentation and i'm not sure if you removed it in recent updates.
Sorry for the extensive post, I hope you can guide me and I hope you have a good day!
Edit: Removed picture overload. And the social sharing cards in 4 are not a problem anymore. I'll update on that later.
Hi there! I forked this theme and when I checked for vulnerabilities during deployment I found some, all related to the version of jquery
6:33:18 PM: ┌────────────────────────────────────────────────────────────────┐
6:33:18 PM: │ 3. onSuccess command from netlify-plugin-is-website-vulnerable │
6:33:18 PM: └────────────────────────────────────────────────────────────────┘
...
6:33:23 PM: Libraries:
6:33:23 PM: [*] jQuery 3.3.1
6:33:23 PM: [*] AMP 2005150002001
6:33:23 PM: Vulnerabilities:
6:33:23 PM: ⎡ ✖ [email protected]
6:33:23 PM: ⎜ ■■■ 3 vulnerabilities
6:33:23 PM: ⎣ ▶︎ https://snyk.io/vuln/npm:jquery?lh=3.3.1
6:33:23 PM: [3] Total vulnerabilities
6:33:23 PM: [2325.06ms] execution time
6:33:23 PM: vulnerabilities powered by Snyk.io (https://snyk.io/vuln?type=npm)
6:33:23 PM:
6:33:23 PM: ┌──────────────────────────────────────────────────────┐
6:33:23 PM: │ Plugin "netlify-plugin-is-website-vulnerable" failed │
6:33:23 PM: └──────────────────────────────────────────────────────┘
6:33:23 PM:
6:33:23 PM: Error message
6:33:23 PM: Error: site is vulnerable
6:33:23 PM:
6:33:23 PM: Plugin details
6:33:23 PM: Package: netlify-plugin-is-website-vulnerable
6:33:23 PM: Version: 1.0.8
6:33:23 PM: Repository: git+https://github.com/erezrokah/netlify-plugin-is-website-vulnerable.git
6:33:23 PM: npm link: https://www.npmjs.com/package/netlify-plugin-is-website-vulnerable
6:33:23 PM: Report issues: https://github.com/erezrokah/netlify-plugin-is-website-vulnerable/issues
6:33:23 PM:
6:33:23 PM: Error location
6:33:23 PM: In "onSuccess" event in "netlify-plugin-is-website-vulnerable" from netlify.toml
I dropped the latest version into place and it's working without issue for me. I wanted to let you knwo and say thanks again for the lovely theme :)
你好,很喜欢这个主题。我想咨询下,代码高亮后没有显示行号和复制按钮,目前是不支持吗。
Thank you for a great theme. I have one question: how to change font-size in this theme?
You always use name's blog as the title.
I found this and use .Parameters.title instead.
But, the change only appears on the home page.
When the navigator appears to the right, the blog name is changed. I can;t find the layout.
I think you have some layout definitons embedded in your js. You shouldn't do this.
I am now running a site called ezsh.xyz
When I run hugo
everything that needs to be in my public folder is there, but some of the links are incorrect.
links such as /post/gettingstarted/
end up in the html as /ezsh.xyz/post/gettingstarted/
.
Any idea why this might be ?
We built a hugo server on our home network earlier this year and had found your theme to be very nice, so thank you.
Question: your commit 9acb03e named "Split css" has changed the behavior of how our images are displayed. Wonder if we're doing something wrong. Now our jpg images are displayed at full resolution rather than being sized to fit the width of the desktop window or the mobile screen. They used to be sized to fit the available view port width.
We run the hugo server behind our home firewall so can't show the results, sorry. It's a project for the family. The pages all have the same problem for us. Each typically has a reference to a jpg file like
![Picture name](/img/photo.jpg)
I can see the file changes this commit made, but I don't understand hugo well enough to know where to start in narrowing things down easily. Can you offer a suggestion?
TIA.
hello 题主, 很喜欢你的主题。
不过在配置disqus的时候出了一点问题.
你的single.html里面写了discus提供的脚本,然后我就只在config.toml里面配置了disqusShortname。
但是每次提交在disqus上产生的标题都是同一个,以至于每篇文章的评论都是一样的。
请教一下题主解决方案😄
My site is www.mysite.com/demo/ and all the page, css and js are working well with the adding option "CanonifyURLs = true". but the issue is on the home button on the top left corner is link to the root dir instead of my sub dir /demo/ when i check in the index.html or 404.html i find out that it used javascript to link (onclick="window.location.href = '/'), so how to fix it without custom edit line by line and page by page?
Ciao, thanks for this great work.
With the dark mode feature, I noticed that the flip icon disappear on flipped ui.
I think it's only a
这款主题是我在hugo上找到最中意的一款,想当nice。
可是有一个问题现在正在困扰我,我发现并没有像多数hexo主题一样,有设置备案的选项。这对部署在国内服务器造成了困惑。
您好!
我很喜欢您的主题,尤其是亮色暗色主题切换,太炫酷了。
在使用您的主题的过程中,我产生了这样一个想法:在切换主题时同时切换背景。
我比较喜欢暗色主题,一直用的是暗色,背景图片也是根据暗色主题来配的。但是当我切换到亮色(或者用另一个设备第一次打开博客)的时候,亮色的主题和我设置的背景并不搭配。
还有几个小问题
由于我对前端知识以及Hugo知之甚少,自己并不能很好的解决这些问题,还烦请您帮忙。
祝:
身体健康!万事如意!
Hello @g1eny0ung
The pdemo homepage](https://themes.gohugo.io/theme/hugo-theme-dream/) currently renders empty.
You need to fix this.
Please have a look at the Hugo Themes README for instructions to check your theme with the Build Script.
Is it possible to get links working in description (summary) at frontpage?
Also is it possible to link image's post to url's post in frontpage?
thanks!
It will cause content can't be recognized
Because the color of font becomes white
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.