diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-01-24 23:30:31 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-01-24 23:30:31 +0100 |
commit | 4ce973a4e2ee74ff4cba33ea3c8bb8761c8e70ef (patch) | |
tree | 54ea5013573f11dcf7e52a5d06f2ec0a9d4c7db9 /layouts/posts | |
parent | d746c8eec369cc76fb9937f7838172ba40d3bf0f (diff) |
Add menu to blog pages
Diffstat (limited to 'layouts/posts')
-rw-r--r-- | layouts/posts/baseof.html | 13 | ||||
-rw-r--r-- | layouts/posts/list.html | 2 |
2 files changed, 12 insertions, 3 deletions
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> |