From d39cbfe8688e5605fdbf44d216b906cd4161d090 Mon Sep 17 00:00:00 2001
From: Hanzei
Date: Tue, 12 Jun 2018 01:39:02 +0200
Subject: [PATCH 001/105] Add showRSSButton setting
---
exampleSite/config.toml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 8f8a70a..dfcf2d3 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -8,7 +8,7 @@ canonifyurls = true # Turns relative url
# disqusshortname = "xxx" # Enable Disqus for comments
# googleAnalytics = "xxx"
-[params]
+[params]
blogHead = "Blog" # Full name shows on blog post pages
firstName = "Introduction" # First name shows in introduction on main page
tagLine = "I'm a theme for Hugo." # Appears after the introduction
@@ -36,6 +36,7 @@ canonifyurls = true # Turns relative url
showAllPosts = false # Set 'true' to list all posts on home page, or set 'false' to link to separate blog list page
showLatest = true # Show latest blog post summary
shareButtons = true # On post pages, show share this social buttons
+ showRSSButton = true # Show rss button in navigation
# Share buttons
shareTwitter = true
@@ -56,4 +57,4 @@ canonifyurls = true # Turns relative url
[[params.social]]
url = "https://linkedin.com/"
- icon = "linkedin"
\ No newline at end of file
+ icon = "linkedin"
From 1086eeebf4b705d1c5fcb28e2ebd73a9207b0415 Mon Sep 17 00:00:00 2001
From: Hanzei
Date: Tue, 12 Jun 2018 01:39:40 +0200
Subject: [PATCH 002/105] Move diffent nav files into one
---
layouts/404.html | 12 +++----
layouts/_default/list.html | 7 ++--
layouts/_default/single.html | 7 ++--
layouts/_default/taxonomy.html | 7 ++--
layouts/_default/terms.html | 7 ++--
layouts/blog/list.html | 4 +--
layouts/blog/single.html | 8 ++---
layouts/index.html | 23 ++++---------
layouts/partials/nav-list.html | 35 --------------------
layouts/partials/nav-single.html | 43 -------------------------
layouts/partials/nav.html | 55 ++++++++++++++++++++++++++++++++
11 files changed, 79 insertions(+), 129 deletions(-)
delete mode 100644 layouts/partials/nav-list.html
delete mode 100644 layouts/partials/nav-single.html
create mode 100644 layouts/partials/nav.html
diff --git a/layouts/404.html b/layouts/404.html
index 02a2775..ad7b032 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -9,14 +9,12 @@
-
-
- {{ partial "nav-single.html" . }}
-
-
-
+ {{ partial "nav.html" . }}
+
+
Oops! Either you've found a bug (in which case,
please tell me) or you're just making things up. This page doesn't exist!
-
+
+
{{ partial "footer.html" . }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 96a6ae9..19da67a 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -12,11 +12,8 @@
-
-
- {{ partial "nav-list.html" . }}
-
-
+ {{ partial "nav.html" . }}
+
{{ .Content }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 618dc76..984db2e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -12,11 +12,8 @@
-
-
- {{ partial "nav-single.html" . }}
-
-
+
+ {{ partial "nav.html" . }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 4b3ddc4..d0f632d 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -12,11 +12,8 @@
-
-
- {{ partial "nav-list.html" . }}
-
-
+ {{ partial "nav.html" . }}
+
{{ .Content }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 44e8b79..4cb88a2 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -13,11 +13,8 @@
-
-
- {{ partial "nav-list.html" . }}
-
-
+ {{ partial "nav.html" . }}
+
{{ .Content }}
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index c2d94d6..a2535ad 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -10,9 +10,7 @@
-
- {{ partial "nav-list.html" . }}
-
+ {{ partial "nav.html" . }}
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 15e1a9b..9a949cc 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -7,12 +7,10 @@
{{ .Site.Params.blogHead | default "Blog" }}
-
-
+
+
-
- {{ partial "nav-single.html" . }}
-
+ {{ partial "nav.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index f626821..dafb04c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -22,23 +22,14 @@
-
-
+
+
+
-
+ {{ partial "nav.html" . }}
+
+
+
diff --git a/layouts/partials/nav-list.html b/layouts/partials/nav-list.html
deleted file mode 100644
index 1c6869a..0000000
--- a/layouts/partials/nav-list.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
diff --git a/layouts/partials/nav-single.html b/layouts/partials/nav-single.html
deleted file mode 100644
index b088ab0..0000000
--- a/layouts/partials/nav-single.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
new file mode 100644
index 0000000..61e98f0
--- /dev/null
+++ b/layouts/partials/nav.html
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
From 9e2c5ada518dad570f5a363b348c46e6905bc616 Mon Sep 17 00:00:00 2001
From: Hanzei
Date: Fri, 15 Jun 2018 13:31:36 +0200
Subject: [PATCH 003/105] Fix scrolling on home page
---
layouts/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/index.html b/layouts/index.html
index dafb04c..770531d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -127,7 +127,7 @@
-
+
-
-
+
-
{{ .Title }}
-
-
{{ partial "nav.html" . }}
-
+
-
{{ if .Params.image }}

@@ -25,35 +20,14 @@
{{ .Content }}
-
-
-
-
+ {{ partial "top-icon-with-hr.html" . }}
{{ partial "footer.html" . }}
-
-
-
+
-
+
-
Tagged "{{ lower .Title }}"
-
-
{{ partial "nav.html" . }}
-
-
{{ .Content }}
-
-
+
-
-
-
+ {{ partial "top-icon-with-hr.html" . }}
{{ partial "footer.html" . }}
-
-
-
-
+
+
+
+
+
{{ .Title }}
+
+
-
-
-
-
-
{{ .Title }}
-
-
-
-
-
-
- {{ partial "nav.html" . }}
-
-
-
- {{ .Content }}
-
-
-
-
-
-
-
-
- {{ partial "footer.html" . }}
+
+
+ {{ partial "nav.html" . }}
+
+ {{ .Content }}
+
+
-
-
-
-
+ {{ partial "top-icon-with-hr.html" . }}
+ {{ partial "footer.html" . }}
+
+
+
+
-
-
-
-
-
{{ .Site.Params.blogHead | default "Blog" }}
-
-
+
+
+
+
+
{{ .Title }}
+
+
-
- {{ partial "nav.html" . }}
-
-
-
- {{ if .Site.Params.showLatest }}
-
Latest Post
- {{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }}
-
{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}
-
-
- {{ .Summary }}
- {{ if .Truncated }}
-
...Read More
- {{ end }}
-
+ {{ partial "nav.html" . }}
+
+
+ {{ .Content }}
- {{ end }}
- {{ end }}
-
-
All Posts
-
- {{ range .Data.Pages.ByPublishDate }}
- {{ if eq .Section "blog" }}
- {{ partial "li.html" . }}
+
+
+ {{ if .Site.Params.showLatest }}
+
Latest Post
+ {{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }}
+
{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}
+
+
+ {{ .Summary }}
+ {{ if .Truncated }}
+
...Read More
+ {{ end }}
+
+
+ {{ end }}
{{ end }}
- {{ end }}
-
-
-
-
-
-
-
-
+
All Posts
+
+ {{ range .Data.Pages.ByPublishDate }}
+ {{ if eq .Section "blog" }}
+ {{ partial "li.html" . }}
+ {{ end }}
+ {{ end }}
+
+
+
+ {{ partial "top-icon-with-hr.html" . }}
+ {{ partial "footer.html" . }}
+
+
-
-{{ partial "footer.html" . }}
-
-
-
-
-
-
+
-
-
-
-
-
{{ .Site.Params.blogHead | default "Blog" }}
-
-
+
+
+
+
+
{{ .Site.Params.blogHead | default "Blog" }}
+
+
-
- {{ partial "nav.html" . }}
-
-
-
-
- {{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} |
- {{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
-
-
- {{ if .Site.Params.shareButtons }}
-
- Share this:
- {{ if .Site.Params.shareTwitter }}
-
- {{ end }}
- {{ if .Site.Params.shareFacebook }}
-
-
- Facebook
-
- {{ end }}
- {{ if .Site.Params.sharePinterest }}
-
-
- Pinterest
-
- {{ end }}
- {{ if .Site.Params.shareGooglePlus }}
-
-
- Google+
-
- {{ end }}
+ {{ partial "nav.html" . }}
+
+
+
+
+ {{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} |
+ {{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }}
- {{ end }}
-
-
-
-
- {{ .Content }}
-
-
-
+
+
+
+ {{ .Content }}
+
+
+
+ {{ partial "top-icon-with-hr.html" . }}
+ {{ partial "footer.html" . }}
-
-
-
-{{ partial "footer.html" . }}
-
-
-
-
-
-
+