Giter Club home page Giter Club logo

jekyll-breadcrumbs's Introduction

jekyll-breadcrumbs

Attention: This repository / app is no longer supported. There will be no further development.

Breadcrumb Example

Jekyll Version

Overview

Smart and fast breadcrumbs for posts, pages and collections with SEO support and more. Works as Jekyll Hook with Jekyll 3.x.

Features

  • Works with posts, pages and collections.
  • Breadcrumb title can differ from page title.
  • HTML5 compliant and includes a HTML template for quick integration.
  • SEO improved, implements Googles RDFA format.
  • Works with Pretty Permalinks.
  • Option to hides breadcrumbs on root page.
  • Supports an icon as root level breadcrumb item.
  • Works as Jekyll Hook, does not require an additional Ruby GEM.

Requirements

  • Jekyll 3.x

Installation

  1. Download the latest release and unpack the file.

  2. Copy the content of our folder _plugins into the same folder of your Jekyll repository. And copy at least the files nav-breadcrumbs.html, icon.html, icon.svg into your _includes folder.

  3. Include nav-breadcrumb.html, nav-breadcrumbs-icon.html into your Jekyll code where ever you want to place the breadcrumbs, e.g. within your footer.html by insert this code:

{% include nav-breadcrumbs.html %}
  1. Setup Jekyll _config.yml. Copy this YAML code to you _config.yml
breadcrumbs:
  root:
    hide: false  # show breadcrumbs on root/home page
    image: false # Show image or title text
  1. If you want to use a icon instead of text as Home breadcrumb put your code into _include/nav-breadcrumbs.icon.svg (in case of svg file).

Optional

  1. Transfer the example CSS code from nav-breadcrumbs.html into your css file. Modify the css as your like.
  2. If you want an icon as root sign in the breadcrumbs modify the file icon.svg.
  3. Use YAML title or crumbtitle to define the title of breadcrumb items.
---
title: Legal and Terms
---

or if you want a other text within the breadcrumb as the page title you can achieve this by adding the tag crumbtitle: in your YAML section of the page.

---
title: Legal and Terms
crumbtitle: Legal
---

YAML crumbtitle: is optional and overrules YAML title, in case you want a different title in breadcrumb item as the page title.

Example

If you are interessted how breadcrumbs look like, their is an example site included within folder site.

For Developers

You can use breadcrumbs in your own html code.
A breadcrumb is an array of crumb items within the actual page. Each crumb item represents a page/link and has two properties: url and title.
To get crumb items use liquid in your code:

{% for crumb in breadcrumbs %}
  <a href="{{ crumb.url }}">{{ crumb.title }}</a>
{% endfor %}

Docker

Build site with docker

docker run --rm --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" -it -p 4000:4000 -p 35729:35729 jekyll/jekyll:3.7.3 jekyll serve --livereload

More information at Docker at Github

License

See the LICENSE file.

jekyll-breadcrumbs's People

Contributors

git-no 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.