首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
Jekyll
›
http://jekyllrb.com/
Jekyll on GitHub
›
https://github.com/mojombo/jekyll
Jekyll-bootstrap
›
http://jekyllbootstrap.com/
Octopress
›
http://octopress.org/
V2EX
›
Jekyll
Jekyll 2 默认主题在 Chrome/WebKit 上那个不太正常的 header 高度
Livid
·
2014-05-10 19:30:02 +08:00
· 2991 次点击
这是一个创建于 3936 天前的主题,其中的信息可能已经有所发展或是发生改变。
你的 Jekyll 2 默认主题的 header 在 Chrome 上是不是看起来像这样的:
我这里发现的解决办法是打开 _includes/header.html 然后修改一下 trigger 里的逻辑,这是修改之后的:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
<div class="trigger">
{% for page in site.pages %}
{% if page.title %}
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
{% endif %}
{% endfor %}
</div>
view raw
header.html
hosted with ❤ by
GitHub
目前尚无回复
header
Jekyll
Chrome
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
1006 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms ·
UTC 20:10
·
PVG 04:10
·
LAX 12:10
·
JFK 15:10
Developed with
CodeLauncher
♥ Do have faith in what you're doing.