Coder Social home page Coder Social logo

guang1234567 / jekyll-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from androiddevelop/jekyll-search

0.0 1.0 0.0 50 KB

jekyll post search plugin

Home Page: http://codeboy.me

License: Apache License 2.0

HTML 16.38% CSS 28.13% JavaScript 55.50%

jekyll-search's Introduction

Jekyll-Search

jekyll博客搜索插件

hexo博客搜索插件请前往 Hexo-Search

截图

jekyll-search.jpg

也可以打开http://codeboy.me查看效果

操作

  1. 点击右下角图标进行搜索
  2. 双击ctrl键进行搜索或关闭
  3. 搜索页面点击右上角关闭按钮关闭搜索试图

加入步骤

  1. 将search目录放至于博客根目录下,其中search目录结构如下:

     search
     ├── cb-footer-add.html
     ├── cb-search.json
     ├── css
     │   └── cb-search.css
     ├── img
     │   ├── cb-close.png
     │   └── cb-search.png
     └── js
         ├── bootstrap3-typeahead.min.js
         └── cb-search.js
    
  2. _include/footer.html 中的 </footer> 后加入 cb-footer-add.html 中的内容即可。

注意事项

1.需要事先引入jquery与**bootstrap3(js与css文件)**框架,如果没有的话,操作如下:

_include/head.html 中引入以下代码:

<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css">

_include/footer.html 中引入以下代码:

<!-- jQuery -->
<script src="//cdn.bootcss.com/jquery/2.2.2/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="//cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>

bootstrap3-typeahead.min.js 的引入必须在jquery.min.js引入之后,即在footer.html中的行数更靠后!

2.默认联想8个,如果需要更多的话,请检索 bootstrap3-typeahead.min.js 中的items:8, 将8替换成自己需要的数值。

  1. 文章标题请不要使用回车等符号,回车等符号会造成json解析错误。

更新历史

v1.0.2

  • 添加错误console输出。

v1.0.1

  • 增加firefox支持。

v1.0.0

  • 支持jekyll中进行文章搜索。

有任何问题何以发送邮件到[email protected]进行交流。

jekyll-search's People

Contributors

androiddevelop avatar

Watchers

James Cloos avatar

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.