GithubHelp home page GithubHelp logo

splashtag's Introduction

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

splashtag's People

Contributors

mannberg avatar insidegui avatar

Stargazers

Vojta Stavik avatar İlker Furkan KAHYALAR avatar Declan McKenna avatar Aaron Connolly avatar Marcos Griselli avatar Suraj Pathak avatar  avatar Ellen Teapot avatar Moritz Lang avatar  avatar Maciej Gad avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

splashtag's Issues

Netlify Support?

Hey first of all thanks for making this it's very useful and I've enjoyed using it.

Can this plugin work with hosting platforms like netlify? Everything runs perfectly locally but not on netlify. I suspect it's because netlify's build server doesn't have Splash installed so I'm likely asking the impossible but thought I'd check all the same if there's a way to enable this plugin to work on a build server.

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.