kaeyleo / jekyll-theme-h2o Goto Github PK
View Code? Open in Web Editor NEW🎉 A clean and delicate Jekyll theme. Jekyll博客主题
Home Page: http://liaokeyu.com
License: MIT License
🎉 A clean and delicate Jekyll theme. Jekyll博客主题
Home Page: http://liaokeyu.com
License: MIT License
在手机上查看 发现遇到代码块卡的厉害。。
iPhone手机在微信浏览器和safari里面都有点卡。
post的封面图和page2的封面图都找不到
无法使用搜索
PC端首页壁纸替换 只显示部分图片 不能很好缩略整张壁纸 跪求改善!!!
index页面浏览向下滚动时
1、能否固定显示“个人简介”部分?
2、能否新增回到顶部按钮?
绿色的小锁就没了。
这个问题我解决了
首先我们在prism的官网看到js占了一大半,所以我们可以肯定的是js是显示的主要部分
选中你要的部分,然后下载js和css,替换原来的
push上去或者直接127.0.0.1(建议push上去)
然后网页加载完毕之后(tips:看刷新键是否是刷新的样子),F12调出审查元素,点network(网络),然后点一下红点(有一个开始的红点的,按一下会变成灰色,同时下面会有“F5 xxxxx”),F5刷新。
网页加载再次成功后,检查一下prism.js是否有加载,如果有那么正常情况下是能显示正常的,如果只有css没有js的话,将layout里头的加载prism.js的片段扯出来放到和(include文件头里有两种head,两种都要加)里头(head头是一定会读取的)。再push上去,一般情况下就能解决了。
大家好:
长话短说。
问题描述:fork了该主题之后,修改了仓库的setting里的name为,adongliang.github.io
但是访问一直是404.
谢谢各位解答,这是fork仓库地址。
https://github.com/adongliang/adongliang.github.io
Your theme has been posted on https://jekyll-themes.com
测试时候 发现手机和电脑均不能自适应文章内容
现在看是硬编码了一个8页,能否动态调整一下?
{% for page in (1..paginator.total_pages) %}
{% if page > 8 %}
<span class="page-link page-num">...</span>
{% break %}
{% endif %}
{% if page == paginator.page %}
<span class="page-link page-num active">{{ page }}</span>
{% elsif page == 1 %}
<a href="{{ site.baseurl }}" class="page-link page-num">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}" class="page-link page-num">{{ page }}</a>
{% endif %}
{% endfor %}
谢谢。
clone到本地 运行jekyll serve 后出错,错误如下:
jekyll 3.5.1 | Error: incompatible character encodings: UTF-8 and GBK
照搬townwang.com 的博客的css和js后(因为他的代码框正常),双重代码框是没有了,但是post的代码框不见了,代码背景没了
直接clone到本地,简单修改了下_config.yml文件,运行jekyll server,截图中的描述信息没有显示在底部,尝试回退所有修改,还是一样。 @kaeyleo
I use code
and it look not very well.so how can i do this
您好,照搬了一下您的主题,但是似乎代码高亮功能无效?
https://peiyusi.github.io/2018/05/05/next_permutation.html
js failed and also the css
sns 社交账号信息建议添加豆瓣
我替换了favicon和logo,网页上显示不出来
是还有哪里需要修改吗
直接使用 demo 进行 jekyll serve 报错如下
[2017-10-13 08:33:01] ERROR /技术/2017/04/18/assets/js/prism.js' not found. [2017-10-13 08:33:01] ERROR
/技术/2017/04/18/assets/js/index.min.js' not found.
[2017-10-13 08:33:01] ERROR /技术/2017/04/uploads/test_cover.png' not found. [2017-10-13 08:33:01] ERROR
/技术/2017/04/18/assets/js/index.min.js' not found.
如题,现象就是如 https://www.zhangqirun.cn/c%E8%AF%AD%E8%A8%80/2018/01/17/%E6%AD%A3%E7%A1%AE%E7%94%A8%E7%BC%96%E7%A8%8B%E8%A7%A3%E5%86%B3%E6%95%B0%E5%AD%A6%E9%A2%98%E7%9A%84%E5%A7%BF%E5%8A%BF.html 我的这个文章所表现的一样,显示的时候代码框没有了,字体勉强看的清楚。但手机端就会有黑色背景,不过就是代码不高亮,我用的是C语言。还有就是代码不能自动换行,这点困扰我很久了。
当前版本直接clone后jekyll server 第二页不能成功加载 css 提示路径错误。
C:\Users\Administrator\Desktop\jekyll_demo\jekyll-theme-H2O>jekyll server
jekyll 3.5.2 | Error: (C:/Users/Administrator/Desktop/jekyll_demo/jekyll-theme-H2O/_config.yml): could not find expected ':' while scanning a simple key at line 64 column 1
line64 是 gems: [jekyll-paginate]
官方发来邮件说“You are currently using the 'kramdown`' Markdown engine, which is no longer supported by GitHub Pages and may cease working at any time”
要怎么解决?
已解决: 直接修改index 。html 就行 ,但是不要用记事本打开修改 我就是用记事本打开出的错
自己写了一个归档页面,供大家参考
---
title: Archives
layout: default
---
{% include header.html %}
<div class="g-banner tags-banner {{ site.postPatterns | prepend: 'post-pattern-' }} {{ site.theme-color | prepend: 'bgcolor-' }}" data-theme="{{ site.theme-color }}">
<h2>ARCHIVES</h2>
</div>
<main class="tags-content" style="margin-top: 0px">
<ul class="tags-list" style="padding:40px">
{% for post in site.posts %}
{% unless post.next %}
<h3 style="margin-bottom: 8px">{{ post.date | date: "%b-%Y" }}</h3>
{% else %}
{% capture year %}{{ post.date | date: "%b, %Y" }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: "%b, %Y" }}{% endcapture %}
{% if year != nyear %}
<h3 style="margin-bottom: 8px">{{ post.date | date: "%b-%Y" }}</h3>
{% endif %}
{% endunless %}
<li>
<a href="{{ post.url }}" style="color: black">{{ post.date | date:"%b-%-d-%Y" }} {{ post.title }}</a>
</li>
{% endfor %}
</ul>
</main>
{% include footer.html %}
不支持以下checkbox语法:
- [x] 已完成
- [ ] 未完成
Github默认是支持的:
How to reduce spacing between character in the subtitle, h1?
This doesn't look good for latin.
https://pasteboard.co/GSx0ZB9.png
Thank you.
如:<link rel="stylesheet" href="/assets/css/github-markdown.css">
应该为:<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/github-markdown.css">
部分链接也应该加上baseurl才能正常访问
修改了侧边栏显示最新文章 , 以及友情链接 , 集成了github的评论,并调整了css适应夜间模式. 不过没有弄你的连接 , 介意的话说一声.可加
在 _layouts/post.html中加入下面这段代码,然后行内公式不能显示
http://pickou.cn/blog/2017/12/24/hierarchical-attention-networks.html
主题做得很简洁,很好看。试过了很多主题,这个主题做得很nice!
<!-- mathjax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
text2jax: {
inlineMath: [['$','$'], ['\\(', '\\)']],
processEscape: true
}
});
</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
你好
感謝樓主提供這個主題
最近有使用了一下
感覺相當美觀
後來發覺部署的時候會有個問題 (直接使用 github build from master branch)
就是 site.baseurl
的值會變成空的
導致一些頁面無法正常顯示
和這個 issue 有關
也找到了一些修正方法
repo 如下: https://github.com/bamboofox/bamboofox.github.io
把 _config.yml
裡的 baseurl: '/' => ''
"{{site.baseurl}}"
=> "/{{site.baseurl}}"
如果有確認這問題
看要不要我發個 pull request 來改一下
這樣以後就不會有人遇到這問題
如有說錯請指正我
感謝你
建议增加搜索框,编译的时候分词生成 json 或者直接链接到搜索引擎site: example.com
也可以。
clone GitHub 上的 demo,然后设置
recommend-tags: true
recommend-condition-size: 1
运行 server 后在 tag.html 和右侧个人信息处也没有展示对应的 tag。
页面上直接输出{{ site.recommend-tags }} {{ site.tags.size>0 }}
,第一个是 true,第二个是空白。
不太熟悉 jekyll,麻烦看下。
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.