warmhug / warmhug.github.com

博客内容

Home Page:http://warmhug.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

主页

查看

http://warmhug.github.io/

tips

  • 文件名不要以下划线开始,不然访问不到
  • 文件名不要包含单双引号,空格
  • 文件内容,不能包含下划线

jekyll用了 liquid 作为模板,{{、}}、{%、%}等可能做了liquid的模板语言标记 被解析掉。若要显示这些,用

{% raw %}
...lots of liquid code goes here and it doesn't get interpreted...
{% endraw %}

jekyll 本地服务器调试

# 安装 https://jekyllrb.com/docs/
jekyll serve     # http://localhost:4000/index.html
jekyll serve --host 0.0.0.0    # http://ip:4000/index.html


皮肤 https://jekyll-themes.com/minima-reboot/

_includes/head.html 里的 {% seo %} 报错,可加入以下 Google 统计代码

{% if jekyll.environment == 'production' and site.google_analytics %}
  {% include google-analytics.html %}
{% endif %}

index.md 里原来的 post 代码

<!-- {% for post in site.posts limit:10 %} -->

其他

需要 assets 文件夹引用 _sass 里的文件 https://jekyllrb.com/docs/assets/

About

博客内容

http://warmhug.github.io/


Languages

Language:HTML 71.4%Language:SCSS 24.8%Language:Ruby 3.8%