rebuilding site Sat Mar 29 22:26:14 EDT 2014
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{{ $baseurl := .Site.BaseUrl }}
|
||||
<!--
|
||||
This file is a template that is included various places to have a list of
|
||||
that particular posts categories generated.
|
||||
-->
|
||||
<div class="container">
|
||||
<ul class="catlist">
|
||||
<li><em>Categories: </em></li>
|
||||
{{ range .Params.categories }}
|
||||
<li><a href="{{ $baseurl }}/categories/{{ . | urlize }}">{{ . }}</a> </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<ul class="catlist">
|
||||
<li><em>Categories: </em></li>
|
||||
{{ range .Params.categories }}
|
||||
<li><a href="/categories/{{ . | urlize }}">{{ . }}</a> </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
<!--
|
||||
This is the main footer for the website. It is included on every page.
|
||||
|
||||
It is very basic. It has some text and a link back to the home page of the
|
||||
site.
|
||||
|
||||
It also closes the <body> and <html> tags for each page.
|
||||
-->
|
||||
|
||||
<div class="container content">
|
||||
<footer>
|
||||
<div>
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
<!--
|
||||
This file simply includes all the css and fonts that should go into the
|
||||
header of each page.
|
||||
|
||||
It is separate from the rest of the header because the actual header for the
|
||||
homepage of the site is different, but we want every page of the site
|
||||
(including the homepage) to have the same assets.
|
||||
-->
|
||||
|
||||
<link rel="stylesheet" href="/css/poole.css">
|
||||
<link rel="stylesheet" href="/css/syntax.css">
|
||||
<link rel="stylesheet" href="/css/lanyon.css">
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
<!--
|
||||
This is the actual header for each page of the site except the homepage.
|
||||
|
||||
It simply shows the title of the page and includes the css/fonts found in
|
||||
/layouts/chrome/header.html
|
||||
-->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
@@ -1,15 +1,29 @@
|
||||
<!--
|
||||
This is a helper file that adds previous and next links to the bottom of each
|
||||
blog post. (below next and previous refer to chronological next and previous)
|
||||
|
||||
It will check to see if there is a previous blog post. If is, it will print
|
||||
an arrow as well as the title of the previous post as a link as
|
||||
left-justified text.
|
||||
|
||||
It will then check for a next blog post. If there is one it prints the title
|
||||
of the next post with a right arrow as right justified text on the same line.
|
||||
|
||||
If there is ever not a next or previous post, it does nothing.
|
||||
-->
|
||||
|
||||
<div class="container">
|
||||
<hr />
|
||||
<hr />
|
||||
<span class="left">
|
||||
{{if .Prev}}
|
||||
{{if .Prev}}
|
||||
<span class="left">
|
||||
<em>« Previous:</em> <a class="next" href="{{.Prev.Permalink}}">{{.Prev.Title}}</a>
|
||||
{{end}}
|
||||
</span>
|
||||
</span>
|
||||
{{end}}
|
||||
|
||||
<span class="right">
|
||||
{{if .Next}}
|
||||
{{if .Next}}
|
||||
<span class="right">
|
||||
<em>Next: </em><a class="next" href="{{.Next.Permalink}}"> {{ .Next.Title }}</a> »
|
||||
{{end}}
|
||||
</span>
|
||||
</span>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
<!--
|
||||
This file defines the main sidebar that the user can toggle in and out of
|
||||
view. This is included in every file.
|
||||
|
||||
Most of this was taken directly from the Lanyon example site.
|
||||
|
||||
Here we simply include a link to the homepage, a link to the blog posts,
|
||||
and some copyright information.
|
||||
-->
|
||||
|
||||
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
|
||||
styles, `#sidebar-checkbox` for behavior. -->
|
||||
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
|
||||
|
||||
+22
-2
@@ -1,6 +1,13 @@
|
||||
<!-- This file is the homepage of the website. -->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!--
|
||||
This section just sets up some metadata for the website.
|
||||
|
||||
It probably does not need to be changed.
|
||||
-->
|
||||
<meta charset="utf-8">
|
||||
<base href="{{ .Site.BaseUrl }}">
|
||||
<title>{{ .Site.Title }}</title>
|
||||
@@ -13,8 +20,7 @@
|
||||
|
||||
{{ 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. -->
|
||||
<!-- See /layouts/indexes/category.html for explanation of this section -->
|
||||
<div class="wrap">
|
||||
<div class="masthead">
|
||||
<div class="container">
|
||||
@@ -24,6 +30,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
This section contains the content of our home page.
|
||||
|
||||
I have broken it into three main sections:
|
||||
(1) about the blog
|
||||
(2) about me
|
||||
(3) Recent posts
|
||||
|
||||
The first two sections are pretty self explanatory.
|
||||
|
||||
In the recent posts section we ask Hugo to use the template found in
|
||||
/layouts/posts/summary.html to show a summary of the 10 most recent
|
||||
posts we have made.
|
||||
-->
|
||||
<div class="container content">
|
||||
<h1>This is a Blog</h1>
|
||||
|
||||
|
||||
@@ -1,8 +1,27 @@
|
||||
<!--
|
||||
This file is used to render a list of all posts that belong to a specific
|
||||
category.
|
||||
-->
|
||||
|
||||
|
||||
{{ template "chrome/header.html" . }}
|
||||
|
||||
<body class="theme-base-08">
|
||||
{{ template "chrome/sidebar.html" . }}
|
||||
|
||||
<!--
|
||||
Taken from Lanyon example site.
|
||||
|
||||
Putting everything in the wrap div makes the whole page slide over when the
|
||||
navigation button is pressed.
|
||||
|
||||
The masthead is a special Lanyon class that is above the horizontal line at
|
||||
the top of each page. To me it seemed like a place to put the page title.
|
||||
|
||||
We want the title to be Blog Posts and we want it to be a link to the
|
||||
root of the /posts section of the site.
|
||||
|
||||
-->
|
||||
<div class="wrap">
|
||||
<div class="masthead">
|
||||
<div class="container">
|
||||
@@ -12,6 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Show summary of all posts in a category -->
|
||||
<div class="container content">
|
||||
<h1 class="post-title">Recent Posts</h1>
|
||||
<section id="main">
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
<!--
|
||||
This file is used to generate the root file of a Hugo index.
|
||||
In our case this is only the index for categories, so it will render the
|
||||
page baseurl/categories
|
||||
-->
|
||||
|
||||
{{ template "chrome/header.html" . }}
|
||||
|
||||
<body class="theme-base-08">
|
||||
{{ template "chrome/sidebar.html" . }}
|
||||
|
||||
<!-- See /layouts/indexes/category.html for explanation of this section -->
|
||||
<div class="wrap">
|
||||
<div class="masthead">
|
||||
<div class="container">
|
||||
@@ -12,8 +19,16 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
In this section we instruct Hugo to list all the different items in the
|
||||
index. Because we only have an index for categories, each item will be
|
||||
a category name. The name is a link to a page that displays all posts in
|
||||
that category.
|
||||
|
||||
We also list the number of entries in each category in parenthesis next
|
||||
to the category name.
|
||||
-->
|
||||
<div class="container content">
|
||||
<h1 class="post-title">Recent Posts</h1>
|
||||
<section id="main">
|
||||
<div>
|
||||
<h1>Archive of Posts, by {{ .Data.Singular }}</h1>
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<!--
|
||||
This file is used to render a list of all posts on our blog.
|
||||
-->
|
||||
|
||||
{{ template "chrome/header.html" . }}
|
||||
|
||||
<body class="theme-base-08">
|
||||
{{ template "chrome/sidebar.html" . }}
|
||||
|
||||
<!-- See /layouts/indexes/category.html for explanation of this section -->
|
||||
<div class="wrap">
|
||||
<div class="masthead">
|
||||
<div class="container">
|
||||
@@ -12,8 +17,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container content">
|
||||
<!--
|
||||
In this section we have Hugo generate a list of all blog posts, ordered
|
||||
by date.
|
||||
|
||||
When showing each post we ask Hugo to use the template in
|
||||
/layouts/posts/li.html to provide a short description of each post.
|
||||
-->
|
||||
<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">
|
||||
|
||||
+12
-2
@@ -1,12 +1,22 @@
|
||||
{{ $baseurl := .Site.BaseUrl }}
|
||||
<!--
|
||||
This file defines how a summary of a specifc post should be presented in a
|
||||
list (hence the file name li.html for "list item"). This is used in the
|
||||
template /layouts/indexes/posts.html
|
||||
|
||||
The lines of the displayed list item are as follows:
|
||||
(1) The name of the post
|
||||
(2) The date the post was written as left-justified text and a
|
||||
right-justified horizontal list of categories for that post.
|
||||
(3) The contents of the description field in the metadata of the actual
|
||||
markdown source of the post.
|
||||
-->
|
||||
<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>
|
||||
<li><a href="/categories/{{ . | urlize }}">{{ . }}</a> </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
<!--
|
||||
This file is responsible for rendering a single blog post.
|
||||
-->
|
||||
|
||||
{{ template "chrome/header.html" . }}
|
||||
|
||||
<body class="theme-base-08">
|
||||
{{ template "chrome/sidebar.html" . }}
|
||||
|
||||
<!-- See /layouts/indexes/category.html for explanation of this section -->
|
||||
<div class="wrap">
|
||||
<div class="masthead">
|
||||
<div class="container">
|
||||
@@ -12,12 +17,23 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
This is where the actual post is displayed.
|
||||
|
||||
We first access the title metadata field from the markdown source and
|
||||
display it as a heading.
|
||||
|
||||
We then access the date the post was written (also in the markdown
|
||||
metadata) and display a formated version of it
|
||||
|
||||
Finally we include the actual content of the post.
|
||||
-->
|
||||
<div class="container content">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<section id="main">
|
||||
<h5 id="date"> {{ .Date.Format "Mon Jan 2, 2006" }} </h5>
|
||||
{{ .Content }}
|
||||
</section>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
<!--
|
||||
This file defines how a summary of a specifc post should be presented. This
|
||||
is similar to the file /layouts/posts/li.html, but is meant have a bit longer
|
||||
of a representation than the one in that file.
|
||||
|
||||
This template does the following:
|
||||
(1) Shows the name of the post
|
||||
(2) Shows the date the post was created (from metadata in post markdown
|
||||
source)
|
||||
(3) Displays a Hugo-generated summary of the post
|
||||
(4) Provides a link with text Read More that points to the post
|
||||
-->
|
||||
|
||||
<article class="post">
|
||||
<header>
|
||||
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
|
||||
|
||||
Reference in New Issue
Block a user