aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
commitf24f2d15275961f1c0144e68fde75a60aeaaa165 (patch)
tree38be1626f3ade436fbd17eadb2753fa2f0effb37 /layouts/index.html
parentbf04383b34c4a4fdfe239de2805a30a051921002 (diff)
downloadcapotej.com-f24f2d15275961f1c0144e68fde75a60aeaaa165.tar.gz
move to bear theme
Diffstat (limited to '')
-rw-r--r--layouts/index.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..45d5119
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,37 @@
+{{ define "main" }}
+<content>
+ {{ if .Data.Singular }}
+ <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
+ <small>
+ <a href="{{ "/blog" | relURL }}">Remove filter</a>
+ </small>
+ {{ end }}
+ <ul class="blog-posts">
+ {{ range ( where .Site.RegularPages "Type" "blog" ) }}
+ <li>
+ <span>
+ <i>
+ <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
+ {{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
+ </time>
+ </i>
+ </span>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ else }}
+ <li>
+ No posts yet
+ </li>
+ {{ end }}
+ </ul>
+ {{ if .Data.Singular }}
+ <small>
+ <div>
+ {{ range .Site.Taxonomies.tags }}
+ <a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;
+ {{ end }}
+ </div>
+ </small>
+ {{ end }}
+</content>
+{{ end }}