summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-05 20:28:20 +0000
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-05 20:28:20 +0000
commitdb6cb54326c80f805c50e0710acba3818270ae2d (patch)
tree63ddf640cb9bba62adfb7abbb7931408350ed92c /layouts
parent2edc5b80bc597b6833e4ef3cd055a936ebf3c095 (diff)
got absolute minima running
Diffstat (limited to '')
-rw-r--r--layouts/blog/li.html24
-rw-r--r--layouts/blog/single.html18
-rw-r--r--themes/problematic/layouts/index.html (renamed from layouts/index.html)9
3 files changed, 8 insertions, 43 deletions
diff --git a/layouts/blog/li.html b/layouts/blog/li.html
deleted file mode 100644
index cb44e71..0000000
--- a/layouts/blog/li.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<style>
- #cat-category {
- font-size: small;
- color: red;
- }
- #vim-category {
- font-size: small;
- color: #2abb01;
- }
-</style>
-
-<li>
- <a href="{{ .Permalink }}">
- {{ .Title }}
- {{ if isset .Params "category" }}
- {{ if eq .Params.Category "cats" }}
- <span id="cat-category">[{{ lower .Params.Category }}]</span>
- {{ else if (eq .Params.Category "vim") }}
- <span id="vim-category">[{{ lower .Params.Category }}]</span>
- {{ end }}
- {{ end }}
- <small><time>{{ .Date.Format "2 Jan, 2006" }}</time></small>
- </a>
-</li>
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
deleted file mode 100644
index 698be33..0000000
--- a/layouts/blog/single.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{{ define "main" }}
-<article>
- <header id="post-header">
- <h1>{{ .Title }}</h1>
- <div>
- {{- if isset .Params "date" -}}
- {{ if eq .Lastmod .Date }}
- <time>{{ .Date.Format "Monday 2 Jan, 2006" }}</time>
- {{ else }}
- Updated <time>{{ .Lastmod.Format "Monday 2 Jan, 2006" }}</time>
- {{ end }}
- {{- end -}}
- </div>
- </header>
- This is a {{ .Kind }}.
- {{- .Content -}}
-</article>
-{{ end }}
diff --git a/layouts/index.html b/themes/problematic/layouts/index.html
index 95320cc..de7fa73 100644
--- a/layouts/index.html
+++ b/themes/problematic/layouts/index.html
@@ -1,12 +1,19 @@
+
{{ define "main" }}
<main aria-role="main">
+ <header class="homepage-header">
+ <h1>{{.Title}}</h1>
+ {{ with .Params.subtitle }}
+ <span class="subtitle">{{.}}</span>
+ {{ end }}
+ </header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
- {{ .Render "about"}}
+ {{ .Render "summary"}}
{{ end }}
</div>
</main>