olowolo / hugo-theme-even Goto Github PK
View Code? Open in Web Editor NEW🚀 A super concise theme for Hugo https://hugo-theme-even.netlify.app
Home Page: https://hugo-theme-even.netlify.app
License: MIT License
🚀 A super concise theme for Hugo https://hugo-theme-even.netlify.app
Home Page: https://hugo-theme-even.netlify.app
License: MIT License
打开disqus功能以后,所有页面的底部都会出现评论框。Home,Archives 等页面下并无添加评论功能的必要。请问如何能关闭除post正文之外其他页面下的评论功能?
Markdown中怎样使用本地图片?如 /static目录下的*.png
通常用 ![fig](/static/img.png)
来插入图片,在这个主题下,没有显示。
Now in front matter,
---
tags: "Configure Even"
---
would become configure-even
in tags
tab.
It'd be great to leave tags/categories as is, i.e.
keep the white space and the upper/lowercase,
because otherwise it's impossible.
I tried to find the setting in _tags.css yet failed.
I did find difference between it and hexo-theme-even,
yet which doesn't seem to affect this.
An example of hexo-theme-even.
Thanks for your awesome work.
rt
希望阿婆主考虑将 comment.html 的插入位置由 baseof.html 改为 partial/post/single.html ,这样可以保证只在博文中添加评论功能,避免在 about 等不想加评论的地方出现评论框。
hello!有个小白问题,我想给markdown的图片都加上边框,请问怎么设置啊?
我尝试在_custom.scss里加入一下代码, 好像并没有效果。
多谢!
img {
max-width: 100%;
height: auto;
display: inline-block;
vertical-align: middle;
border: 5px solid;
padding: 15px;
}
很喜欢这个主题,能否实现搜索功能了?
Hello,
Just noticed that the Sitemap
URL created in robots.txt
depends on whether we have a trailing slash in baseURL
. It might be much easier to let Hugo figure it out by using absURL
? https://gohugo.io/functions/absurl/
I'll send a PR in case you are interested in making this change. BTW, thanks for this theme. :)
在华为自带的浏览器,以及qq浏览器5.4.0.1100上,左上角的菜单按钮会变成一个横线,而在微信里面,却又是正常的三个横线。
如题
在手机端(4.7寸屏幕)上,较长的数学公式会直接向右超出边界,而不是和文字一起规约在一定的页宽内。是不是我哪里没有设置好?看到其他主题默认情况下也会出现这样的问题。先谢过up主了。
之前在hexo上有使用了两款插件,直接以markdown生成UML图,简单的例子生成顺序图:
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
有空能否考虑一下移植支持?项目链接在此:
I have in config.toml:
c-twitter = "https://twitter.com/valankar"
But I don't see any Twitter icon at the bottom.
操作系统 Debian 9
按照说明配置后,http://localhost:1313/
首页不显示文章内容,但手动输入地址可以显示内容。
以content/post/my-first-post.md
为例(目录中只有这么一个文件),手动输入http://localhost:1313/post/my-first-post/
,可以显示内容。
点击Archives
,浏览器地址为http://localhost:1313/post/
,也没有文章列表显示。
quickstart/config.toml
是按照说明从even
主题目录中复制过去的,几乎没有更改其中的参数值。
我需要如何操作才能在主页正常显示文章列表(如demo展示的那样)。
Hey there! Great theme, thanks so much. I just posted on Stackoverflow an issue I experienced with the theme in blogdown - link to the issue
Basically, after the site build and serve operations are run, the index.html file from the .Rmd post uses to close code chunks on the same line as the remainder of the code chunk. For some reason, this seems to cause the theme to drop a line of code.
I'm sad because I get build errors when trying to use your theme. Here are the steps I'm using:
Install hugo
go get -u -v github.com/gohugoio/hugo
hugo env
> Hugo Static Site Generator v0.34-DEV darwin/amd64 BuildDate:
> GOOS="darwin"
> GOARCH="amd64"
> GOVERSION="go1.9.2"
Create site, install theme
cd ~/Desktop
hugo new site theme-test
cd ~/Desktop/theme-test
git clone https://github.com/olOwOlo/hugo-theme-even themes/even
echo 'theme = "even"' >> config.toml
Run build with 0 or more pages and BOOM:
hugo
> Building sites … ERROR 2018/01/22 10:38:32
> Error while rendering "taxonomyTerm"
> in "": template: /Users/mbgray/Desktop/theme-test/themes/even/layouts/_default/terms.html:11:5:
> executing "/Users/mbgray/Desktop/theme-test/themes/even/layouts/_default/terms.html" at <partial "head.html" ...>:
> error calling partial: template: theme/partials/head.html:13:116:
> executing "theme/partials/head.html" at <safeHTML>: wrong number of args for safeHTML: want 1 got 0
I believe this is some kind of issue with something in the partial.
Hi, @olOwOlo ,
一般个人站点经常会加点统计代码,比如cnzz的,我每次是更新本主题后再手动加到footer中去,感觉不太好,不知道其他人是怎么做的,你建议的方式是什么啊?
I followed the directions in the readme to setup the theme, then created a new draft with hugo new posts/foo.md
. Now when I run hugo server -D
the site starts and the theme is shown correctly, but the contents in foo.md
are not shown on the page. How do I create posts for this theme?
有个选项来控制?
如何指定output文件?
以及配置中的
`
[mediaTypes]
[mediaTypes."text/plain"]
suffix = "md"
[outputFormats.MarkDown]
mediaType = "text/plain"
isPlainText = true
isHTML = false
[outputs]
home = ["HTML", "RSS"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
taxonomyTerm = ["HTML"]
`
是做什么用的?
请大家指导.
如果你更改了 /src/ 目录下的任意文件,你需要重新编译它们
cd ./themes/even/src/
npm install
npm run build
不知道win下需要装什么东西?请教
目前用的时候,提示是没有这个命令。
npm,win下怎么装?
正确$$A_{k}{G_i}$$
错误$$A_{k}{G_{i}}$$
,将两个 _ 解析成了<em>
,结果是<p>$$A<em>{k}{G</em>{i}}$$</p>
而且这样也是正确的 $$A_k{G_i}$$
data 目录的 default.toml 文件中,lincese 拼写错误,应为 license。
小问题,不影响网页的展示。
因为是从其他博客系统迁移过来的,所以很多老文章都是在文章内自定义url的(用url="xx"来指定),一直可以的,今天更新后发现旧文章都404了
I want to add the icon for the german social media network xing https://www.xing.com/ to the icon font.
I can't find out where the icon font came from.
Can you tell me that?
Best Regards,
Sascha
Error while rendering "taxonomy" in "": template: \layouts_default\taxonomy.html:4:17: executing "content" at <.Paginate>: error calling Paginate: 'pager size' must be a positive integer
不知道怎么处理???
现在归档页只有上一页、下一页,想要跳转到某一页就会很麻烦。建议添加 1 2 3 4 5 ... 跳转页
Language: 语言文件在 /themes/even/data/even/ 目录下。在你的 data 目录下创建一个 even 目录并复制 default.toml 文件到你的 /data/even/ 目录下,之后你可以按照自己需求更改它。
按照步骤设置后,无效。
标题写得有点绕,背景如下:
post
和 game
,把技术类文章和其他文章分开。我发现 layouts/_default/section.html
和 layouts/_default/taxonomy.html
里写死了section:
{{- $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }}
把条件去掉后问题就解决了:
{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
请问当初是出于什么考虑写死的?我有没有遗漏了什么?
我的博客已经按上面那样改了,现在来自任何section的分类/标签点进去都能看到列表:
home 界面列出来的文章能按时间排序吗?
When I add embed gist in my MD file, the compiled page cannot show it correctly.
For Example:
Liz Rice 的代码如下:
<script src="https://gist.github.com/julz/c0017fa7a40de0543001.js"></script>
The compiled page shows that the gist style .gist .blob-num {width: 1%;}
conflicted with the style .post .post-content .highlight td {width: 100%;}
in _code.scss:72.
https://github.com/gitalk/gitalk
gitalk 与 gitment 类似,但是界面更加美观,希望阿婆主考虑一下。
hugo很方便,现在内网环境使用,但js/css资源文件都是自动使用cdn,
导致js-sequence无法展示。
我本地hack了一个,能用,想请教是否可以给个pull request.
hugo is good, I use it in intranet. Browser can't download some js/css files.
js-sequence / flowchart are not working...
I hacked on copy, should I send a PR?
https://github.com/vinta/pangu.js
是否可以考虑加入这个,排版更好看
如何在even中增加对echarts的支持
Thank you for this great theme! Can I ask how one can put a banner on just the homepage?
[[menu.main]]
name = "Products"
weight = 50
identifier = "pro"
url = "/pro/"
然后我在content/pro/products.md里写入:
+++
author = "fanux"
date = "2014-07-11T10:54:24+02:00"
draft = false
title = "产品列表"
slug = "dotscale-2014-as-a-sketch"
tags = ["event","dotScale","sketchnote"]
image = "images/2014/Jul/titledotscale.png"
comments = true # set false to hide Disqus comments
share = true # set false to share buttons
menu = "" # set "main" to add this content to the main menu
+++
然而发现并没有显示什么内容,怎么破?
如题,我在markdown里面增加了frontmatter:
summary = "xxxx"
但是没有解析出来,但是readmore之前的确实是能够解析出来
如题,怎么自动切换en.toml和zh-CN.toml,目前貌似只采用default.toml
首先感谢作者贡献这么美观的主题 @olOwOlo
现在在移动端尝试了几台设备,iPad,iPhone, 以及微信内置浏览器都能正常工作,但一个华为手机点击菜单按钮无反应
看到 layouts/post/single.html 里 {{ with .NextInSection }}
和 {{ with .PrevInSection }}
的位置跟里面的文字和class名都反了,是写错了还是故意的?
<!-- Post Pagination -->
<nav class="post-nav">
{{ with .NextInSection }}
<a class="prev" href="{{ .URL }}">
<i class="iconfont icon-left"></i>
<span class="prev-text nav-default">{{ .Title }}</span>
<span class="prev-text nav-mobile">{{ T "prevPost" }}</span>
</a>
{{- end }}
{{ with .PrevInSection }}
<a class="next" href="{{ .URL }}">
<span class="next-text nav-default">{{ .Title }}</span>
<span class="prev-text nav-mobile">{{ T "nextPost" }}</span>
<i class="iconfont icon-right"></i>
</a>
{{- end }}
</nav>
另外最下面那个class prev-text
是不是应该为 next-text
?
虽然哪个都没影响,目前在 src/css/_partial/_post/_footer.scss
无论是 pre-text 还是 next-text 都没定义……
博客中有 共计x个分类
共计x个标签
,但是没有 共计x篇文章
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.