From 4426c889fd5477117b900c33f1f96e110edf138d Mon Sep 17 00:00:00 2001
From: Khosrow Moossavi <khos2ow@gmail.com>
Date: Wed, 03 Oct 2018 18:06:20 +0000
Subject: [PATCH] Post refactor to hold everything its own (#88)
---
layouts/posts/single.html | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 75b30ed..96e4f7a 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -2,5 +2,22 @@
{{ .Title }} ยท {{ .Site.Title }}
{{ end }}
{{ define "content" }}
- {{ partial "post.html" . }}
+ <section class="container post">
+ <article>
+ <header>
+ <h1 class="title">{{ .Title }}</h1>
+ <h2 class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</h2>
+ </header>
+
+ <div>
+ {{ .Content }}
+ </div>
+
+ <footer>
+ {{ partial "posts/disqus" . }}
+ </footer>
+ </article>
+
+ {{ partial "posts/math" . }}
+ </section>
{{ end }}
--
Gitblit v1.10.0