aboutsummaryrefslogtreecommitdiff
path: root/layouts/news
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/news')
-rw-r--r--layouts/news/list.html7
-rw-r--r--layouts/news/list.txt12
-rw-r--r--layouts/news/single.html6
-rw-r--r--layouts/news/single.txt6
4 files changed, 31 insertions, 0 deletions
diff --git a/layouts/news/list.html b/layouts/news/list.html
new file mode 100644
index 0000000..67eb4fb
--- /dev/null
+++ b/layouts/news/list.html
@@ -0,0 +1,7 @@
+{{define "main"}}
+<h1>News Index</h1>
+{{ range .Pages }}
+<h2><a href="{{.Permalink}}">{{.Date.Format "Jan 02, 2006"}}</a></h2>
+<p>{{ .Content }}</p>
+{{ end }}
+{{ end }}
diff --git a/layouts/news/list.txt b/layouts/news/list.txt
new file mode 100644
index 0000000..ab0a732
--- /dev/null
+++ b/layouts/news/list.txt
@@ -0,0 +1,12 @@
+{{define "main"}}
+NEWS INDEX
+==========
+
+{{ range .Pages }}
+{{.Date.Format "Jan 02, 2006"}}
+-------------------------------
+
+{{ .RawContent }}
+
+{{ end }}
+{{ end }}
diff --git a/layouts/news/single.html b/layouts/news/single.html
new file mode 100644
index 0000000..2a2d481
--- /dev/null
+++ b/layouts/news/single.html
@@ -0,0 +1,6 @@
+{{define "main"}}
+<header>
+<h2 class="title">{{.PublishDate.Format "Jan 02, 2006"}}</h2>
+</header>
+{{ .Content }}
+{{ end }}
diff --git a/layouts/news/single.txt b/layouts/news/single.txt
new file mode 100644
index 0000000..e59d69f
--- /dev/null
+++ b/layouts/news/single.txt
@@ -0,0 +1,6 @@
+{{define "main"}}
+{{.PublishDate.Format "Jan 02, 2006"}}
+============
+
+{{ .RawContent }}
+{{ end }}