diff options
author | kballou <kballou@devnulllabs.io> | 2014-10-11 01:20:54 -0600 |
---|---|---|
committer | kballou <kballou@devnulllabs.io> | 2017-09-02 19:31:44 -0600 |
commit | b0ccdf8eb059f54a0e8cfad51466f12b8cd76451 (patch) | |
tree | 51664a702772ca797c2e5e94dac3bc479105a611 /layouts | |
download | blog.kennyballou.com-b0ccdf8eb059f54a0e8cfad51466f12b8cd76451.tar.gz blog.kennyballou.com-b0ccdf8eb059f54a0e8cfad51466f12b8cd76451.tar.xz |
Wobsite and Blag of KennyBallou
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 8 | ||||
-rw-r--r-- | layouts/_default/list.html | 0 | ||||
-rw-r--r-- | layouts/_default/single.html | 17 | ||||
-rw-r--r-- | layouts/blog/li.html | 0 | ||||
-rw-r--r-- | layouts/blog/single.html | 27 | ||||
-rw-r--r-- | layouts/blog/summary.html | 20 | ||||
-rw-r--r-- | layouts/index.html | 20 | ||||
-rw-r--r-- | layouts/partials/author.html | 21 | ||||
-rw-r--r-- | layouts/partials/footer.html | 13 | ||||
-rw-r--r-- | layouts/partials/head_includes.html | 4 | ||||
-rw-r--r-- | layouts/partials/header.html | 20 | ||||
-rw-r--r-- | layouts/partials/meta.html | 2 | ||||
-rw-r--r-- | layouts/partials/subheader.html | 5 | ||||
-rw-r--r-- | layouts/rss.xml | 21 | ||||
-rw-r--r-- | layouts/single.html | 5 | ||||
-rw-r--r-- | layouts/sitemap.xml | 16 |
16 files changed, 199 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..0c15e5a --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . }} +<body> +<h1>You Seem Lost...</h1> +<p>The page you were looking for seems to have left the server or never +existed. If you think this may be an error, sorry. The web server thinks you +have an error.</p> +</body> +{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/_default/list.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..00aaabc --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,17 @@ +{{ partial "header.html" . }} +<body> +{{ partial "subheader.html" . }} +<section id="main"> + <div> + <div class="colleft"> + <article id="content"> + {{ .Content}} + </article> + </div> + <div class="colright"> + {{ partial "author.html" . }} + </div> + </div> +</section> +</body> +{{ partial "footer.html" . }} diff --git a/layouts/blog/li.html b/layouts/blog/li.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/blog/li.html diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..1086aa8 --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,27 @@ +{{ partial "header.html" . }} +<body> +{{ partial "subheader.html" . }} +<section id="main"> + <div> + <div class="colleft"> + <article id="content"> + <h1 id="title"> {{ .Title }}</h1> + <div class="post-meta"> + <ul class="tags"> + <li><i class="fa fa-tags"></i></li> + {{ range .Params.tags }} + <li>{{ . }}</li> + {{ end }} + </ul> + <h4 id="date"> {{ .Date.Format "Mon Jan 2, 2006" }}</h4> + </div> + {{ .Content}} + </article> + </div> + <div class="colright"> + {{ partial "author.html" . }} + </div> + </div> +</section> +</body> +{{ partial "footer.html" . }} diff --git a/layouts/blog/summary.html b/layouts/blog/summary.html new file mode 100644 index 0000000..6fe1d59 --- /dev/null +++ b/layouts/blog/summary.html @@ -0,0 +1,20 @@ +<article class="post"> + <header> + <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> + <div class="post-meta">{{ .Date.Format "Mon Jan 2, 2006" }}</div> + </header> + + <blockquote> + {{ .Summary }} + </blockquote> + <ul class="tags"> + <li><i class="fa fa-tags"></i></li> + {{ range .Params.tags }} + <li>{{ . }}</li> + {{ end }} + </ul> + + <footer> + <a href="{{ .Permalink }}"><nobr>Read More</nobr></a> + </footer> +</article> diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..528a97c --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,20 @@ +{{ partial "header.html" . }} +<body> +{{ partial "subheader.html" . }} +<section id="main"> + <div> + <div class="colleft"> + {{ range first 10 .Data.Pages }} + {{ if eq .Section "blog" }} + {{ .Render "summary" }} + {{ end }} + {{ end }} + </div> + <div class="colright"> + {{ partial "author.html" . }} + </div> + <div> +</section> + + +{{ partial "footer.html" . }} diff --git a/layouts/partials/author.html b/layouts/partials/author.html new file mode 100644 index 0000000..a1c7939 --- /dev/null +++ b/layouts/partials/author.html @@ -0,0 +1,21 @@ +<section> + <div id="author"> + <a class="fade" href="about-me/"><h3 class="fade">Kenny Ballou</h3></a> + <h4><code>:(){ :|:& };:</code></h4> + <a href="https://github.com/kennyballou"> + <i class="fade fa fa-github-square fa-2x"></i> + </a> + <a href="https://bitbucket.org/kballou"> + <i class="fade fa fa-bitbucket-square fa-2x"></i> + </a> + <a href="http://www.linkedin.com/pub/kenny-ballou/43/1a9/90"> + <i class="fade fa fa-linkedin-square fa-2x"></i> + </a> + <a href="https://plus.google.com/+KennyBallou"> + <i class="fade fa fa-google-plus-square fa-2x"></i> + </a> + <a href="https://twitter.com/kennyballou"> + <i class="fade fa fa-twitter-square fa-2x"></i> + </a> + </div> +</section> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..5fb79e9 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,13 @@ +<footer> + <div id="footer"> + <div class="colleft"> + <p>© 2014 Kenny Ballou. <a + href="http://creativecommons.org/licenses/by/3.0/">Some rights + reserved.</a></p> + </div> + <div class="colright"> + <p>Powered by <a href="http://gohugo.io/">Hugo.</a></p> + </div> + </div> +</footer> +</html> diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html new file mode 100644 index 0000000..2df69ce --- /dev/null +++ b/layouts/partials/head_includes.html @@ -0,0 +1,4 @@ +<link rel="sytlesheet" href="/css/site.css" /> +<link rel="stylesheet" + href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> +<script src="{{ .Site.BaseUrl }}/js/site.js"></script> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..2dc4d46 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + + {{ partial "meta.html" . }} + + <base href="{{ .Site.BaseUrl }}" /> + <title>{{ .Site.Title }}</title> + + <link rel="canonical" href="{{ .Permalink }}" /> + {{ if .RSSlink }} + <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" + title="{{ .Title }}" /> + {{ end }} + + {{ partial "head_includes.html" . }} + <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/site.css" /> + <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> +</head> diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html new file mode 100644 index 0000000..ec09d41 --- /dev/null +++ b/layouts/partials/meta.html @@ -0,0 +1,2 @@ +<meta name="author" content="Kenny Ballou"> +<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> diff --git a/layouts/partials/subheader.html b/layouts/partials/subheader.html new file mode 100644 index 0000000..3a4aaae --- /dev/null +++ b/layouts/partials/subheader.html @@ -0,0 +1,5 @@ +<div id="header"> + <header> + <a class="fade" href="{{ .Site.BaseUrl }}">~kballou</a> + </header> +</div> diff --git a/layouts/rss.xml b/layouts/rss.xml new file mode 100644 index 0000000..5950804 --- /dev/null +++ b/layouts/rss.xml @@ -0,0 +1,21 @@ +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ .Title }} on {{ .Site.Title }} </title> + <generator uri="https://gohugo.io">Hugo</generator> + <link>{{ .Permalink }}</link> + {{ with .Site.LanguageCode }}<language>{{ . }}</language>{{ end }} + {{ with .Site.Author.name }}<author>{{ . }}</author>{{ end }} + {{ with .Site.Copyright }}<copyright>{{ . }}</copyright>{{ end }} + <updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated> + {{ range first 15 .Data.Pages }} + <item> + <title>{{ .Title }}</title> + <link>{{ .Permalink }}</link> + <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} </pubDate> + {{ with .Site.Author.name }}<author>{{ . }}</author>{{ end }} + <guid>{{ .Permalink }}</guid> + <description>{{ .Content | html }}</description> + </item> + {{ end }} + </channel> +</rss> diff --git a/layouts/single.html b/layouts/single.html new file mode 100644 index 0000000..5c0336c --- /dev/null +++ b/layouts/single.html @@ -0,0 +1,5 @@ +{{ partial "header.html" . }} +<body> + {{ .Content}} +</body> +{{ partial "header.html" . }} diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml new file mode 100644 index 0000000..e99a1bc --- /dev/null +++ b/layouts/sitemap.xml @@ -0,0 +1,16 @@ +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> + {{ range .Data.Pages }} + <url> + <loc>{{ .Permalink }}</loc> + <lastmod> + {{ safeHtml ( .Date.Format "2006-01-02T15:04:05-7:00" ) }} + </lastmod> + {{ with .Sitemap.ChangeFreq }} + <changefreq>{{ . }}</changefreq> + {{ end }} + {{ if ge .Sitemap.Priority 0.0 }} + <priority>{{ .Sitemap.Priority }}</priority> + {{ end }} + </url> + {{ end }} +</urlset> |