【发布时间】:2013-11-04 04:42:54
【问题描述】:
我最近正在学习如何使用 Jekyll 和 Github,我很难让我的网站在网上正确显示,但是当我运行时它确实在本地正确显示:
jekyll serve --baseurl ''
我正在处理的 Github 存储库是 http://yungkickz.github.io/kingwizard
任何帮助或提示都会非常有帮助。
编辑:基本上整个网站都缺少正确的 CSS,并且链接指向错误的位置;尤其是第一个 Home 和 About 链接,因为其他链接只是为了测试。
我的config.yml:
name: kingwizard
description: wizardly blog
paginate: 5
url: "http://yungkickz.github.io"
baseurl: /kingwizard
markdown: rdiscount
我还在这里添加了html的开头
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ site.description }}">
<meta name="author" content="">
<title>{{ site.name }}</title>
<!-- Bootstrap core CSS -->
<link href="{{ site.baseurl }}/css/bootstrap.css" rel="stylesheet">
<!-- Custom Arreis Style -->
<link href="{{ site.baseurl }}/css/custom-style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="{{ site.baseurl}}js/html5shiv.js"></script>
<script src="{{ site.baseurl}}js/respond.min.js"></script>
<![endif]-->
</head>
【问题讨论】:
标签: ruby jekyll liquid github-pages