aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorÓscar Nájera <hello@oscarnajera.com>2018-07-08 18:27:48 +0200
committerÓscar Nájera <hello@oscarnajera.com>2018-07-08 18:27:48 +0200
commit383f0a2fe4f90c9231dc92e8fc34679c219f7009 (patch)
tree4dbad5a8300db96d19b59ef6fd171de376aeb25e /layouts/_default
downloadhugo-minimalist-theme-383f0a2fe4f90c9231dc92e8fc34679c219f7009.tar.gz
hugo-minimalist-theme-383f0a2fe4f90c9231dc92e8fc34679c219f7009.tar.bz2
hugo-minimalist-theme-383f0a2fe4f90c9231dc92e8fc34679c219f7009.zip
Minimalist theme blog elements
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/summary.html16
2 files changed, 27 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..f38999e
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ <div id="content" class="mw7 center">
+ {{- block "main" . }}{{- end }}
+ </div>
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
new file mode 100644
index 0000000..3052456
--- /dev/null
+++ b/layouts/_default/summary.html
@@ -0,0 +1,16 @@
+<article class="bt bb b--black-10">
+ <a href='{{ .Permalink }}' class="db pv4 ph3 black no-underline dim">
+ <header>
+ <h1 class="f3">
+ {{ .Title }}
+ </h1>
+ <div class="gray">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words </div>
+ </header>
+ <p class="f5 lh-copy">
+ {{ .Summary }}
+ </p>
+ <footer>
+ <nobr>Read more →</nobr>
+ </footer>
+ </a>
+</article>