From a3f17b1517cb217ee07a08338b0ec40d4799ab15 Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Tue, 2 Apr 2019 11:10:50 -0400 Subject: [PATCH] layout fixes --- config.toml | 1 + layouts/_default/baseof.html | 1 - layouts/_default/list.html | 21 +++++++++++++++++++++ layouts/{notes => _default}/single.html | 8 ++++++-- layouts/index.html | 4 ++-- layouts/notes/baseof.html | 5 ----- layouts/notes/list.html | 19 ------------------- static/style.css | 7 ++++++- 8 files changed, 36 insertions(+), 30 deletions(-) delete mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html rename layouts/{notes => _default}/single.html (85%) delete mode 100644 layouts/notes/baseof.html delete mode 100644 layouts/notes/list.html diff --git a/config.toml b/config.toml index 8d79292d..e13d8375 100644 --- a/config.toml +++ b/config.toml @@ -4,6 +4,7 @@ title = "Jake Jarvis" canonifyURLs = true +disableFastRender = true disableHugoGeneratorInject = true # don't worry, inserted manually :) disableKinds = ["taxonomy", "taxonomyTerm"] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index e57071d7..00000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1 +0,0 @@ -{{ partial "header.html" . }}{{ block "main" . }}{{ end }}{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 00000000..bfd73d1d --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,21 @@ +{{ partial "header.html" . }} +{{ partial "blog-header.html" . }} + +
+ {{ range .Data.Pages.GroupByDate "2006" }} +
+

{{ .Key }}

+
    + {{ range .Pages }} +
  • +
    {{ .Date.Format "Jan 2" }}
    + +
  • + {{ end }} +
+
+ {{ end }} +
+ +{{ partial "blog-footer.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/notes/single.html b/layouts/_default/single.html similarity index 85% rename from layouts/notes/single.html rename to layouts/_default/single.html index 04a8532e..9e258aa4 100644 --- a/layouts/notes/single.html +++ b/layouts/_default/single.html @@ -1,4 +1,6 @@ -{{ define "main" }} +{{ partial "header.html" . }} +{{ partial "blog-header.html" . }} +

{{ .Title }}

@@ -24,4 +26,6 @@ {{ .Content }}
-{{ end }} \ No newline at end of file + +{{ partial "blog-footer.html" . }} +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 4a110649..8ba0cf52 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,4 @@ -{{ define "main" }} +{{ partial "header.html" . }}
Photo of Jake Jarvis

Hi! I'm Jake Jarvis. 👋

@@ -24,4 +24,4 @@
© 2001 – {{ now.Format "2006" }} . View source.
-{{ end }} \ No newline at end of file +{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/notes/baseof.html b/layouts/notes/baseof.html deleted file mode 100644 index f78a37e5..00000000 --- a/layouts/notes/baseof.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ partial "header.html" . }} -{{ partial "blog-header.html" . }} -{{ block "main" . }}{{ end }} -{{ partial "blog-footer.html" . }} -{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/notes/list.html b/layouts/notes/list.html deleted file mode 100644 index 70070709..00000000 --- a/layouts/notes/list.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" }} -
- -{{ range .Data.Pages.GroupByDate "2006" }} -
-

{{ .Key }}

-
    - {{ range .Pages }} -
  • -
    {{ .Date.Format "Jan 2" }}
    - -
  • - {{ end }} -
-
-{{ end }} - -
-{{ end }} \ No newline at end of file diff --git a/static/style.css b/static/style.css index 50e87222..af580fb4 100644 --- a/static/style.css +++ b/static/style.css @@ -700,8 +700,13 @@ body#notes div#content blockquote { body#notes div#content code { font-family: monospace; background: #f4f4f4; + padding: 0.2em; + border: 1px solid #cccccc; + font-size: 16px; +} + +body#notes div#content pre code { padding: 1em 1.5em; - font-size: 15px; line-height: 1.6; page-break-inside: avoid; border: 1px solid #ddd;