Initial commit

This commit is contained in:
Tony Blyler 2016-11-02 23:10:49 -04:00
parent 89eaf19aa2
commit 113550eb8a
24 changed files with 1040 additions and 0 deletions

6
layouts/404.html Normal file
View file

@ -0,0 +1,6 @@
{{ partial "header.html" . }}
<h1>404</h1>
<h2>
Sorry, this page does not exist.
</h2>
{{ partial "footer.html" . }}

View file

@ -0,0 +1,19 @@
{{ partial "header.html" . }}
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="listBody">
<div class="list">
<h2>{{ .Key }}</h2>
{{ range .Pages }}
<h3>
<a href="{{ .Permalink }}">
{{ .Title }} {{ if .GetParam "draft" }}DRAFT{{ end }}
</a>
</h3>
<div class="post-meta">
{{ .Date.Format "Mon, Jan 2, 2006" }}
</div>
{{ end }}
</div>
</div>
{{ end }}
{{ partial "footer.html" . }}

View file

@ -0,0 +1,9 @@
{{ partial "header.html" . }}
<div class="postBody">
<div class="post">
{{ if .Title }}<h1>{{ .Title }}</h1>{{ end }}
<span class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
{{ .Content }}
</div>
</div>
{{ partial "footer.html" . }}

7
layouts/index.html Normal file
View file

@ -0,0 +1,7 @@
{{ partial "header.html" . }}
{{ range first 10 .Data.Pages }}
{{ if eq .Type "post" }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ partial "footer.html" . }}

12
layouts/pages/single.html Normal file
View file

@ -0,0 +1,12 @@
{{ partial "header.html" . }}
<div class="postBody">
<div class="post">
{{ if .Title }}
<h1>{{ .Title }}</h1>
{{ end }}
<div class="content">
{{ .Content }}
</div>
</div>
</div>
{{ partial "footer.html" . }}

View file

@ -0,0 +1,12 @@
<div class="links">
<a href="{{ .Site.BaseURL }}">Home</a>
{{ range first 1 (where .Site.Pages "Type" "post") }}
<a href="{{ .Site.BaseURL }}post/">Archive</a>
{{ end }}
{{ range where .Site.Pages "Type" "!=" "post" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
<a href="#top">Top</a>
</div>
</body>
</html>

View file

@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{{ .Title }} &middot; {{ .Site.Title }}</title>
<base href="{{ .Permalink }}">
<link rel="canonical" href="{{ .Permalink }}">
{{ if .RSSlink }}
<link href="{{ .RSSlink }}" rel="alternative" type="application/rss+xml" title="{{ .Title }}" />
{{ end }}
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
</head>
<body>
<a id="title" href="{{ .Site.BaseURL }}" title="{{ .Site.Title }}">
{{ if .Site.Params.logo }}
<img id="logo" alt="Logo" src="{{ .Site.Params.logo }}" />
{{ end }}
{{ if .Site.Title }}
<h1>{{ .Site.Title }}</h1>
{{ end }}
</a>
<div id="social">
{{ if .Site.Params.email }}
<a href="mailto:{{ .Site.Params.email }}" title="Email {{ .Site.Params.email }}">
<img alt="Email" src="{{ .Site.BaseURL }}images/email.svg" />
</a>
{{ end }}
{{ if .Site.Params.github }}
<a href="https://github.com/{{ .Site.Params.github }}" title="Github">
<img alt="GitHub" src="{{ .Site.BaseURL }}images/github.svg" />
</a>
{{ end }}
{{ if .Site.Params.facebook }}
<a href="https://facebook.com/{{ .Site.Params.facebook }}" title="Facebook">
<img alt="Facebook" src="{{ .Site.BaseURL }}images/facebook.svg" />
</a>
{{ end }}
{{ if .Site.Params.twitter }}
<a href="https://twitter.com/{{ .Site.Params.twitter }}" title="Twitter">
<img alt="Twitter" src="{{ .Site.BaseURL }}images/twitter.svg" />
</a>
{{ end }}
{{ if .Site.Params.linkedin }}
<a href="https://linkedin.com/in/{{ .Site.Params.linkedin }}" title="LinkedIn">
<img alt="LinkedIn" src="{{ .Site.BaseURL }}images/linkedin.svg" />
</a>
{{ end }}
</div>
{{ if .Site.Params.description }}
<p>{{ .Site.Params.description }}</p>
{{ end }}
<div class="links">
<a href="{{ .Site.BaseURL }}">Home</a>
{{ range first 1 (where .Site.Pages "Type" "post") }}
<a href="{{ .Site.BaseURL }}post/">Archive</a>
{{ end }}
{{ range where .Site.Pages "Type" "!=" "post" }}
<a href="{{ .Permalink }}">{{ .Title }}</a>
{{ end }}
</div>

12
layouts/post/single.html Normal file
View file

@ -0,0 +1,12 @@
{{ partial "header.html" . }}
<div class="postBody">
<div class="post">
<h1>{{ .Title }}</h1>
<span class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - Read in {{ .ReadingTime }} Min</span>
<div class="content">
{{ .TableOfContents }}
{{ .Content }}
</div>
</div>
</div>
{{ partial "footer.html" . }}

16
layouts/post/summary.html Normal file
View file

@ -0,0 +1,16 @@
<div class="postBody">
<article class="post">
<header>
<h1>
<a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a>
</h1>
<span class="post-meta">
{{ .Date.Format "Mon, Jan 2, 2006" }} - Read in {{ .ReadingTime }} Min
</span>
</header>
<div class="summary">
{{ .Summary }}
<a href="{{ .Permalink }}">Read more...</a>
</div>
</article>
</div>