Jekyll主题在本地有效,但在Heroku上没有CSS。帖子也不会加载

时间:2019-05-13 13:22:35

标签: heroku jekyll

我有一个jekyll网站,可以在本地完美呈现。当我将其推送到heroku时,它以纯HTML呈现。另外,许多链接也不起作用,因为当我单击它时,会尝试在我的本地主机而不是heroku本地主机上打开它。

这是我的_config文件

# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Hitchens
email: hello@patdryburgh.com
description: >- # this means to ignore newlines until "baseurl:"
  An inarguably well-designed Jekyll theme.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://altworld.herokuapp.com" # the base hostname & protocol for your site, e.g. http://example.com
icon: /assets/images/icon-512.png
twitter_username: patdryburgh
github_username:  patdryburgh

# Build settings
markdown: kramdown

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
#   - Gemfile
#   - Gemfile.lock
#   - node_modules
#   - vendor/bundle/
#   - vendor/cache/
#   - vendor/gems/
#   - vendor/ruby/

plugins:
  - jekyll-paginate

paginate: 3
paginate_path: "/page/:num/"

这是我的Procfile

web: bundle exec thin start -p $PORT -e $RACK_ENV

0 个答案:

没有答案