Awesome
<h1 align="center"> <a href="https://github.com/jeffreytse/jekyll-spaceship"> <img alt="spaceship β~ jekyll" src="https://raw.githubusercontent.com/jeffreytse/jekyll-spaceship/master/logos/jekyll-spaceship-logo.png" width="400"> </a> <br> π Jekyll Spaceship π <br> </h1> <h4 align="center"> <a href="https://jekyllrb.com" target="_blank"><code>Jekyll</code></a> plugin for Astronauts. </h4> <p align="center"> <a href="https://travis-ci.org/jeffreytse/jekyll-spaceship"> <img src="https://travis-ci.org/jeffreytse/jekyll-spaceship.svg?branch=master" alt="CI Status" /> </a> <a href="http://badge.fury.io/rb/jekyll-spaceship"> <img src="https://badge.fury.io/rb/jekyll-spaceship.svg" alt="Gem Version" /> </a> <a href="https://codeclimate.com/github/jeffreytse/jekyll-spaceship"> <img src="https://codeclimate.com/github/jeffreytse/jekyll-spaceship/badges/gpa.svg" alt="Code Climate" /> </a> <a href="https://codeclimate.com/github/jeffreytse/jekyll-spaceship/test_coverage"> <img src="https://api.codeclimate.com/v1/badges/cd56b207f327603662a1/test_coverage" alt="Test Coverage" /> </a> <a href="https://github.com/jeffreytse/jekyll-spaceship/blob/master/LICENSE.txt"> <img src="https://img.shields.io/badge/License-MIT-brightgreen.svg" alt="License" /> </a> <a href="http://badge.fury.io/rb/jekyll-spaceship"> <img src="https://img.shields.io/gem/dt/jekyll-spaceship" alt="Download Data" /> </a> </p> <p align="center"> <a href="https://liberapay.com/jeffreytse"> <img src="http://img.shields.io/liberapay/goal/jeffreytse.svg?logo=liberapay" alt="Donate (Liberapay)" /> </a> <a href="https://patreon.com/jeffreytse"> <img src="https://img.shields.io/badge/support-patreon-F96854.svg?style=flat-square" alt="Donate (Patreon)" /> </a> <a href="https://ko-fi.com/jeffreytse"> <img height="20" src="https://www.ko-fi.com/img/githubbutton_sm.svg" alt="Donate (Ko-fi)" /> </a> </p> <div align="center"> <h4> <a href="#installation">Install</a> | <a href="#configuration">Config</a> | <a href="#usage">Usage</a> | <a href="#credits">Credits</a> | <a href="#license">License</a> </h4> </div> <div align="center"> <sub>Built with β€οΈ by <a href="https://jeffreytse.net">jeffreytse</a> and <a href="https://github.com/jeffreytse/jekyll-spaceship/graphs/contributors">contributors </a> </div> <br>Spaceship is a minimalistic, powerful and extremely customizable Jekyll plugin. It combines everything you may need for convenient work, without unnecessary complications, like a real spaceship.
<p align="center"> <img alt="Jekyll Spaceship Demo" src="https://user-images.githubusercontent.com/9413601/82250463-15451780-997e-11ea-8809-f411586d9508.gif" /> </p>π‘ Tip: I hope you enjoy using this plugin. If you like this project, a little star for it is your way make a clear statement: My work is valued. I would appreciate your support! Thank you!
Table of Contents
- Requirements
- Installation
- Configuration
- Usage
- Credits
- Contributing
- License
Requirements
- Ruby >= 2.3.0
Installation
Add jekyll-spaceship plugin in your site's Gemfile
, and run bundle install
.
# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'jekyll-spaceship'
end
Or you better like to write in one line:
gem 'jekyll-spaceship', group: :jekyll_plugins
Add jekyll-spaceship to the plugins:
section in your site's _config.yml
.
plugins:
- jekyll-spaceship
π‘ Tip: Note that GitHub Pages runs in safe
mode and only allows a set of whitelisted plugins. To use the gem in GitHub Pages, you need to build locally or use CI (e.g. travis, github workflow) and deploy to your gh-pages
branch.
Additions for Unlimited GitHub Pages
- Here is a GitHub Action named jekyll-deploy-action for Jekyll site deployment conveniently. π
- Here is a Jekyll site using Travis to build and deploy to GitHub Pages for your references.
Configuration
This plugin runs with the following configuration options by default. Alternative settings for these options can be explicitly specified in the configuration file _config.yml
.
# Where things are
jekyll-spaceship:
# default enabled processors
processors:
- table-processor
- mathjax-processor
- plantuml-processor
- mermaid-processor
- polyfill-processor
- media-processor
- emoji-processor
- element-processor
mathjax-processor:
src:
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
config:
tex:
inlineMath:
- ['$','$']
- ['\(','\)']
displayMath:
- ['$$','$$']
- ['\[','\]']
svg:
fontCache: 'global'
optimize: # optimization on building stage to check and add mathjax scripts
enabled: true # value `false` for adding to all pages
include: [] # include patterns for math expressions checking (regexp)
exclude: [] # exclude patterns for math expressions checking (regexp)
plantuml-processor:
mode: default # mode value 'pre-fetch' for fetching image at building stage
css:
class: plantuml
syntax:
code: 'plantuml!'
custom: ['@startuml', '@enduml']
src: http://www.plantuml.com/plantuml/svg/
mermaid-processor:
mode: default # mode value 'pre-fetch' for fetching image at building stage
css:
class: mermaid
syntax:
code: 'mermaid!'
custom: ['@startmermaid', '@endmermaid']
config:
theme: default
src: https://mermaid.ink/svg/
media-processor:
default:
id: 'media-{id}'
class: 'media'
width: '100%'
height: 350
frameborder: 0
style: 'max-width: 600px; outline: none;'
allow: 'encrypted-media; picture-in-picture'
emoji-processor:
css:
class: emoji
src: https://github.githubassets.com/images/icons/emoji/
Usage
1. Table Usage
For now, these extended features are provided:
- Cells spanning multiple columns
- Cells spanning multiple rows
- Cells text align separately
- Table header not required
- Grouped table header rows or data rows
Noted that GitHub filters out style property, so the example displays with the obsolete align property. But in actual this plugin outputs style property with text-align CSS attribute.
Rowspan and Colspan
^^ in a cell indicates it should be merged with the cell above.
This feature is contributed by pmccloghrylaing.
| Stage | Direct Products | ATP Yields |
| -----------------: | --------------: | ---------: |
| Glycolysis | 2 ATP ||
| ^^ | 2 NADH | 3--5 ATP |
| Pyruvaye oxidation | 2 NADH | 5 ATP |
| Citric acid cycle | 2 ATP ||
| ^^ | 6 NADH | 15 ATP |
| ^^ | 2 FADH | 3 ATP |
| 30--32 ATP |||
Code above would be parsed as:
<table> <thead> <tr> <th align="right">Stage</th> <th align="right">Direct Products</th> <th align="right">ATP Yields</th> </tr> </thead> <tbody> <tr> <td align="right" rowspan="2">Glycolysis</td> <td align="right" colspan="2">2 ATP</td> </tr> <tr> <td align="right">2 NADH</td> <td align="right">3β5 ATP</td> </tr> <tr> <td align="right">Pyruvaye oxidation</td> <td align="right">2 NADH</td> <td align="right">5 ATP</td> </tr> <tr> <td align="right" rowspan="3">Citric acid cycle</td> <td align="right" colspan="2">2 ATP</td> </tr> <tr> <td align="right">6 NADH</td> <td align="right">15 ATP</td> </tr> <tr> <td align="right">2 FADH2</td> <td align="right">3 ATP</td> </tr> <tr> <td align="right" colspan="3">30β32 ATP</td> </tr> </tbody> </table>Multiline
A backslash at end to join cell contents with the following lines.
This feature is contributed by Lucas-C.
| : Easy Multiline : |||
| :----- | :----- | :------ |
| Apple | Banana | Orange \
| Apple | Banana | Orange \
| Apple | Banana | Orange
| Apple | Banana | Orange \
| Apple | Banana | Orange |
| Apple | Banana | Orange |
Code above would be parsed as:
<table> <thead> <tr> <th align="center" colspan="3">Easy Multiline</th> </tr> </thead> <tbody> <tr> <td align="left">Apple<br>Apple<br>Apple</td> <td align="left">Banana<br>Banana<br>Banana</td> <td align="left">Orange<br>Orange<br>Orange</td> </tr> <tr> <td align="left">Apple<br>Apple</td> <td align="left">Banana<br>Banana</td> <td align="left">Orange<br>Orange</td> </tr> <tr> <td align="left">Apple</td> <td align="left">Banana</td> <td align="left">Orange</td> </tr> </tbody> </table>Headerless
Table header can be eliminated.
|--|--|--|--|--|--|--|--|
|β| |β|β|β|β|β|β|
| |β|β|β| |β|β|β|
|β| |β| | | | | |
| |β| | |β| | | |
| | | | |β| | | |
| | | | | |β| | |
|β|β|β|β| |β|β|β|
|β|β|β|β|β| | |β|
Code above would be parsed as:
<table> <tbody> <tr> <td>β</td> <td></td> <td>β</td> <td>β</td> <td>β</td> <td>β</td> <td>β</td> <td>β</td> </tr> <tr> <td></td> <td>β</td> <td>β</td> <td>β</td> <td></td> <td>β</td> <td>β</td> <td>β</td> </tr> <tr> <td>β</td> <td></td> <td>β</td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td>β</td> <td></td> <td></td> <td>β</td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td>β</td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td>β</td> <td></td> <td></td> </tr> <tr> <td>β</td> <td>β</td> <td>β</td> <td>β</td> <td></td> <td>β</td> <td>β</td> <td>β</td> </tr> <tr> <td>β</td> <td>β</td> <td>β</td> <td>β</td> <td>β</td> <td></td> <td></td> <td>β</td> </tr> </tbody> </table>Cell Alignment
Markdown table syntax use colons ":" for forcing column alignment.
Therefore, here we also use it for forcing cell alignment.
Table cell can be set alignment separately.
| : Fruits \|\| Food : |||
| :--------- | :-------- | :-------- |
| Apple | : Apple : | Apple \
| Banana | Banana | Banana \
| Orange | Orange | Orange |
| : Rowspan is 4 : || How's it? |
|^^ A. Peach || 1. Fine :|
|^^ B. Orange ||^^ 2. Bad |
|^^ C. Banana || It's OK! |
Code above would be parsed as:
<table> <thead> <tr> <th align="center" colspan="3">Fruits || Food </tr> </thead> <tbody> <tr> <td align="left">Apple<br>Banana<br>Orange</td> <td align="center">Apple<br>Banana<br>Orange</td> <td align="left">Apple<br>Banana<br>Orange</td> </tr> <tr> <td align="center" rowspan="4" colspan="2"> Rowspan is 4 <br>A. Peach <br>B. Orange <br>C. Banana </td> </tr> <tr> <td align="left">How's it?</td> </tr> <tr> <td align="right">1. Fine<br>2. Bad</td> </tr> <tr> <td align="left">It' OK!</td> </tr> </tbody> </table>Cell Markdown
Sometimes we may need some abundant content (e.g., mathjax, image, video) in Markdown table
Therefore, here we also make markown syntax possible inside a cell.
| : MathJax \|\| Image : |||
| :------------ | :-------- | :----------------------------- |
| Apple | : Apple : | Apple \
| Banana | Banana | Banana \
| Orange | Orange | Orange |
| : Rowspan is 4 : || : How's it? : |
| ^^ A. Peach || 1. ![example][cell-image] |
| ^^ B. Orange || ^^ 2. $I = \int \rho R^{2} dV$ |
| ^^ C. Banana || **It's OK!** |
[cell-image]: https://jekyllrb.com/img/octojekyll.png "An exemplary image"
Code above would be parsed as:
<table> <thead> <tr> <th align="center" colspan="3">MathJax || Image </tr> </thead> <tbody> <tr> <td align="left">Apple<br>Banana<br>Orange</td> <td align="center">Apple<br>Banana<br>Orange</td> <td align="left">Apple<br>Banana<br>Orange</td> </tr> <tr> <td align="center" rowspan="4" colspan="2"> Rowspan is 4 <br>A. Peach <br>B. Orange <br>C. Banana </td> </tr> <tr> <td align="center">How's it?</td> </tr> <tr> <td align="left"> <ol> <li><img width="100" src="http://latex2png.com/pngs/82b913db54a9f303bed7197d11347d74.png"></img></li> <li><img width="150" src="https://jekyllrb.com/img/octojekyll.png" title="An exemplary image"></img></li> </ol> </td> </tr> <tr> <td align="left"><b>It' OK!</b></td> </tr> </tbody> </table>Cell Inline Attributes
This feature is very useful for custom cell such as using inline style. (e.g., background, color, font)
The idea and syntax comes from the Maruku package.
Following are some examples of attributes definitions (ALDs) and afterwards comes the syntax explanation:
{:ref-name: #id .cls1 .cls2}
{:second: ref-name #id-of-other title="hallo you"}
{:other: ref-name second}
An ALD line has the following structure:
- a left brace, optionally preceded by up to three spaces,
- followed by a colon, the id and another colon,
- followed by attribute definitions (allowed characters are backslash-escaped closing braces or any character except a not escaped closing brace),
- followed by a closing brace and optional spaces until the end of the line.
If there is more than one ALD with the same reference name, the attribute definitions of all the ALDs are processed like they are defined in one ALD.
An inline attribute list (IAL) is used to attach attributes to another element.
Here are some examples for span IALs:
{: #id .cls1 .cls2} <!-- #id <=> id="id", .cls1 .cls2 <=> class="cls1 cls2" -->
{: ref-name title="hallo you"}
{: ref-name class='.cls3' .cls4}
Here is an example for custom table cell with IAL:
{:color-style: style="background: black;"}
{:color-style: style="color: white;"}
{:text-style: style="font-weight: 800; text-decoration: underline;"}
|: Here's an Inline Attribute Lists example :||||
| ------- | ------------------ | -------------------- | ------------------ |
|: :|: <div style="color: red;"> < Normal HTML Block > </div> :|||
| ^^ | Red {: .cls style="background: orange" } |||
| ^^ IALs | Green {: #id style="background: green; color: white" } |||
| ^^ | Blue {: style="background: blue; color: white" } |||
| ^^ | Black {: color-style text-style } |||
Code above would be parsed as:
<img width="580px" src="https://user-images.githubusercontent.com/9413601/88461592-738afb00-ced7-11ea-9aac-3179023742b0.png" alt="IALs">Additionally, here you can learn more details about IALs.
2. MathJax Usage
MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers.
Some of the main features of MathJax include:
- High-quality display of LaTeX, MathML, and AsciiMath notation in HTML pages
- Supported in most browsers with no plug-ins, extra fonts, or special setup for the reader
- Easy for authors, flexible for publishers, extensible for developers
- Supports math accessibility, cut-and-paste interoperability, and other advanced functionality
- Powerful API for integration with other web applications
2.1 Performance optimization
At building stage, the MathJax engine script will be added by automatically checking whether there is a math expression in the page, this feature can help you improve the page performance on loading speed.
2.2 How to use?
Put your math expression within $...$
$ a * b = c ^ b $
$ 2^{\frac{n-1}{3}} $
$ \int\_a^b f(x)\,dx. $
Code above would be parsed as:
<image alt="MathJax Expression" height="180" src="https://user-images.githubusercontent.com/9413601/82814245-5a5ed180-9ec9-11ea-9d5b-fba303c627ac.png"></image>
3. PlantUML Usage
PlantUML is a component that allows to quickly write:
- sequence diagram,
- use case diagram,
- class diagram,
- activity diagram,
- component diagram,
- state diagram,
- object diagram
There are two ways to create a diagram in your Jekyll blog page:
```plantuml!
Bob -> Alice : hello world
```
or
@startuml
Bob -> Alice : hello
@enduml
Code above would be parsed as:
4. Mermaid Usage
Mermaid is a Javascript based diagramming and charting tool. It generates diagrams flowcharts and more, using markdown-inspired text for ease and speed.
It allows to quickly write:
- flow chart,
- pie chart,
- sequence diagram,
- class diagram,
- state diagram,
- entity relationship diagram,
- user journey,
- gantt
There are two ways to create a diagram in your Jekyll blog page:
```mermaid!
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 35
```
or
@startmermaid
pie title Pets adopted by volunteers
"Dogs" : 386
"Cats" : 85
"Rats" : 35
@endmermaid
Code above would be parsed as:
5. Media Usage
How often did you find yourself googling "How to embed a video/audio in markdown?"
While its not possible to embed a video/audio in markdown, the best and easiest way is to extract a frame from the video/audio. To add videos/audios to your markdown files easier I developped this tool for you, and it will parse the video/audio link inside the image block automatically.
For now, these media links parsing are provided:
- Youtube
- Vimeo
- DailyMotion
- Spotify
- SoundCloud
- General Video ( mp4 | avi | ogg | ogv | webm | 3gp | flv | mov ... )
- General Audio ( mp3 | wav | ogg | mid | midi | aac | wma ... )
There are two ways to embed a video/audio in your Jekyll blog page:
Inline-style:
![]({media-link})
Reference-style:
![][{reference}]
[{reference}]: {media-link}
For configuring media attributes (e.g, width, height), just adding query string to the link as below:
![](https://www.youtube.com/watch?v=Ptk_1Dc2iPY?width=800&height=500)
![](https://www.dailymotion.com/video/x7tfyq3?width=100%&height=400&autoplay=1)
Youtube Usage
![](https://www.youtube.com/watch?v=Ptk_1Dc2iPY)
![](//www.youtube.com/watch?v=Ptk_1Dc2iPY?width=800&height=500)
Vimeo Usage
![](https://vimeo.com/263856289)
![](https://vimeo.com/263856289?width=500&height=320)
DailyMotion Usage
![](https://www.dailymotion.com/video/x7tfyq3)
![](https://dai.ly/x7tgcev?width=100%&height=400)
Spotify Usage
![](http://open.spotify.com/track/4Dg5moVCTqxAb7Wr8Dq2T5)
<image width="600" src="https://user-images.githubusercontent.com/9413601/89762618-5d11b000-db23-11ea-81db-35cc3682b234.png">
Spotify Podcast Usage
![](https://open.spotify.com/episode/31AxcwYdjsFtStds5JVWbT)
<image width="600" src="https://user-images.githubusercontent.com/9413601/133599796-1d213033-8184-4059-9ec2-5415e50c94dc.png">
SoundCloud Usage
![](https://soundcloud.com/aviciiofficial/preview-avicii-vs-lenny)
<image width="600" src="https://user-images.githubusercontent.com/9413601/89762969-1c666680-db24-11ea-97e3-4340f7fac7ac.png">
General Video Usage
![](//www.html5rocks.com/en/tutorials/video/basics/devstories.webm)
![](//techslides.com/demos/sample-videos/small.ogv?allow=autoplay)
![](//techslides.com/demos/sample-videos/small.mp4?width=400)
General Audio Usage
![](//www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3)
![](//www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3?autoplay=1&loop=1)
<image width="300" src="https://user-images.githubusercontent.com/9413601/89762143-68181080-db22-11ea-8467-e8b2a8a96ae5.png">
6. Hybrid HTML with Markdown
As markdown is not only a lightweight markup language with plain-text-formatting syntax, but also an easy-to-read and easy-to-write plain text format, so writing a hybrid HTML with markdown is an awesome choice.
It's easy to write markdown inside HTML:
<script type="text/markdown">
# Hybrid HTML with Markdown is a not bad choice ^\_^
## Table Usage
| : Fruits \|\| Food : |||
| :--------- | :-------- | :-------- |
| Apple | : Apple : | Apple \
| Banana | Banana | Banana \
| Orange | Orange | Orange |
| : Rowspan is 4 : || How's it? |
|^^ A. Peach || 1. Fine :|
|^^ B. Orange ||^^ 2. Bad |
|^^ C. Banana || It's OK! |
## PlantUML Usage
@startuml
Bob -> Alice : hello
@enduml
## Video Usage
![](https://www.youtube.com/watch?v=Ptk_1Dc2iPY)
</script>
7. Markdown Polyfill
It allows us to polyfill features for extending markdown syntax.
For now, these polyfill features are provided:
- Escape ordered list
7.1 Escape Ordered List
A backslash at begin to escape the ordered list.
Normal:
1. List item Apple.
3. List item Banana.
10. List item Cafe.
Escaped:
\1. List item Apple.
\3. List item Banana.
\10. List item Cafe.
Code above would be parsed as:
Normal:
1. List item Apple.
2. List item Banana.
3. List item Cafe.
Escaped:
1. List item Apple.
3. List item Banana.
10. List item Cafe.
8. Emoji Usage
GitHub-flavored emoji images and names would allow emojifying content such as: it's raining :cat:s and :dog:s!
Noted that emoji images are served from the GitHub.com CDN, with a base URL of https://github.githubassets.com, which results in emoji image URLs like https://github.githubassets.com/images/icons/emoji/unicode/1f604.png.
In any page or post, use emoji as you would normally, e.g.
I give this plugin two :+1:!
Code above would be parsed as:
I give this plugin two :+1:!
8.1 Emoji Customizing
If you'd like to serve emoji images locally, or use a custom emoji source, you can specify so in your _config.yml
file:
jekyll-spaceship:
emoji-processor:
src: "/assets/images/emoji"
See the Gemoji documentation for generating image files.
9. Modifying Element Usage
It allows us to modify elements via CSS3 selectors
. Through it you can easily
modify the attributes of an element tag, replace the children nodes and so on,
it's very flexible, but here is example usage for modifying a document:
# Here is a comprehensive example
jekyll-spaceship:
element-processor:
css:
- a: '<h1>Test</h1>' # Replace all `a` tags (String Style)
- ['a.link1', 'a.link2']: # Replace all `a.link1`, `a.link2` tags (Hash Style)
name: img # Replace element tag name
props: # Replace element properties
title: Good image # Add a title attribute
src: ['(^.*$)', '\0?a=123'] # Add query string to src attribute by regex pattern
style: # Add style attribute (Hash Style)
color: red
font-size: '1.2em'
children: # Add children to the element
- # First empty for adding after the last child node
- "<span>Google</span>" # First child node (String Style)
- # Middle empty for wrapping the children nodes
- name: span # Second child node (Hash Style)
props:
prop1: "1" # Custom property1
prop2: "2" # Custom property2
prop3: "3" # Custom property3
children: # Add nested chidren nodes
- "<span>Jekyll</span>" # First child node (String Style)
- name: span # Second child node (Hash Style)
props: # Add attributes to child node (Hash Style)
prop1: "a"
prop2: "b"
prop3: "c"
children: "<b>Yap!</b>" # Add children nodes (String Style)
- # Last empty for adding before the first child node
- a.link: '<a href="//t.com">Link</a>' # Replace all `a.link` tags (String Style)
- 'h1#title': # Replace `h1#title` tags (Hash Style)
children: I'm a title! # Replace inner html to new text
Example 1
Automatically adds a target="_blank" rel="noopener noreferrer"
attribute to all external links in Jekyll's content.
jekyll-spaceship:
element-processor:
css:
- a: # Replace all `a` tags
props:
class: ['(^.*$)', '\0 ext-link'] # Add `ext-link` to class by regex pattern
target: _blank # Replace `target` value to `_blank`
rel: noopener noreferrer # Replace `rel` value to `noopener noreferrer`
Example 2
Automatically adds loading="lazy"
to img
and iframe
tags to natively load lazily.
Browser support is growing. If a browser does not support the loading
attribute, it will load the resource just like it would normally.
jekyll-spaceship:
element-processor:
css:
- a: # Replace all `a` tags
props: #
loading: lazy # Replace `loading` value to `lazy`
In case you want to prevent loading some images/iframes lazily, add
loading="eager"
to their tags. This might be useful to prevent flickering of
images during navigation (e.g. the site's logo).
See the following examples to prevent lazy loading.
jekyll-spaceship:
element-processor:
css:
- a: # Replace all `a` tags
props: #
loading: eager # Replace `loading` value to `eager`
There are three options when using this method to lazy load images. Here are the supported values for the loading attribute:
- auto: Default lazy-loading behavior of the browser, which is the same as not including the attribute.
- lazy: Defer loading of the resource until it reaches a calculated distance from the viewport.
- eager: Load the resource immediately, regardless of where itβs located on the page.
Credits
- Jekyll - A blog-aware static site generator in Ruby.
- MultiMarkdown - Lightweight markup processor to produce HTML, LaTeX, and more.
- markdown-it-multimd-table - Multimarkdown table syntax plugin for markdown-it markdown parser.
- jmoji - GitHub-flavored emoji plugin for Jekyll.
- jekyll-target-blank - Automatically opens external links in a new browser for Jekyll Pages, Posts and Docs.
- jekyll-loading-lazy - Automatically adds loading="lazy" to img and iframe tags to natively load lazily.
- mermaid - Generation of diagram and flowchart from text in a similar manner as markdown.
Contributing
Issues and Pull Requests are greatly appreciated. If you've never contributed to an open source project before I'm more than happy to walk you through how to create a pull request.
You can start by opening an issue describing the problem that you're looking to resolve and we'll go from there.
License
This software is licensed under the MIT license Β© JeffreyTse.