aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/summary.html16
-rw-r--r--layouts/index.html11
-rw-r--r--layouts/partials/head.html2
-rw-r--r--theme.toml21
5 files changed, 61 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>
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..17c1d26
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+
+<h1 class="f1">{{.Title}}</h1>
+
+<h2 class="f2">Posts</h2>
+<!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. -->
+
+ {{ range where .Data.Pages "Section" "post" }}
+ {{ .Render "summary" }}
+ {{ end }}
+{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..c35336d
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,2 @@
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..33986d8
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,21 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "Minimalist"
+license = "MIT"
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
+description = ""
+homepage = "http://example.com/"
+tags = []
+features = []
+min_version = "0.41"
+
+[author]
+ name = "Óscar Nájera"
+ homepage = "https://blog.oscarnajera.com"
+
+# If porting an existing theme
+[original]
+ name = ""
+ homepage = ""
+ repo = ""