我想使用jekyll启动一个站点,但问题是没有显示帖子 . 我使用了模板lanyon . 奇怪的是,用命令
捆绑exec jekyll服务
网站启动没有任何问题,但仍然没有显示帖子 . 即使模板内容的更改保持不变 .
这是config.yml文件的内容:
# Dependencies
# markdown: redcarpet
markdown: kramdown
# pygments: true
highlighter: true
# Permalinks
permalink: pretty
# Setup
title: Lanyon
tagline: 'A Jekyll theme'
description: 'A reserved <a href="http://jekyllrb.com" target="_blank">Jekyll</a> theme that places the utmost gravity on content with a hidden drawer. Made by <a href="https://twitter.com/mdo" target="_blank">@mdo</a>.'
url: http://lanyon.getpoole.com
author:
name: 'Mark Otto'
url: https://twitter.com/mdo
# paginate: 5
jekyll-paginate: 5
# Custom vars
version: 2.0.0
github:
repo: https://github.com/poole/lanyon
这是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 version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8.5"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?
我用来启动网站的软件包:
-
redcarpet(3.4.0,3.3.4)
-
ruby 2.5.3p105(2018-10-18修订版65156)[x86_64-linux]
-
jekyll(3.8.5)
-
bundler(1.17.1)
-
pygments.rb(1.2.1,0.6.3)