Git Product home page Git Product logo

manateelazycat.github.io's Introduction

manateelazycat.github.io's People

Contributors

cireu avatar evanmeek avatar hengistwang avatar manateelazycat avatar matthewzmd avatar namasikanam avatar ramsayleung avatar randomwangran avatar renwenshan avatar seagle0128 avatar ziqiangxu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

manateelazycat.github.io's Issues

project 里面有错字

aweshell
基于eshell开发的终端管理器插件,包括Shell命令补全、ZSH风格提示符、底部固定终端、Fish风格最佳匹配建议、语法高亮Cat命令、命令状态提示等高级功能。现在是我最长用的终端插件。

这里应该是常用吧。

本来想发pull request的,但是不知道在哪个文件改。

几处错别字

这些错别字都是无关重要,但我心情低落或者工作上遇到难题总喜欢看看勇哥的博客,总能给我力量。也不知能回报什么, 看到有些错字记了下来。

读《当下的力量》

接纳世间的好

读书分享与创业杂谈

为什么不参见今年的武汉马拉松
有时候你说服自己
流程就想做产品设计一样
你要清新自己目前还深处暗处
同僚之间大大桌面足球
企业文化就像上号的苏格兰威士忌一样

推荐读一下马克思

老王看了《史记》,感觉又豁达了许多。不知道有没有读过马克思哲学相关的书籍,马克思哲学的 “历史唯物主义” 部分和老王的感悟有许多共鸣之处。

RSS support

Hi, I am a reader of your blog, and before used some RSS reader to subscribe to your blog in JianShu by using RSSHub.

As you have migrated to GitHub to publish your posts, could you also provide RSS feed, so I can notice the update of your blog?

分页功能讨论

感谢勇哥的 Jekyll 博客,依您的样式为模版,套了一份

五笔小筑

Jekyll 的分页不太友好,这可能是您一直没有添加分页的原因吧,现在,我初步实现了分页,在配置文件中,它是这样的:

1: 安装分页的官方插件

gem install jekyll-paginate

2: config.yml 写入声明

plugins:
  - jekyll-feed
  - jekyll-paginate
paginate: 5
paginate_path: "page:num"

3: index.html中删掉旧的流式布局定义

{% for post in site.posts %}
...
...
...
{% endfor %}

4: layouts/home.html中添加新的分页定义:

https://github.com/98wb/98wb.github.io/blob/5662f0ea057cb1aeb5c68a3ce3a8c56ac4a84da9/_layouts/home.html#L17-L78

5: 清空「_site」,重新部署 jekyll server

如此以来,分页就生效了。「index.html」中的旧定义删掉,让「layouts/home.html」中的新定义来补充,就简单实现了可用的分页。

具体效果,见此

功能虽然实现了,但是缺点您也应当想到了,文章分页时,所有页面都将全部显示出来。如果总页码数量过多,必然造成版面突兀和撕裂。

从纯粹的 HTML 语言上,似乎有实现分页控制的可能性,比如:

https://www.cnblogs.com/llcdbk/p/5542498.html

该篇博客,以「10页显示上限」为例,做了代码展示。他的思路是很好的,如果总页码数量过多,可以转跳或变换显示页码。

如果纯粹的标签语言在实现上有问题,Jekyll 还有 JS 支持,能引入自己目录下的 JS 文件。比如,我就在网上扒着资料,给博客添加了 MathJax 支持,能显示 LaTex 数学公式:

https://github.com/98wb/98wb.github.io/tree/master/assets/js

关于可能有用的 Jekyll 内部变量,这里有一些:

https://jekyllcn.com/docs/pagination/

实际上具体分页的实现,我就是参照这个 Jekyll 官方中文文档实现的,但是它的代码与我们的博客样式不符,我已经做了适应于我们样式的修改,使它可用了。

这是目前已达成的效果和它的缺陷,以及弥补缺陷可能有用的思路与资料。

我对前端类的语言几乎一窍不通,很艰难地做了上述功课。在勇哥这里提 issue ,是希望勇哥可以更进一步,将分页功能在我们博客样式上的实现做得更丰满一些,如果转跳的实现有困难,即使仅能实现类似「10页显示上限」那位作者所展示的样子也够了。

文章数量过多时,流式布局有其天然的短板,如果勇哥太忙,也希望能采纳一下既有的,不太完美的实现,比如值设为「30~40」,以减少分页后得到的最终总页数。

https://github.com/98wb/98wb.github.io/blob/5662f0ea057cb1aeb5c68a3ce3a8c56ac4a84da9/_config.yml#L21

祝安,以上。

博客模板

你好,请问你博客的模板在哪找的,好看,能发个链接吗,感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.