Jektify is a Gem for entering track, playlist, albums and artists in Jekyll templates.


Lasted version  1.0.7


Table of contents


Why does Jektify exist?

Beautiful and Customizable, much more appealing than a simple “iframe”!

Jektify is a jewel using to enter a theme for track entry, playlist, albums and artists of Spotify, in Jekyll templates.

Besides inserting music is fully responsive, adjusting as your page layout, even on mobile devices.

You need to install, so let’s mission:

You can see the dependencies of gem Jektify through Gemnasium. All dependencies are listed.

With Jektify running, it uses dependency on JQuery.

Get Jektify

Add Jektify to your Gemfile and run the command: bundle install:

group :jekyll_plugins do
  gem "jektify"

or run command:

gem install jektify

Setting up

Setting up your stylesheet using Jekyll SASS

If you use CSS Jekyll, insert this line in the manifest main.scss SASS of your project:

@import "jektify";

Note: It is advisable to insert the end of all imports

I do not use SASS Jekyll, now what?

If you do not use the SASS Jekyll, the Jektify also solves this constraint, keep reading Configuration file “_config.yml” and find out how to configure without needing to use the Jekyll SASS manager.

Configuration file “_config.yml”

Now, you need to configure the file _config.yml your theme Jekyll.

The following lines should be inserted:

  - jektify

  enable: true
  open: true
    enable: true  
    user: williamcanin
    text: See me no Spotify
    jekyll: true
      dir: "way/to/your/SASS"   
    enable: true
    text: "Jektify"
    enable: true
    text: |
      Jekyll plugin to generate html snippets for embedding Spotify Musics.
      To listen to the full song, open your Spotify and start these musics.

What does each option do?

[ Line 2 ] Report for Jekyll use Jektify.

[ Line 5 ] - Option: [ true / false ] Enables or disables the plugin for all site.

[ Line 6 ] - Option: [ true / false ] In this line you define whether you want the “Jektify” let the music box in open or closed mode in page. Remember that if the “toggle => enable” option is set to false, any value in this option will have no implication.

If a different value of these two themes is inserted, the Jekyll Spotify Plugin will have operation error.

[ Line 8 ] - Option [ true / false ] This feature enables you to enable or disable the Toggle function of the Jektify. If it is set to true a button in the upper right corner will exist for an action to scroll and unroll the window. If the value is equal to false, the button will not exist, only open window will be created, this causes the javascript of Jektify not to be generated for the user, because the scrolling and unwinding depends on the script.

[ Line 10 ] - Option [ user Spotify ] Put your Spotify user on this line to create a redirect button in the Spotify online player. If name or text are empty, the Jektify will not render this option. So, if you do not want to use it, leave the values with nothing.

[ Line 11 ] - Option [ text ] Here is the custom text that the redirect button will have. Put a very attractive and short.

[ Line 13 ] Option [ true / false ] This line is very important! In it you will define using the build SASS Jekyll or other compilation of SASS, as the Gulp. If you use the Jekyll, let true. If you do not use SASS of Jekyll leaves to false.

[ Line 15 ] Option [ path ] If the line 13 is false, you should inform the way the vendor folder of your SASS files. For example: If you store your SASS files in the src/sass/vendor, then that is the way you have to put in the variable dir.

After setting the path and build the project, a folder will be created to export the SASS of Jektify, in the path of the dir . With this, you must load the exported SASS in your manifest (main.scss). For example:

@import "{way/to/your/SASS/vendor}/jektify/jektify"

[ Line 17 and 20 ] - Option: [ true / false ] If you want a title or description, leave to true. Otherwise, leave as false.

[ Line 18 and 21 ] If the line 17 (or line 20) is in the true, enter your title (or description) in variable text. So if you want a title and content inside the music box…use true.

Importing JavaScript

ATTENTION! Using Javascript in the Jektify will only be necessary if the Toggle feature is set to true at line 8(eight) in “Configuration file _config.yml”. Before you begin, you must import the JQuery for your project.

After setting the _config.yml file and imported the SASS of Jektify, you must import the JavaScript Jektify for HTML. The Jektify copy the Javascript to the folder of the compiled site _site.


