
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Turbolinks is a Javascript library for accelerating web navigation by preventing the browser to reload the full page, thus making it reload Javascript and CSS.
This plugin enables Turbolinks in all generated pages and adds Liquid
tags to insert turbolinks.js
into your template in case you want to
include in your Javascript.
Add jekyll-turbolinks
to your Gemfile
:
group :jekyll_plugins do
gem 'jekyll-turbolinks'
end
And add it to your _config.yml
file:
plugins:
- jekyll-turbolinks
# Optional
turbolinks:
enabled: true # Set to false if you want to use the tag
url: turbolinks.js
You can also control if you want a page to have turbolinks disabled by adding this to its front matter:
---
turbolinks: false
---
That's it! Turbolinks will be loaded and enabled by default.
Keep in mind that if you're not using relative urls you must set the turbolinks
path to an absolute path, like so:
turbolinks:
url: /turbolinks.js
To add it manually call the turbolinks
Liquid tag to insert the actual
contents of turbolinks.js
into your Javascript file.
---
# The triple dashes are needed for Jekyll to process this file as a
# Liquid template
---
{% turbolinks %}
// ... rest of your Javascript
And call it from your _layouts/default.html
file:
<head>
<script type="text/javascript" src="path/to/file.js"></script>
</head>
Copyright (c) 2019 Sutty hi@sutty.nl
jekyll-turbolinks is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
jekyll-turbolinks is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with jekyll-turbolinks. If not, see https://www.gnu.org/licenses/.
FAQs
Unknown package
We found that jekyll-turbolinks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.