From b6d7a1050fe273869646242304899f0a0f1483b2 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 24 Sep 2018 17:03:23 +0200 Subject: Improve mobile UX --- layouts/docs/baseof.html | 56 ++++++++++++++++----------------- layouts/partials/docs/header.html | 6 ++++ layouts/partials/docs/html-head.html | 6 ++-- layouts/partials/docs/nav-filetree.html | 2 +- 4 files changed, 39 insertions(+), 31 deletions(-) create mode 100644 layouts/partials/docs/header.html (limited to 'layouts') diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 3a97228..94f8cd4 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -7,39 +7,39 @@ -
- -
- -
-
-
- -
- {{- .Content -}} -
- {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} - {{ if and ($showToC) (.Page.TableOfContents) }} -
- {{ partial "docs/toc" . }} -
- {{ end }} +
+ {{ partial "docs/header" . }} +
+ + + +
+ +
+
+ {{- .Content -}} +
+ {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} + {{ if and ($showToC) (.Page.TableOfContents) }} +
+ {{ partial "docs/toc" . }}
+ {{ end }}
+ {{ partial "docs/inject/body" . }} \ No newline at end of file diff --git a/layouts/partials/docs/header.html b/layouts/partials/docs/header.html new file mode 100644 index 0000000..aab1fcb --- /dev/null +++ b/layouts/partials/docs/header.html @@ -0,0 +1,6 @@ + +

+ {{ .Site.Title }} +

\ No newline at end of file diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index e77c218..fe09dd0 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -3,8 +3,10 @@ {{- template "title" . }} | {{ .Site.Title -}} - - + + + + {{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} \ No newline at end of file diff --git a/layouts/partials/docs/nav-filetree.html b/layouts/partials/docs/nav-filetree.html index 6c2f965..3ec4539 100644 --- a/layouts/partials/docs/nav-filetree.html +++ b/layouts/partials/docs/nav-filetree.html @@ -8,7 +8,7 @@ {{ define "book-section" }}
    {{ range .Section.Sections }} -
  • +
  • {{- if .Content -}} {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} {{- else -}} -- cgit v1.2.3