summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2014-04-26 16:25:13 -0600
committerspf13 <steve.francia@gmail.com>2014-04-26 16:25:13 -0600
commitda66ac1983b586765652f54bf556f268f1e32ff4 (patch)
treec5cf3722e926455c30c8113c473e0e73aef04312 /layouts
Adding the hyde theme
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html15
-rw-r--r--layouts/_default/single.html15
-rw-r--r--layouts/chrome/head.html23
-rw-r--r--layouts/chrome/sidebar.html19
-rw-r--r--layouts/index.html26
5 files changed, 98 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..017c932
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,15 @@
+{{ template "theme/chrome/head.html" . }}
+<body>
+
+{{ template "theme/chrome/sidebar.html" . }}
+
+ <div class="content container">
+ <ul class="posts">
+ {{ range .Data.Pages }}
+ <li><span><a href="{{ .Permalink }}">{{ .Title }}</a><time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</h4></time></span></span></li>
+ {{ end }}
+ </ul>
+ </div>
+
+ </body>
+</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..a6f29b1
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,15 @@
+{{ template "theme/chrome/head.html" . }}
+<body>
+
+{{ template "theme/chrome/sidebar.html" . }}
+
+ <div class="content container">
+<div class="post">
+ <h1>{{ .Title }}</h1>
+ <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
+ {{ .Content }}
+</div>
+</div>
+
+ </body>
+</html>
diff --git a/layouts/chrome/head.html b/layouts/chrome/head.html
new file mode 100644
index 0000000..582750c
--- /dev/null
+++ b/layouts/chrome/head.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
+<head>
+ <link href="http://gmpg.org/xfn/11" rel="profile">
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+
+ <!-- Enable responsiveness on mobile devices-->
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+
+ <title> {{ .Title }} &middot; {{ .Site.Title }} </title>
+
+ <!-- CSS -->
+ <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/syntax.css">
+ <link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/hyde.css">
+ <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
+
+ <!-- Icons -->
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
+ <link rel="shortcut icon" href="/favicon.ico">
+
+ <!-- RSS -->
+ <link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+</head>
diff --git a/layouts/chrome/sidebar.html b/layouts/chrome/sidebar.html
new file mode 100644
index 0000000..93dffdd
--- /dev/null
+++ b/layouts/chrome/sidebar.html
@@ -0,0 +1,19 @@
+ <header class="masthead">
+ <div class="masthead-inner">
+ <h1>{{ .Site.Title }}</h1>
+ <p class="lead">
+ {{ with .Site.Params.Description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}}
+ </p>
+
+ <div class="colophon">
+ <ul class="colophon-links">
+ <li><a href="/">Home</a> </li>
+ {{ range .Site.Menus.main }}
+ <li><a href="{{.Url}}"> {{ .Name }} </a></li>
+ {{end}}
+ </ul>
+
+ <p>{{ with .Site.Params.Copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
+ </div>
+ </div>
+ </header>
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..cb75c3b
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,26 @@
+{{ template "theme/chrome/head.html" . }}
+<body>
+
+{{ template "theme/chrome/sidebar.html" . }}
+
+ <div class="content container">
+<div class="posts">
+
+ {{ range .Data.Pages }}
+ <div class="post">
+ <h1 class="post-title">
+ <a href="{{ .Permalink }}">
+ {{ .Title }}
+ </a>
+ </h1>
+
+ <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
+
+ {{ .Content }}
+ </div>
+ {{ end }}
+</div>
+
+
+ </body>
+</html>