From 8b81f8aaa9c272a8c2a27d2edde12b4070e1212c Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 24 Apr 2022 10:02:06 +0200 Subject: Wrap content --- README.md | 10 ++++------ layouts/_default/baseof.html | 23 +++++++++++++++++++++++ layouts/partials/head.html | 1 + layouts/partials/script.html | 0 layouts/partials/sidebar.html | 2 +- 5 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 layouts/partials/script.html diff --git a/README.md b/README.md index fdfbae9..313a320 100644 --- a/README.md +++ b/README.md @@ -22,18 +22,16 @@ theme = 'ed' color_scheme = '' # Github project url. Used in sidebar github_url = 'https://github.com/user/project' + # Used in header + tagline = 'a Hugo theme for minimal editions' [menu] - [[menu.nav]] - name = "Home" - url = "/" - weight = 1 [[menu.nav]] name = "Posts" url = "/posts/" - weight = 2 + weight = 1 [[menu.nav]] name = "Tags" url = "/tags/" - weight = 3 + weight = 2 ``` diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 13630ce..c12c001 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,5 +9,28 @@ {{- partial "sidebar.html" . -}} {{- end -}} + +
+
+
+

+ {{ .Site.Title }} +
{{ .Site.Params.tagline }} +

+
+
+ +
+ {{- block "main" . }}{{- end }} +
+
+ + + + {{- partial "script.html" . -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1518319..4168a3d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,6 +20,7 @@ {{ $title }} + {{ hugo.Generator }} diff --git a/layouts/partials/script.html b/layouts/partials/script.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index c4a3220..5b5c016 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -8,7 +8,7 @@