From 8496f3622e2754e8c66909f7504698c58edd284e Mon Sep 17 00:00:00 2001
From: Philip Khor <35039795+philip-khor@users.noreply.github.com>
Date: Sat, 4 May 2019 22:39:34 +0800
Subject: [PATCH 1/3] Use global hugo function
When building the site, I get the following warning:
> Page's .Hugo is deprecated and will be removed in a future release. Use the global hugo function.
Replacing .Hugo with hugo in header.html removes the warning.
---
layouts/partials/header.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 1c82e77..a0af512 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -28,7 +28,7 @@
- {{ .Hugo.Generator }}
+ {{ hugo.Generator }}
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
From 6cd8e1342367ee84cca70dca91ec8ade4be171f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Naz=C4=B1m=20Can=20Alt=C4=B1nova?=
Date: Sat, 4 May 2019 19:45:30 +0200
Subject: [PATCH 2/3] Remove the marker of menu
element
This is a problem in Firefox because Firefox displays markers(bullet
points) of `
` element just before the inline contents of the
elements. But Chrome displays them before the element, not depending on
the content of the `
` element. So it wasn't visible on Chrome but
it's in Firefox. This CSS change will remove that in Firefox too.
---
static/css/style.css | 1 +
1 file changed, 1 insertion(+)
diff --git a/static/css/style.css b/static/css/style.css
index 363bb19..26253c9 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -183,6 +183,7 @@ img {
padding-bottom: 180px;
text-align: center;
background: #fff;
+ list-style: none;
}
.menu li + li {
margin-top: 12px;
From bd3ef6a9538e40db5560fb5b565029ae34889ebf Mon Sep 17 00:00:00 2001
From: Dan Jordan
Date: Thu, 30 May 2019 22:48:33 +0100
Subject: [PATCH 3/3] Hide the menu toggle if the menu is empty
---
layouts/partials/header.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index a0af512..4d9b512 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -44,7 +44,9 @@
{{ else }}