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 | |
parent | d746c8eec369cc76fb9937f7838172ba40d3bf0f (diff) |
Add menu to blog pages
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/docs/baseof.html | 13 | ||||
-rw-r--r-- | layouts/partials/docs/menu.html | 12 | ||||
-rw-r--r-- | layouts/posts/baseof.html | 13 | ||||
-rw-r--r-- | layouts/posts/list.html | 2 |
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> |