jekyll-paginator

key for name of json file (rather than just its fields) for use in Jekyll page generator?

别等时光非礼了梦想. 提交于 2021-01-29 20:11:04
问题 I'm using a data page generator for my Jekyll website to create pages based on a folder of JSON files. I want the generator to use the names of the json files as the page title, but I can't figure out the right syntax to tell it to use the file name instead of one of the fields in the json. I can access the file name in one of the layout pages with: for file in site.data.drinks file[0] But file[0] doesn't work in the config (neither does record[0] or record): - data: drinks template: drink

Github pages: Why do I need a gh-pages

偶尔善良 提交于 2020-02-26 12:10:12
问题 I have deployed a personal blog using Github pages and I see that some tutorials tell you to create a gh-pages branch. I did that, however, my changes to the website are visible only if I make changes to my master. So, I'm confused as to why I need gh-pages? Can someone please explain this. Thanks 回答1: You no longer need a gh-pages branch. GitHub now allows pages to be published from the master branch, or from a docs folder in master. 回答2: You host one website per github person or

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

don't have jekyll-paginate or one of its dependencies installed

喜你入骨 提交于 2019-12-18 11:26:26
问题 I have installed this jekyll theme. But faced with one issue. If I do: bundle exec jekyll serve All work fine ( _site folder contains necessary files and server is running), but if I use the following command: jekyll build -d /var/www/budka/data/www/blog I get the error: Dependency Error: Yikes! It looks like you don't have jekyll-paginate or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is:

Jekyll Serve not working

点点圈 提交于 2019-12-14 01:57:50
问题 I have downloaded zip of this github repo - https://github.com/mmistakes/minimal-mistakes I have installed bundler and I did bundle install , it worked perfectly. Now when I try to run jekyll serve -w , WARN: Unresolved specs during Gem::Specification.reset: jekyll-watch (~> 1.1) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. Configuration file: /home/kenden/Desktop/minimal-mistakes-master/_config.yml Dependency Error: Yikes! It looks like you don't have