Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added hack to have /blog as homepage
  • Loading branch information
guyzmo committed Sep 3, 2016
1 parent c5da587 commit 4863143
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/blog/not-a-post.md
@@ -0,0 +1,3 @@
---
type: ignore
---
14 changes: 14 additions & 0 deletions layouts/blog/list.html
@@ -0,0 +1,14 @@
{{ partial "header" . }}
<div class="container clearfix">
<main role="main" class="content">
{{ .Site.Pages }}
{{ $paginator := .Paginate .Site.Pages }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination" . }}
</main>

{{ partial "author" . }}
</div>
{{ partial "footer" . }}
9 changes: 9 additions & 0 deletions layouts/index.html
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>http://i.got.nothing.to/blog</title>
<link rel="canonical" href="http://i.got.nothing.to/blog/"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="0; url=/blog/" />
</head>
</html>

0 comments on commit 4863143

Please sign in to comment.