Jekyll

Using jekyll with gitlab pages, it says when it's deploying the website with gitlab CI that theme could not be found, and I already installed it

倾然丶 夕夏残阳落幕 提交于 2019-12-25 01:53:42
问题 My objetive To have a repository with the jekyll site configuration files (but not the _site), and each time I push to the repository, a gitlab pipeline runs. With that pipeline, the site is build with Jekyll (I'm using this theme https://github.com/mmistakes/jekyll-theme-basically-basic) A quick view on the essential files which I'm troubling with Gemfile source "https://rubygems.org" # Hello! This is where you manage which Jekyll version is used to run. # When you want to use a different

Why does liquid {%SEO%} tag not get integrated into head? instead it shows in body

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 01:40:08
问题 For some unknown reason any LIQUID syntax used inside <head> ends up in the <body> What I have done? 1) I cloned a template and build my own layout with JEKYLL static site generator. 2) I installed all gems (check gemlist: 'jekyll-seo-tag' 'liquid 4.0' ) 3) I configured config.yml 4) I added {%SEO%} to <head> Minimal <head> <meta charset="utf-8"> <meta name="author" content="Gino Ludikhuyze"> <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines

How to permanently set JEKYLL_ENV=production for Jekyll build?

孤街浪徒 提交于 2019-12-25 01:35:03
问题 Is there some way to set the JEKYLL_ENV=production flag permanently? In the Jekyll Build Command Options documentation, it says that to build in production mode versus development mode, one has to run the build command with the JEKYLL_ENV flag, like so: JEKYLL_ENV=production jekyll build I've already tried adding JEKYLL_ENV=production and env: production , as well as using an .env file. Update Tested and working solution: echo 'export JEKYLL_ENV=production' >> ~/.bashrc | # add to ~/.bashrc

how in jekyll, for categories.html write a logic for posts in specific category using pagination?

左心房为你撑大大i 提交于 2019-12-24 20:43:08
问题 I have posts with post.thumb and without post.thumb, and i want to show only posts with post.thumb in structure below without using limit and offset for posts. I have a categories.html with next structure: <section class="type-one"> {% for post in pagination.posts limit:1 Offset:0 %} <div class="col-md-7"> {% include FirstPostInCategoryNews.html %} </div> {% endfor %} <div class="col-md-5 two_items_incide"> {% for post in pagination.posts limit:2 Offset:1 %} {% include

Using Jekyll, how to organize/place paragraph data within layout that is not post or page?

三世轮回 提交于 2019-12-24 19:22:40
问题 First day with Jekyll, I basically have the minima theme from Jekyll that I'm modifying trying to create a new site. I have a home.html within _layouts. My goal is to place paragraphs within 3 individual columns, side-by-side. My understanding is that _layouts and _includes are mainly for formatting, at least that's how I look at them. I aware one can put a bunch of static text to display within these files, but it seems cleaner (and easier to edit) if the text to display were in something

Generate file inside _site with Jekyll plugin

随声附和 提交于 2019-12-24 18:40:01
问题 I have written a Jekyll plugin, "Tags", which generates a file and returns string of links to that file. Everything is fine, but if I write that file directly into the _site folder, it is removed. If I put that file outside the _site folder, it is not generated inside _site. Where and how should I add my file so that it is available inside the _site folder? 回答1: You should use class Page for this and call methods render and write . This is an example to generate the archive page at my blog:

Use Jekyll without Jekyll server / without root directory

蹲街弑〆低调 提交于 2019-12-24 17:24:11
问题 I just started using Jekyll today, and I'm trying to figure out how to use it to create a portable static site. Specifically, I want to be able to access the site without using the Jekyll server. This answer says that this isn't possible, however, it's a couple years old, and it seems like a static site generator should be able generate a site which doesn't need a server to function (can be accessed through the browser as a file file:///... ) The Jekyll docs say that a Jekyll site can be

Use Jekyll without Jekyll server / without root directory

≡放荡痞女 提交于 2019-12-24 17:23:04
问题 I just started using Jekyll today, and I'm trying to figure out how to use it to create a portable static site. Specifically, I want to be able to access the site without using the Jekyll server. This answer says that this isn't possible, however, it's a couple years old, and it seems like a static site generator should be able generate a site which doesn't need a server to function (can be accessed through the browser as a file file:///... ) The Jekyll docs say that a Jekyll site can be

How to paginate Jekyll's data items using Liquid

会有一股神秘感。 提交于 2019-12-24 17:14:39
问题 Hi I'm trying to access elements from the previous and next arrays. To be exact I want to access the previous and next url of pages. This is what I have done so far.Thanks! {% assign page_venue = site.data.venues-array | where: "venueID", page.venue | first % //This outputs the current url {{venue.url}} This is part of the yml file: venueID: Red-Radish name: Red Radish url: redradish building: 65 neighborhood: University Union venueID: Poly-Deli name: Poly Deli url: polydeli building: 19

Mathjax being parsed with Jekyll

我的梦境 提交于 2019-12-24 16:27:14
问题 I have been trying for a while now to get MathJax to render properly using Jekyll. I have tried several parsers (regular, kramdown and redcarpet ) but none seem to do what I want. I have also tried all the solution mentioned here: Using MathJax with Jekyll The problem is that I am using rules to write down some equations. I have created a minimal working example using plain html, to make sure that my code is actually valid. You can see that here: http://call-cc.be/files/example.html I just