summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..e1272ce
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,28 @@
+{{ partial "header.html" . -}}
+
+<article class="post-body">
+ <a class="back-link" href="/">← voltar</a>
+
+ <header class="post-header">
+ <h1>{{ .Title }}</h1>
+ {{ with .Params.excerpt }}
+ <p class="post-excerpt-lead">{{ . }}</p>
+ {{ end }}
+ {{ with .Date }}{{ if not .IsZero }}
+ <p class="post-date">{{ .Format "02/01/2006" }}</p>
+ {{ end }}{{ end }}
+ {{ with .Params.tags }}
+ <div class="post-tags-bar">
+ {{ range . }}
+ <a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="post-tag">{{ . }}</a>
+ {{ end }}
+ </div>
+ {{ end }}
+ </header>
+
+ <div class="content">
+ {{ .Content }}
+ </div>
+</article>
+
+{{ partial "footer.html" . }}