我試圖讓一個Git Hub頁面的博客工作(https://vcedgar.github.io/CREU-Poly-17/),但是當我去鏈接我的帖子應該是在鏈接不工作(404頁面不工作發現或404文件沒有找到。)真奇怪這是我有一個頁面,顯示的帖子列表,並且該帖子顯示在那裏很好(發佈日期,標題和blurb。)但是,當我點擊o從該頁面鏈接,它不起作用。我也得到它有時工作,但以後。過了一會兒,如果我刷新頁面,它提供了404GitHub頁面發佈鏈接不工作
下面的代碼:
_config.yml
name: CREU 2017 Vatricia Edgar
markdown: kramdown
permalink: /CREU-Poly-17/:title
future: true
默認佈局
<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
<!-- link to main stylesheet -->
<link rel="stylesheet" type="text/css" href="/CREU-Poly-17/css/main.css">
</head>
<body>
<h1 class = "head">CREU-17</h1>
<nav>
<ul>
<li><a href="/CREU-Poly-17/">Home</a></li>
<li><a href="/CREU-Poly-17/About/">About</a></li>
<li><a href="/CREU-Poly-17/Blog/">Blog</a></li>
</ul>
</nav>
<h2 class = "head">{{page.title}}</h2>
<div class="container")
{{ content }}
</div><!-- /.container -->
<footer>
<ul>
<p><a href="mailto:[email protected]">email</a></p>
<p><a href="https://github.com/vcedgar">github</a></p>
</ul>
</footer>
</body>
</html>
帖子:
---
layout: default
title: Week1
date: 2017-09-01
published: true
---
fist post.
此外,這裏是文件/文件夾的組織,以防萬一: 關於和博客只包含About和Blog頁面的index.html,_layout包含默認佈局和我想用於文章的佈局(切換到默認的帖子,看看它是否會有所幫助,沒有),css顯然包含css文件(只有一個),而_posts包含文件。 My GitHub repo
自從我開始製作它以來,我一直在博客上的鏈接出現問題,但是這一個讓我難住了。任何幫助表示讚賞!
擺脫在配置文件中的永久設定的幫助修復它。它把我發送到https://vcedgar.github.io/2017/09/01/week1.html,它給出了一個404錯誤。如果我輸入https://vcedgar.github.io/CREU-Poly-17/2017/09/01/week1.html它可以工作。所以我在博客頁面的鏈接中添加了「/ CREU-Poly-17」:{{ post.title }} – 123theone