Giter VIP home page Giter VIP logo

jekyllpopu's Introduction

Jekyll crash course: https://gist.github.com/furilo/68fb9faf5d73e98f1f0c

Install

Clone repo and install

git clone [email protected]:PopulateTools/jekyllpopu.git
cd jekyllpopu
bundle install

Start application in local environment

jekyll serve -w --future

Article tools

By default, an image in a post will take the full width of the column. Options:

Inline image Add the class "inline":

{% img 'articles/160404-main_article-01' class:'inline' %}

Full width image Add the class "full_width":

{% img 'articles/160404-main_article-01' class:'full_width' %}

Add classes f_right and f_left to make the image slideout of the column in either direction.

Image captions

If you want to show a caption of the image, you can add an attribute title to the img, and a class caption to make it show. If you only add the title, it will function as the normal html title element. Example:

{% img 'articles/00Divorce/160403-wadus-1' class:'full_width caption' title:'Caption of the image' %}

Tweet box (box that appears in side as you scroll)

Just include the following code (the system will include the corresponding link for the tweet) between the paragrahs where you want the tweet box to appear as the user scrolls:

{% social_share TEXT %}

Example:

{% social_share The text I want to be part of the tweet %}

Galleries

Based of Magnific Popup. Two types:

  1. Centered image, meta data below photo: class "popup-gallery"
  2. Image on the left, meta data on the right: classes "popup-gallery popup-gallery-full"

The internal markup for listing photos is the same.

<div class="popup-gallery clearfix" id="gallery">

  <div class="item"><a href="URL/TO/IMG" 
    title="Title of the photo"
    subtitle="Description of the photo. ">
      <img src="URL/TO/IMG" >
  </a></div>

  <div class="item"><a href="URL/TO/IMG" 
    title="Title of the photo"
    subtitle="Description of the photo. ">
      <img src="URL/TO/IMG" >
  </a></div>

</div>

jekyllpopu's People

Contributors

furilo avatar

Stargazers

Ignacio Giri avatar

Watchers

Fernando Blat avatar  avatar James Cloos avatar  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.