diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 3410e13..8f03d35 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -1,78 +1,42 @@ /* Layout */ -.page { - display: flex; -} - -.side, .content, .footer { +.content, .footer { padding: 20px; } -#navbar { - overflow: hidden; +.header a, #navbar { + padding-left: 20px; } -#navbar a { - float: left; - display: block; - padding: 14px 20px; -} - -.navbar-items { - float: right; +.navbar-item { + margin-right: 5px; } body { margin: 0; - display: flex; - flex-direction: column; + max-width: 720px; } * { box-sizing: border-box; } -@media screen and (max-width: 700px) { - .page { - flex-direction: column; - } - - .navbar-items a { - width: 100%; - } -} - /* Styling */ -.side { - background-color: #111; - color: lightgray; -} -.content { - color: lightgray; - max-width: 720px; -} .footer { text-align: center; background: #ddd; } -#navbar { - background-color: #091a2c; -} -#navbar a { - color: lightgray; - text-align: center; - text-decoration: none; -} -#navbar a:hover { - background-color: #0e2a46; - color: white; +.header a, #navbar { + color: inherit; + text-decoration: inherit; } body { background-color: black; + color: lightgray; font-family: sans-serif; } a { diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 93afac2..a6bf1d7 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,21 +4,12 @@ {{- partial "head.html" . -}} - {{ partial "navbar.html" . }} + {{ partial "header.html" . }} -
- {{ if and .Params.Toc .IsPage }} -
-

Table of Contents

- {{ .TableOfContents }} -
- {{ end }} - -
- {{- block "main" . }} - {{ .Content }} - {{- end }} -
+
+ {{- block "main" . }} + {{ .Content }} + {{- end }}
{{- partial "footer.html" . -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 26f5e6a..7cd63bf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,5 +23,12 @@ {{ end }} +{{ if .Params.Toc }} +
+

Table of Contents

+ {{ .TableOfContents }} +
+{{ end }} + {{ .Content }} {{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..14d02cb --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,10 @@ +

+ {{ .Site.Title | markdownify }} +

+ + diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html deleted file mode 100644 index 652a550..0000000 --- a/layouts/partials/navbar.html +++ /dev/null @@ -1,11 +0,0 @@ -