From d098f46b07a04a23f3360fb1616f8e3760fb1957 Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Tue, 11 Apr 2017 22:59:14 +0000
Subject: [PATCH] on page wtyling [wip]

---
 layouts/article/single.html |   42 +++++++++---------------------------------
 1 files changed, 9 insertions(+), 33 deletions(-)

diff --git a/layouts/article/single.html b/layouts/article/single.html
index 049b03a..b86ed9d 100644
--- a/layouts/article/single.html
+++ b/layouts/article/single.html
@@ -1,43 +1,19 @@
 {{ define "header" }}{{ partial "page-header.html" . }}{{ end }}
 {{ define "main" }}
-{{ $currentPageUrl := .URL }}
-
-  <article class="center cf pv5 measure-wide-l">
-
+  <article class="center cf pv5 mw7">
     <p class="f6 fw8">
       {{ humanize .Section | upper  }}
     </p>
-    <h1>
+    <h1 class="f1">
       {{ .Title }}
     </h1>
-    <div class="nested-copy-line-height nested-links nested-img mid-gray measure-wide-l">
+      {{/* TODO: Add Hugo author  */}}
+    <time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
+        {{ .Date.Format "January 2, 2006" }}
+    </time>
+    <section class="nested-copy-line-height lh-copy serif f4 measure-wide-l nested-links nested-img mid-gray">
         {{ .Content | markdownify }}
-    </div>
-
-    {{ if .Params.tags }}
-      <div class="mt5 f6 gray nested-lh-copy bg-light-gray ph3 pv2 measure-wide-l">
-          {{ $name := index .Params.tags 0 }}
-          {{ $name := $name | urlize }}
-          {{ $tags := index .Site.Taxonomies.tags $name }}
-
-            <ul class="list dib nested-links ml0 pl0">
-              <li class="dib mb2 mr2">Related:</li>
-              {{ range $tags.Pages }}
-                {{ if ne .URL $currentPageUrl }}
-                  <li class="mb2 mr3">
-    	               <a href="{{ .URL }}" class="link">
-                       {{ .LinkTitle }}
-                     </a>
-                   </li>
-                {{ end }}
-              {{end}}
-            </ul>
-          </div>
-        {{end}}
-
-      <div class="gray f6 mv6">
-        Last Update: {{ .Lastmod.Format "January 2, 2006" }}
-      </div>
-
+    </section>
+    {{ partial "tags.html" . }}
   </article>
 {{ end }}

--
Gitblit v1.10.0