Do import JavaScript in _layout/default.html at the end of </ body>, like this:

{ % if site.jektify.enable == true and site.jektify.toggle.enable == true % }
<script src="{ { "/assets/vendor/jektify/js/jektify.min.js" | prepend: site.baseurl } }" ></script>
{ % endif % }

Note 1: Do not leave space between { { and } }, { % and % }

Note 2: Do not forget to load the script Jektify after JQuery.

Importing Javascript with CDN:

You can use CDN of the respective version:


<script src="<VERSION>/js/jektify.min.js"></script>

You can see the CDNs of the other [VERSION] in:

Jektify - CDN Versions

Note: It is recommended to use the “stable” version. In case of error, use the version according to Jektify. If you do not have the Jektify version on CDN, the “stable” version is also used.

Importing CSS using CDN

If you want to use CDN for CSS, do this:

<link rel="stylesheet" href="<VERSION>/css/jektify.min.css">

You can see the CDNs of the other [VERSION] in:

Jektify - CSS Versions

Note: It is recommended to use the “stable” version. In case of error, use the version according to Jektify. If you do not have the Jektify version on CDN, the “stable” version is also used.


How does Jektify work?

The Jektify capture songs, playlists and albums from artists in the Spotify, by URI code distributed by Spotify. You can do this by the Spotify application on your computer or through Spotify in the browser.

First you have to get the URL of the song, album, playlist, of artist you want. An easy way to know how to do this is in the Spotify of support documentation, here.

See an illustrative picture of how to capture the URI in Spotify Player:

Capture URI

It will open a dialog, when open click URI to copy.

What you will get looks like this:


The Jektify will use this URI, the only difference being that instead of being : will be /. See below how it works.

Tag Jektify

The Jektify it works with the following tags:

{ % jektify spotify/[type]/[id]/[theme] % }

Note: There can be no spaces between the keys. This here for the Jektify does not come into work.

Note that there are three (3) parameters, all separated by slash. Let us know what each one does:

[type] Option [ track / album / playlist / artist ]

  • This is the parameter with more options, it will inform you, that the ID Jektify will insert, if a track, album, playlist or artist.

[id] Option [ id ]

  • Here is the track ID, album, playlist, artist constituted by an extension number.

[theme] Option [ white / dark ]

  • Here you put a theme, Spotify makes available 2 (two) at the moment, the “dark” and the “light”.


{ % jektify spotify/track/62qsgMnY4wg8nE5qjyOdWO/dark % }

{ % jektify spotify/playlist/48brJJZdVifY79QAFmEImq/light % }

{ % jektify spotify/artist/711MCceyCBcFnzjGY4Q7Un/dark % }

{ % jektify spotify/album/6OwvO40ahugJE5PH4TjqTg/light % }

Note: Do not leave spaces between the keys.

You don’t have Spotify player installed on your machine?

In this case you can use the Spotify Web. The method is a little different but not difficult. You will have to copy the link of the song, artist or playlist like this:

Capture Link

You have something like this:

What we need in this link is just the following excerpt:


The category, which can be track, playlist, or artist, plus the ID. Formatting our URL to Jektify would look like this:

{ % jektify spotify/track/08mG3Y1vljYA6bvDt4Wqkj/dark % }

Note: Do not leave spaces between the keys.



Jektify already has a suitable customization for sensitive layouts, but still leaves a case of personalization itself, the user chooses the themes at hand and the way it fits into your page template.

To customize to your liking, use the class .jektify in your stylesheets (SASS). Use your browser’s developer tool. E.g: Google Dev Tools, to know which classes to change.

The class structure .jektify this is:

NOTE: You should put CSS properties inside the subclass “–custom”.

  &--custom{ }


Here is examples of how the “Jektify” will behave in your page:


jektify © 2021  +


jektify © 2021  +


jektify © 2021  +


jektify © 2021  +

Report questions / Feedbacks

You can take questions in GitHub Issues.


If you liked my work, buy me a coffee <3



The gem is available as open source under the terms of the MIT

Copyright (c) 2021 William Canin