about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--content/_index.md4
-rw-r--r--content/post/a-new-site.md4
-rw-r--r--layouts/index.html12
-rw-r--r--themes/xmin/layouts/_default/baseof.html18
-rw-r--r--themes/xmin/layouts/_default/list.html11
-rw-r--r--themes/xmin/layouts/_default/single.html11
-rw-r--r--themes/xmin/static/css/style.css3
7 files changed, 34 insertions, 29 deletions
diff --git a/content/_index.md b/content/_index.md
index 2090377..eeb5ab7 100644
--- a/content/_index.md
+++ b/content/_index.md
@@ -1,7 +1,5 @@
 ---
 title: "Home"
 ---
-## Hello
-Hi. My name is Alan, I live in Berlin, where I work as a
-Full-stack Developer.  I mostly write about Emacs and
+I work as a Full-stack Developer in Berlin.  I occasionally write about Emacs and
 development-related topics.
diff --git a/content/post/a-new-site.md b/content/post/a-new-site.md
index aa2efbf..ffaa3ff 100644
--- a/content/post/a-new-site.md
+++ b/content/post/a-new-site.md
@@ -1,8 +1,8 @@
 +++
 Categories = ["Geek"]
 Description = "I made a website."
-Title = "A New Site"
-Date = 2014-06-07T20:16:16Z
+title = "A New Site"
+date = 2014-06-07T20:16:16Z
 +++
 
 I finally got around to making a website.  I decided to use [Hugo][] with a slightly-modified [Hyde theme][]
diff --git a/layouts/index.html b/layouts/index.html
index 8aebc2d..c555aa9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,15 +1,17 @@
 {{ define "main" -}}
-<main>
-  <section>
+<main class="h-card">
+  <img height="128" width="128" class="u-photo" src="/img/me-thumb.jpg" />
+  <h1 class="p-name">Alan Pearce</h1>
+  <section class="p-note">
     {{ .Content }}
   </section>
   <section>
     <h2>Latest Posts</h2>
     <ul>
       {{- range first 3 .Site.RegularPages }}
-      <li>
-        <a href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a>
-        <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
+      <li class="h-entry">
+        <a class="u-url p-name" href="{{ .RelPermalink | strings.TrimRight "/" }}">{{ .Title }}</a>
+        <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time>
       </li>
       {{- end }}
     </ul>
diff --git a/themes/xmin/layouts/_default/baseof.html b/themes/xmin/layouts/_default/baseof.html
index 6757396..1705460 100644
--- a/themes/xmin/layouts/_default/baseof.html
+++ b/themes/xmin/layouts/_default/baseof.html
@@ -1,21 +1,21 @@
 <!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
+<html lang="{{ .Site.LanguageCode }}" {{- if .Page.IsNode }} class="h-feed"{{ end }}>
   <head profile="//gmpg.org/xfn/11">
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
-    <title>{{ .Title }} | {{ .Site.Title }}</title>
+    <title {{- if .Page.IsNode }} class="p-name"{{ end }}>{{ .Title }} | {{ .Site.Title }}</title>
     <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" />
-    {{ range .AlternativeOutputFormats -}}
-      {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
-    {{ end -}}
+    {{- range .AlternativeOutputFormats }}
+    {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }}
+    {{- end }}
   </head>
 
   <body>
     <nav>
       <ul>
-        {{ range .Site.Menus.main }}
+        {{- range .Site.Menus.main }}
         <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
-        {{ end }}
+        {{- end }}
       </ul>
     </nav>
 
@@ -23,9 +23,9 @@
     {{ end }}
 
     <footer>
-      {{ with .Site.Params.footer }}
+      {{- with .Site.Params.footer }}
       {{ . | markdownify }}
-      {{ end }}
+      {{- end }}
     </footer>
   </body>
 </html>
diff --git a/themes/xmin/layouts/_default/list.html b/themes/xmin/layouts/_default/list.html
index bf0af50..6780bba 100644
--- a/themes/xmin/layouts/_default/list.html
+++ b/themes/xmin/layouts/_default/list.html
@@ -1,18 +1,21 @@
 {{ define "main" }}
 
-{{if not .IsHome }}
+{{ if not .IsHome }}
 <h1>{{ .Title | markdownify }}</h1>
+{{ else }}
+<h1>{{ .Site.Title | markdownify }}</h1>
 {{ end }}
 
+
 {{ .Content }}
 
 <ul>
   {{ $pages := .Pages }}
   {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
   {{ range (where $pages "Section" "!=" "") }}
-  <li>
-    <span class="date">{{ .Date.Format "2006-01-02" }}</span>
-    <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
+  <li class="h-entry">
+    <span class="date dt-published">{{ .Date.Format "2006-01-02" }}</span>
+    <a class="u-url p-name" href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
   </li>
   {{ end }}
 </ul>
diff --git a/themes/xmin/layouts/_default/single.html b/themes/xmin/layouts/_default/single.html
index 54acdc6..ba0e22a 100644
--- a/themes/xmin/layouts/_default/single.html
+++ b/themes/xmin/layouts/_default/single.html
@@ -2,14 +2,13 @@
 <article class="h-entry">
   <header>
     <h1><span class="title p-name">{{ .Title | markdownify }}</span></h1>
-    {{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
     {{ if (gt .Params.date 0) }}<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
     <p class="terms">
-      {{ range $i := (slice "categories" "tags") }}
-      {{ with ($.Param $i) }}
-      {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
-      {{ end }}
-      {{ end }}
+      {{- range $i := (slice "categories" "tags") }}
+      {{- with ($.Param $i) }}
+      {{ $i | title }}: {{ range $k := . }}<a class="p-category" href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}
+      {{- end }}
+      {{- end }}
     </p>
   </header>
 
diff --git a/themes/xmin/static/css/style.css b/themes/xmin/static/css/style.css
index 76658fe..8d456af 100644
--- a/themes/xmin/static/css/style.css
+++ b/themes/xmin/static/css/style.css
@@ -5,6 +5,9 @@ body {
   max-width: 800px;
   padding: 1em;
 }
+.u-photo {
+  float:right;
+}
 
 /* header and footer areas */
 nav > ul { padding: 0; }