jekyll-plugins | A collection of Jekyll plugins and generators | Static Site Generator library
kandi X-RAY | jekyll-plugins Summary
kandi X-RAY | jekyll-plugins Summary
A collection of Jekyll plugins and generators that I've written for recursive-design.com
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new zip directory .
- Generate the contents of a page .
- Clones the repository .
- Create a sitemap file .
- Creates a new category .
- Renders the categories for a given category .
- Generate the URL for a given site .
- Loop through the list of categories .
- Find the version of a directory
- Find project files
jekyll-plugins Key Features
jekyll-plugins Examples and Code Snippets
Community Discussions
Trending Discussions on jekyll-plugins
QUESTION
I have a custom Jekyll plugin — specifically, a generator — that I need to run after another plugin, jekyll-titles-from-headings
. However, the other plugin has a generator that specifies that it is of :lowest
(i.e. latest running) priority.
The temporary solution I have thrown together also specifies :lowest
priority and just so happens to run after jekyll-titles-from-headings
, but for reasons that I cannot discern. What I want is to have a declaration in my own generator class that guarantees my plugin after this other generator.
In my own generator class, I have tried overriding the comparison operators that appear to control plugin ordering to (in a hacky manner) hardcode a comparison result of -1
for my class. That had no effect. I tried specifying a custom @priority
value of -200
(since it appears that :lowest = -100
). That didn't compile.
How can I guarantee that my generator always runs after this one other generator plugin? If there were some way to specify it as a post-requisite to the other generator, that would be ideal.
...ANSWER
Answered 2021-Feb-21 at 23:40It's an absolute hack, but you can override the spaceship method for a plugin with the following:
QUESTION
I have absolutely never written any Ruby programs. I'm just setting up my static blog using Jekyll.
I installed everything from Gemfile by bundle install
. My Gemfile looks like this:
ANSWER
Answered 2018-Apr-16 at 09:22Try one of the following:
Run
jekyll
commands in the context of theGemfile
:
QUESTION
This is the first time that I am going to use Jekyll to build a static site. I would like to use a dozen plugins that are not white listed for deploying on Github. My question is : is it possible to deploy a such site with a dozen plugins (not white listed) on github ? Browsing on internet, I found the following assertions : 1) We can't run user plugins on GitHub Pages due to security restrictions. That' what the documentation says 2) You are free to generate your site locally and push the resulting HTML to a Git repo, however : what does that means ? First when you generate the site locally, it ends with a group of HTML files and that group of html files, are they enough to run the site autonomously (for example must you include the css files in html pages ) ? Furthermore when you push the resulting HTML to a Git repo, is it enough to deploy it on a production environment (on GITHUB for example) ? and how you do that ? 3) on this link (https://help.github.com/articles/using-jekyll-plugins-with-github-pages/) I found the following explaination : Adding Jekyll plugins to a GitHub Pages site
You can further customize your GitHub Pages site by adding Jekyll plugins. (do they talk about all plugins ?)
GitHub Pages officially supports the Jekyll plugins found in the GitHub Pages gem. For the exact versions of the Jekyll plugins that GitHub Pages supports, see this list of GitHub Pages dependencies. Other plugins are not supported, so the only way to incorporate them in your site is to generate your site locally and then push your site's static files to your GitHub Pages site. So as they say, it is possible , generating your site locally and then pushing your site's static files to your GitHub Pages site. Is there a detailled procedure example somewhere ?
Thanks in advance for your answers
...ANSWER
Answered 2017-Dec-29 at 13:29To be able to use Jekyll with any plugins and host in Github pages you have two options
first alternativeBuild your site locally and then push the resulting site at _site
to Github.
Then push the built site's static files to your pages publishing branch (gh-pages or master depending on your site type).
second alternativeGitHub Pages supports any HTML or static files you push to it so you can use any static site generator to build your site. You can even just push raw HTML files to GitHub Pages and it will build your site. You can also customize your own build process locally or on another server.
Use a CI service like Travis, so when you push your Jekyll files to Github, it automatically builds your site and deploy it to your publishing branch.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jekyll-plugins
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page