summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/docs/baseof.html13
-rw-r--r--layouts/partials/docs/menu.html12
-rw-r--r--layouts/posts/baseof.html13
-rw-r--r--layouts/posts/list.html2
4 files changed, 25 insertions, 15 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index cbcc35a..9ea09fa 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -12,18 +12,7 @@
<main class="flex container">
<aside class="book-menu fixed">
- <nav role="navigation">
- {{ partial "docs/brand" . }}
- {{ partial "docs/inject/menu-before" . }}
-
- {{ if .Site.Params.BookMenuBundle }}
- {{ partial "docs/menu-bundle" . }}
- {{ else }}
- {{ partial "docs/menu-filetree" . }}
- {{ end }}
-
- {{ partial "docs/inject/menu-after" . }}
- </nav>
+ {{ partial "docs/menu" . }}
</aside>
<div class="book-page">
diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html
new file mode 100644
index 0000000..0ded211
--- /dev/null
+++ b/layouts/partials/docs/menu.html
@@ -0,0 +1,12 @@
+<nav role="navigation">
+{{ partial "docs/brand" . }}
+{{ partial "docs/inject/menu-before" . }}
+
+{{ if .Site.Params.BookMenuBundle }}
+ {{ partial "docs/menu-bundle" . }}
+{{ else }}
+ {{ partial "docs/menu-filetree" . }}
+{{ end }}
+
+{{ partial "docs/inject/menu-after" . }}
+</nav> \ No newline at end of file
diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html
index fa97ee3..bbf5d45 100644
--- a/layouts/posts/baseof.html
+++ b/layouts/posts/baseof.html
@@ -8,9 +8,18 @@
</head>
<body>
- <main class="book-posts mx-auto">
- {{ template "main" . }}
+ <input type="checkbox" style="display: none" id="menu-control" />
+ <main class="flex container">
+ <aside class="book-menu fixed">
+ {{ partial "docs/menu" . }}
+ </aside>
+
+ <div class="book-posts mr-auto">
+ {{ partial "docs/mobile-header" . }}
+ {{ template "main" . }}
+ </div>
</main>
+
{{ partial "docs/inject/body" . }}
{{ template "_internal/google_analytics_async.html" . }}
diff --git a/layouts/posts/list.html b/layouts/posts/list.html
index 97873dd..67b770d 100644
--- a/layouts/posts/list.html
+++ b/layouts/posts/list.html
@@ -8,7 +8,7 @@
<h5>
<strong>{{ .Date.Format "January 2, 2006" }}</strong>
</h5>
- <p>
+ <p class="markdown">
{{- .Summary -}}
{{ if .Truncated }}
<a href="{{ .Permalink }}">...</a>