INIT: uploading initial structure of site"

This commit is contained in:
Spencer Lyon
2014-03-29 12:09:38 -04:00
parent 829427ec43
commit c624bdbafb
20 changed files with 1369 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
{{ $baseurl := .Site.BaseUrl }}
<div class="container">
<ul class="catlist">
<li><em>Categories: </em></li>
{{ range .Params.categories }}
<li><a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
</div>
+12
View File
@@ -0,0 +1,12 @@
<div class="container content">
<footer>
<div>
<p class="right credit">
Fancy footer here. Link to <a href="/">Home Page</a>
</p>
</div>
</footer>
</div>
</body>
</html>
+4
View File
@@ -0,0 +1,4 @@
<link rel="stylesheet" href="/css/poole.css">
<link rel="stylesheet" href="/css/syntax.css">
<link rel="stylesheet" href="/css/lanyon.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|PT+Sans:400">
+9
View File
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base href="{{ .Site.BaseUrl }}">
<title> {{ .Title }} </title>
<link rel="canonical" href="{{ .Permalink }}">
{{ template "chrome/head_includes.html" . }}
</head>
+15
View File
@@ -0,0 +1,15 @@
<div class="container">
<hr />
<hr />
<span class="left">
{{if .Prev}}
&nbsp; <em>&laquo; Previous:</em> <a class="next" href="{{.Prev.Permalink}}">{{.Prev.Title}}</a>
{{end}}
</span>
<span class="right">
{{if .Next}}
<em>Next: </em><a class="next" href="{{.Next.Permalink}}"> &nbsp; {{ .Next.Title }}</a> &raquo;
{{end}}
</span>
</div>
+19
View File
@@ -0,0 +1,19 @@
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
styles, `#sidebar-checkbox` for behavior. -->
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
<!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar">
<nav class="sidebar-nav">
<a class="sidebar-nav-item" href="/">Home</a>
<a class="sidebar-nav-item" href="/posts">Blog</a>
</nav>
<div class="sidebar-item">
<p>
&copy; 2014 Spencer Lyon. Powered by <a href="http://hugo.spf13.com">Hugo</a>. Design adapted from <a href="http://lanyon.getpoole.com">Lanyon</a>.
</p>
</div>
</div>
+57
View File
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base href="{{ .Site.BaseUrl }}">
<title>{{ .Site.Title }}</title>
<link rel="canonical" href="{{ .Permalink }}">
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ template "chrome/head_includes.html" . }}
</head>
<body class="theme-base-08" lang="en">
{{ template "chrome/sidebar.html" . }}
<!-- Wrap is the content to shift when toggling the sidebar. We wrap the
content to avoid any CSS collisions with our real content. -->
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="/" title="Home">Home</a>
</h3>
</div>
</div>
<div class="container content">
<h1>This is a Blog</h1>
<p class="lead"> Welcome to my blog! </p>
<p>This is really just a barebones website to stand as a template for creating a blog that is statically generated by <a href="http://hugo.spf13.com">Hugo</a> and hosted at on GitHub via <a href="http://pages.github.com/">GitHub Pages</a>.</p>
<p>I am using a slightly modified version of the <a href="http://lanyon.getpoole.com">Lanyon</a> Jekyll theme. I think it is very simple, clean, and elegant.</p>
<!-- About me subsection -->
<h2>About me</h2>
<p>Sometimes people have an "About me" section on the homepage of their website.</p>
<p>It might even include a picture: </p>
<!-- Recent Posts section -->
<h1 class="post-title">Recent Posts</h1>
<section id="main">
<ul id="list">
{{ range first 10 .Data.Pages }}
{{ .Render "summary"}}
{{ end }}
</ul>
</section>
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
{{ template "chrome/footer.html" }}
+36
View File
@@ -0,0 +1,36 @@
{{ template "chrome/header.html" . }}
<body class="theme-base-08">
{{ template "chrome/sidebar.html" . }}
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="/posts" title="Blog">Blog Posts</a>
</h3>
</div>
</div>
<div class="container content">
<h1 class="post-title">Recent Posts</h1>
<section id="main">
<div>
<h5><a href="/categories">Full Category Index</a></h5>
<h2>Posts in &ldquo;{{ .Title }}&rdquo;</h2>
{{ range .Data.Pages }}
{{ .Render "summary"}}
{{ end }}
</div>
</section>
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
<!-- Include footer (ends <body> and <html>) -->
{{ template "chrome/footer.html" }}
+37
View File
@@ -0,0 +1,37 @@
{{ template "chrome/header.html" . }}
<body class="theme-base-08">
{{ template "chrome/sidebar.html" . }}
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="/posts" title="Blog">Blog Posts</a>
</h3>
</div>
</div>
<div class="container content">
<h1 class="post-title">Recent Posts</h1>
<section id="main">
<div>
<h1>Archive of Posts, by {{ .Data.Singular }}</h1>
<ul class="category">
{{ $data := .Data }}
{{ range $key,$value := .Data.Index.ByCount }}
<li><a href="/{{ $data.Plural }}/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> ({{ $value.Count }} entries) </li>
{{ end }}
</ul>
</div>
</section>
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
<!-- Include footer (ends <body> and <html>) -->
{{ template "chrome/footer.html" }}
+35
View File
@@ -0,0 +1,35 @@
{{ template "chrome/header.html" . }}
<body class="theme-base-08">
{{ template "chrome/sidebar.html" . }}
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="/posts" title="Blog">Blog Posts</a>
</h3>
</div>
</div>
<div class="container content">
<p>Here are all my blog posts, in descending order by creation date. If you would like to view them by topic, see the <a href="/categories">Categories</a> page.</p>
<h1 class="post-title">All Blog Posts (By Date)</h1>
<section id="main">
<ul id="list">
{{ range .Data.Pages }}
{{ .Render "li"}}
{{ end }}
</ul>
</section>
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
<!-- Include footer (ends <body> and <html>) -->
{{ template "chrome/footer.html" }}
+16
View File
@@ -0,0 +1,16 @@
{{ $baseurl := .Site.BaseUrl }}
<li>
<span><h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2></span>
<span class="left">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
<span class="right">
<ul class="catlist">
{{ range .Params.categories }}
<li><a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> </li>
{{ end }}
</ul>
</span>
<br />
{{ .Description }}
</li>
+35
View File
@@ -0,0 +1,35 @@
{{ template "chrome/header.html" . }}
<body class="theme-base-08">
{{ template "chrome/sidebar.html" . }}
<div class="wrap">
<div class="masthead">
<div class="container">
<h3 class="masthead-title">
<a href="/posts" title="Blog">Blog Posts</a>
</h3>
</div>
</div>
<div class="container content">
<h1 class="post-title">{{ .Title }}</h1>
<section id="main">
<h5 id="date"> {{ .Date.Format "Mon Jan 2, 2006" }} </h5>
</section>
{{ .Content }}
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
{{ template "chrome/prev_next.html" . }}
<br />
{{ template "chrome/categories.html" . }}
<!-- Include footer (ends <body class="theme-base-08"> and <html>) -->
{{ template "chrome/footer.html" }}
+11
View File
@@ -0,0 +1,11 @@
<article class="post">
<header>
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
<div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div>
</header>
{{ .Summary }}
<footer>
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</footer>
</article>