Skip to content

Custom liquid tag for using John Sundell's excellent Swift syntax highlighter Splash with your Jekyll blog.

Notifications You must be signed in to change notification settings

mannberg/splashtag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

splashtag

This is a custom liquid tag for using John Sundell's excellent Swift syntax highlighter Splash with your Jekyll blog.

Prerequisites

  • A global install of the SplashHTMLGen tool on the same computer as your Jekyll installation.

Installation

  • Put the splashtag.rb file in the _plugins folder of your Jekyll repository

_plugins/splashtag.rb

  • Put the _splash.scss file in the _sass folder of your Jekyll repository. For example, if you're overriding the Minima theme, put it in the _sass/minima folder
_base.scss
_layout.scss
_splash.scss            
_syntax-highlighting.scss
  • Then import it as follows in the minima.scss file
@import
  "minima/base",
  ...
  ...
  "minima/splash"
;

Usage

{% splash %}
guard let user = User(name: "Dohn Joe", emailAddress: validAddress) else {
    return
}
{% endsplash %}

An example of this tag in action can be seen here

About

Custom liquid tag for using John Sundell's excellent Swift syntax highlighter Splash with your Jekyll blog.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published