Jekyll

jekyll gem reline versions conflict

孤街醉人 提交于 2020-06-29 03:42:30
问题 I tried to create a website using Jekyll. I used git clone to copy jekyll-theme-hackcss, and then followed instructions from the arch-wiki rubygems page to get the right gem packages. From inside the cloned folder I used: $ gem install jekyll $ gem update $ gem install bundler $ bundle config path ~/.gem /usr/lib/ruby/2.7.0/rubygems.rb:932: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead /home/my_user/.gem/ruby/2.7.0/gems/bundler-1.13.1/lib

jekyll gem reline versions conflict

时光怂恿深爱的人放手 提交于 2020-06-29 03:42:08
问题 I tried to create a website using Jekyll. I used git clone to copy jekyll-theme-hackcss, and then followed instructions from the arch-wiki rubygems page to get the right gem packages. From inside the cloned folder I used: $ gem install jekyll $ gem update $ gem install bundler $ bundle config path ~/.gem /usr/lib/ruby/2.7.0/rubygems.rb:932: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead /home/my_user/.gem/ruby/2.7.0/gems/bundler-1.13.1/lib

Custom Jekyll Plugin (Liquid Filter?) rendering script tags as text, not as JavaScript

百般思念 提交于 2020-06-29 02:50:41
问题 I'm experimenting with building a site using Jekyll for a friend. I'm trying to transform front matter from files like /_events/2020-02-25-an-event.md and /_events/2020-02-26-another-event.md into something that can be easily embedded into the body of various building blocks of content and result in those pages, as viewed by a visitor, including <script type="application/ld+json">...</script> tags conforming to schema.org event standards. A file like /_events/2020-02-25-an-event.md looks like

Run git push from javascript hosted in static site

夙愿已清 提交于 2020-06-25 04:06:51
问题 Imagine a static web site compiled with jekyll and hosted on github pages. Is it possible to have some javascript on this page that asks the user some input, and then "git push" this input into some github repository ? In other words, how to write in javascript the following program: Ask the user for his name, put the name in variable s Download (or pull) from a given github repo a text file "allnames.txt" Add s at the end of allnames.txt Commit and push the file "allnames.txt" back into

How to run “bundle exec jekyll new .”

坚强是说给别人听的谎言 提交于 2020-06-14 05:57:51
问题 I'm trying to follow "Creating a GitHub Pages site with Jekyll" but when I run any of these commands: $ bundle exec jekyll VERSION new . $ bundle exec jekyll _4.0.0_ new . $ bundle exec jekyll 4.0.0 new . I get this error: "Could not locate Gemfile or .bundle/ directory" I have looked at several SO posts related to this error message, but none seem to have a fix for my problem. Perhaps I have missed something? Some relevant details: $ ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86

Download Buttons for Github Pages

一曲冷凌霜 提交于 2020-06-11 21:29:59
问题 When selecting the theme for the github page of an existing repository, you can see this set of buttons (in the Minimal theme, for example): But when I visit my github pages site, the buttons are not there; all I can see is my readme.md for the repository, and the View the Project on GitHub link. Is there a way to get these buttons on my page? 回答1: Just add show_downloads: true to your _config.yml 回答2: This question is a little old, but I had the same problem and the chosen answer didn't help

Download Buttons for Github Pages

痞子三分冷 提交于 2020-06-11 21:28:09
问题 When selecting the theme for the github page of an existing repository, you can see this set of buttons (in the Minimal theme, for example): But when I visit my github pages site, the buttons are not there; all I can see is my readme.md for the repository, and the View the Project on GitHub link. Is there a way to get these buttons on my page? 回答1: Just add show_downloads: true to your _config.yml 回答2: This question is a little old, but I had the same problem and the chosen answer didn't help

Jekyll theme could not be found

拥有回忆 提交于 2020-06-10 07:59:06
问题 Following the jekyll documentation found here: https://jekyllrb.com/docs/themes/ I was trying to install and change a gem based theme so I have chosen the jekyll-theme-primer for this and I've run the following command and instructed under the https://jekyllrb.com/docs/themes/#installing-a-theme section: gem "jekyll-theme-primer" and got this error: ERROR: While executing gem ... (Gem::CommandLineError) Unknown command jekyll-theme-awesome After doing some research I've found that I should

Inline HTML is escaped by Jekyll

风格不统一 提交于 2020-05-29 07:43:31
问题 I have a problem with inline HTML in a github page, where inline HTML bullet lists are escaped in tables. The rows of the following table: | Name | Value | |------|-----------------------| | one | <i>foo</i> | | two | <ul><li>bar</li></ul> | is rendered as: <tr> <td>one</td> <td><i>foo</i></td> </tr> <tr> <td>two</td> <td><ul><li>bar</li></ul></td> </tr> The bullet list is rendered as expected by the GitHub UI, but in gh-pages, the <ul> is escaped. Why? 回答1: This is by design as implemented

How to fix “StackLevelError (Stack Overflow)” in Jekyll navigation template

空扰寡人 提交于 2020-05-15 08:12:03
问题 I am trying to write a recursive Jekyll navigation template (include) as described in "Nested tree navigation with recursion". I have a minimal example committed in jekyll-min, which basically has: two top-level dirs, each with one page another dir under the second top-level dir, containing one page a navigation template ( _includes/docs_contents.html ) that loops through the top-level dirs and initiates recursive traversal for each a recursive include ( _includes/nav.html ) that accepts a