All Projects → jekylltools → jekyll-ideal-image-slider-include

jekylltools / jekyll-ideal-image-slider-include

Licence: MIT License
Add image sliders to Jekyll with Ideal Image Slider. HTML include version. Github Pages compatible. (This repository is archived. Issues are disabled. Pull requests will be ignored.)

Programming Languages

HTML
75241 projects

Projects that are alternatives of or similar to jekyll-ideal-image-slider-include

jekyll-ideal-image-slider
Add image sliders to Jekyll with Ideal Image Slider. Ruby plugin version. (This repository is archived. Issues are disabled. Pull requests will be ignored.)
Stars: ✭ 17 (-37.04%)
Mutual labels:  jekyll, slider, image-slider, jekyll-blog
Wu Kan.github.io
✨ my homepage & template for jekyll-theme-WuK
Stars: ✭ 171 (+533.33%)
Mutual labels:  jekyll, jekyll-blog
Adam Blog
Adam Blog is a minimal clear theme for Jekyll
Stars: ✭ 167 (+518.52%)
Mutual labels:  jekyll, jekyll-blog
mr-brown
Mr.Brown is a responsive Jekyll theme
Stars: ✭ 21 (-22.22%)
Mutual labels:  jekyll, jekyll-blog
Jekyll Theme Memoirs
Memoirs is a free minimalist Jekyll theme for those who love the beauty of simplicity.
Stars: ✭ 151 (+459.26%)
Mutual labels:  jekyll, jekyll-blog
Tmaize Blog
一款jekyll主题,简洁纯净,支持自适应,支持夜间模式
Stars: ✭ 152 (+462.96%)
Mutual labels:  jekyll, jekyll-blog
Jekyll Theme Massively
Preview
Stars: ✭ 187 (+592.59%)
Mutual labels:  jekyll, jekyll-blog
Dotx
💎 Simple & Beautiful Jekyll theme
Stars: ✭ 83 (+207.41%)
Mutual labels:  jekyll, jekyll-blog
Fastpages
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Stars: ✭ 2,888 (+10596.3%)
Mutual labels:  jekyll, jekyll-blog
Millennial
A minimalist Jekyll theme for running an online publication
Stars: ✭ 223 (+725.93%)
Mutual labels:  jekyll, jekyll-blog
Polyglot
🔤 Multilingual and i18n support tool for Jekyll Blogs
Stars: ✭ 242 (+796.3%)
Mutual labels:  jekyll, jekyll-blog
Affiliates Jekyll Theme
Affiliates - Jekyll Blogging Theme for Affiliate Marketers
Stars: ✭ 145 (+437.04%)
Mutual labels:  jekyll, jekyll-blog
Jekyll Embed Video
Embed videos in Jekyll webpages without a plugin (Youtube, Vimeo, Twitch, Streamable, Mixer, Google Drive clips + more)
Stars: ✭ 135 (+400%)
Mutual labels:  jekyll, jekyll-blog
Hacker Blog
Hacker-Blog is a minimalistic, responsive jekyll theme built for hackers. https://ashishchaudhary.in/hacker-blog
Stars: ✭ 156 (+477.78%)
Mutual labels:  jekyll, jekyll-blog
Simplest
💎 Simple and beautiful Jekyll theme
Stars: ✭ 129 (+377.78%)
Mutual labels:  jekyll, jekyll-blog
Paper Jekyll Theme
A minimal Jekyll theme for personal blogs
Stars: ✭ 172 (+537.04%)
Mutual labels:  jekyll, jekyll-blog
Jekyll Github Deploy
Jekyll Site Automated Deployer to GitHub Pages
Stars: ✭ 67 (+148.15%)
Mutual labels:  jekyll, jekyll-blog
Minimalism
Minimalism is a Jekyll theme for minimalist!
Stars: ✭ 74 (+174.07%)
Mutual labels:  jekyll, jekyll-blog
White Paper
Simple, elegant and clean jekyll theme.
Stars: ✭ 195 (+622.22%)
Mutual labels:  jekyll, jekyll-blog
jekyll-clean-dark
Dark clean theme for jekyll
Stars: ✭ 198 (+633.33%)
Mutual labels:  jekyll, jekyll-blog

Jekyll Ideal Image Slider Include

Add image sliders to Jekyll with Ideal Image Slider. HTML include version. No plugin necessary. Fully compatible with Github Pages.

View a live demo running on Github Pages. The code and configuration for the demo is in the gh-pages branch.

Installation

  1. Add Ideal Image Slider files to your site.

  2. Add _data/sliders.yml to your site.

  3. Add the _includes folder and all contents to your site.

  4. Include slider_styles.html in your theme head. Change the paths in this file to the location of the styles in your site.

    {% include slider_styles.html %}

  5. Include slider_scripts.html in your theme just before the </body> tag. Change the paths in this file to the location of the scripts in your site.

    {% include slider_scripts.html %}

Usage

Create a slider by adding data to _data/sliders.yml, adding a selector to the image_sliders front matter variable and including slider.html while passing in the slider selector. View the code in the gh-pages branch for a live example.

1. Create slider data

Create a slider by adding data to _data/sliders.yml. The format for slider data is shown below. See the Ideal Image Slider settings for a description of each setting. Note that bullets and captions are boolean (true/false) and classes is unsupported.

- selector:
  bullets:
  captions:
  images:
    - data-src:
      data-src-2x:
      src:
      title:
      alt:
      href:
  settings:
    height:
    initialHeight:
    maxHeight:
    interval:
    transitionDuration:
    effect:
    disableNav:
    keyboardNav:
    previousNavSelector:
    nextNavSelector:

Here is an example slider, with some images, alt text and captions:

- selector: example_slider
  captions: true
  images:
    - src: /img/1.jpg
      alt: image one
    - src: /img/2.jpg
      alt: image two
    - src: /img/3.jpg
      alt: image three
  settings:
    height: "'auto'"
    effect: "'fade'"

2. Add image_sliders front matter variable

Use the image_sliders variable to add slider selectors to the front matter of a page or layout. This tells Jekyll to load the correct slider scripts and styles on that page or layout:

image_sliders:
  - example_slider

3. Include slider.html

Include slider.html where you want the slider to appear within the page or layout. Pass the slider selector into the include. This tells Jekyll to search in _data/sliders.yml for slider data where the selector equals example_slider and use that data to create an image slider:

{% include slider.html selector="example_slider" %}

Sliders on index and archive pages

Set image_sliders_load_all: true in the front matter of an index page or archive page to load sliders in post content displayed on that page. For example if you are displaying post excerpts on your home page, set image_sliders_load_all: true and any image sliders appearing within post excerpts will load correctly on your home page.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].