Skip to content

Commit 4863143

Browse files
committed
Added hack to have /blog as homepage
1 parent c5da587 commit 4863143

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

content/blog/not-a-post.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
type: ignore
3+
---

layouts/blog/list.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{ partial "header" . }}
2+
<div class="container clearfix">
3+
<main role="main" class="content">
4+
{{ .Site.Pages }}
5+
{{ $paginator := .Paginate .Site.Pages }}
6+
{{ range $paginator.Pages }}
7+
{{ .Render "summary" }}
8+
{{ end }}
9+
{{ partial "pagination" . }}
10+
</main>
11+
12+
{{ partial "author" . }}
13+
</div>
14+
{{ partial "footer" . }}

layouts/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>http://i.got.nothing.to/blog</title>
5+
<link rel="canonical" href="http://i.got.nothing.to/blog/"/>
6+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
7+
<meta http-equiv="refresh" content="0; url=/blog/" />
8+
</head>
9+
</html>

0 commit comments

Comments
 (0)