为什么Jekyll网站生成器中不显示文本?

时间:2018-12-09 16:01:33

标签: ruby jekyll redcarpet

我想使用jekyll启动网站,但问题是没有帖子显示。 我已经使用了模板lanyon。奇怪的是,使用命令

  

捆绑执行杰基尔服务

网站启动时没有任何问题,但仍未显示任何帖子。对模板内容的任何更改均保持不变。

这是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?

还有我用来启动网站的软件包:

  • 红地毯(3.4.0,3.3.4)
  • ruby​​ 2.5.3p105(2018-10-18修订版65156)[x86_64-linux]
  • jekyll(3.8.5)
  • 捆绑软件(1.17.1)
  • pygments.rb(1.2.1,0.6.3)

0 个答案:

没有答案