From f677fbaf4dc9dea0ffb555fc052fdaa506a5ddde Mon Sep 17 00:00:00 2001 From: Mehdi Hasan Date: Tue, 29 Dec 2020 15:02:57 +0100 Subject: [PATCH 01/72] show related posts if present --- layouts/partials/related.html | 10 ++++++++++ layouts/posts/single.html | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 layouts/partials/related.html diff --git a/layouts/partials/related.html b/layouts/partials/related.html new file mode 100644 index 00000000..f0258006 --- /dev/null +++ b/layouts/partials/related.html @@ -0,0 +1,10 @@ +{{ $related := .Site.RegularPages.Related . | first 5 }} +{{ with $related }} +
+

See Also

+ +{{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index d2b60425..48693698 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -65,6 +65,8 @@

+ {{ partial "related.html" . }} + {{ partial "comments.html" . }} {{ partial "page_nav_mobile.html" . }} From a832f69fcfd1958fd6e5cd1cea9432b66d78ade2 Mon Sep 17 00:00:00 2001 From: Jason Rogena Date: Thu, 8 Jul 2021 12:18:31 +0300 Subject: [PATCH 02/72] Allow default .Site.Params.showAllPostsArchive Allow, if .Site.Params.showAllPostsArchive is not set, the site to function as if the variable has been set to false. Fixes monkeyWzr/hugo-theme-cactus#83 Signed-off-by: Jason Rogena --- layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e8c3e313..dca19f21 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -23,8 +23,8 @@

{{ $pageYear }}

{{ end }} - {{ if eq .Site.Params.showAllPostsArchive false }} + {{ if or (not .Site.Params.showAllPostsArchive) (eq .Site.Params.showAllPostsArchive false) }} {{ partial "pagination.html" . }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }} From b7eed4422184225af0c88748910203580c6f6546 Mon Sep 17 00:00:00 2001 From: Niels Gouman Date: Thu, 29 Jul 2021 19:49:23 +0200 Subject: [PATCH 03/72] No need for robots meta as a default --- layouts/partials/head.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 82ea9c32..53c9d5f3 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,8 +9,6 @@ {{ with .Site.Params.description }}{{ end }} - - {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{ .Scratch.Set "colortheme" "white"}} From 090766d6238aadf784cd4ec97baf21b1a0e3ae74 Mon Sep 17 00:00:00 2001 From: Niels Gouman Date: Thu, 29 Jul 2021 20:03:09 +0200 Subject: [PATCH 04/72] Create setting to noindex the archive pages --- exampleSite/config.toml | 1 + layouts/partials/head.html | 3 +++ 2 files changed, 4 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 97b3c21e..2032846e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -52,6 +52,7 @@ weight = 4 rss = true # generate rss feed. default value is false googleAnalyticsAsync = true # use asynchronous tracking. Synchronous tracking by default showAllPostsArchive = false # default + noindexArchive = false # default, set to true if you don't want search engines to index archive pages (should improve SEO) # Home page settings description = "Hugo is a general-purpose website framework. Technically speaking, Hugo is a static site generator. Unlike systems that dynamically build a page with each visitor request, Hugo builds pages when you create or update your content. Since websites are viewed far more often than they are edited, Hugo is designed to provide an optimal viewing experience for your websiteโ€™s end users and an ideal writing experience for website authors." diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 53c9d5f3..4e0352d8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,6 +9,9 @@ {{ with .Site.Params.description }}{{ end }} + {{ if and (or (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "term")) (.Site.Params.noindexArchive)}} + + {{ end }} {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{ .Scratch.Set "colortheme" "white"}} From 584768ad6a35db31a99aaceb1850e7d7c317ee5f Mon Sep 17 00:00:00 2001 From: Shanhe Yi <838961+yishanhe@users.noreply.github.com> Date: Sat, 4 Sep 2021 23:54:12 -0700 Subject: [PATCH 05/72] add customizable copyright - years can be configured - fix #56 copyright can be enabled/disabled - moved all copyright config under .Site.Params.Copyright --- README.md | 12 +++++++----- exampleSite/config.toml | 10 +++++++++- layouts/partials/footer.html | 12 +++++++++++- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d7764bf6..a504e156 100644 --- a/README.md +++ b/README.md @@ -178,12 +178,14 @@ The `name` key expects the name of a [Font Awesome icon](https://fontawesome.com ### Copyright -Assign your copy right to `.Site.Copyright`. Cactus will append current year to the head. - -TODO: Customizable copyright year +Assign your copy right to `.Site.Params.Copyright.Name`. ```toml -copyright = "Zeran Wu" # cactus theme will use site title if copyright is not set +[params.copyright] + enabled = true # default + name = "Zeran Wu" # cactus will use title if copyright is not set + startYear = 2020 # if not provided, will use current year. + endYear = 2021 # if not provided, will use current year. ``` ### Comments @@ -290,7 +292,7 @@ Pagination on posts archive can be disabled to show all posts in chronological o - [x] Analytics - [ ] Local Search - [ ] toc template -- [ ] Customizable copyright year +- [x] Customizable copyright year - [ ] gallery - [ ] expose [mathjax configuration](https://docs.mathjax.org/en/latest/web/configuration.html#web-configuration) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index a57fbe91..71d40214 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -2,7 +2,7 @@ baseURL = "https://example.com" languageCode = "en-us" title = "Cactus theme example" theme = "cactus" -copyright = "You" # cactus will use title if copyright is not set +copyright = "You" # deprecated, please use params.copyright disqusShortname = "example" # Used when comments is enabled. Cactus will use site title if not set # googleAnalytics = "UA-1234-5" @@ -81,6 +81,14 @@ weight = 4 #serverUrl = "" # Defaults to https://matrix.cactus.chat:8448 (Cactus Chat public server) #serverName = "" # Defaults to cactus.chat + # Customize the copyright years + # Note: if startYear/endYear not provided, will use current year. + [params.copyright] + enabled = true # default + name = "You" # cactus will use title if copyright is not set + startYear = 2021 + endYear = 2021 + # the value of name should be an valid font awesome icon name (brands type) # https://fontawesome.com/icons?d=gallery&s=brands [[params.social]] diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 31eb4aa8..c5a4c952 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,17 @@ + \ No newline at end of file From 90d812abb8ff8255f5e3abbe9a34860d0f3189ec Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 10:31:53 +0800 Subject: [PATCH 18/72] Add param to control related page displayed or not --- layouts/partials/related.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/related.html b/layouts/partials/related.html index 4fbfabe2..3da29d6e 100644 --- a/layouts/partials/related.html +++ b/layouts/partials/related.html @@ -1,3 +1,4 @@ +{{ if .Site.Params.Related }} {{ $related := .Site.RegularPages.Related . | first 5 }} {{ with $related }}
@@ -8,3 +9,4 @@

See Also

{{ end }} {{ end }} +{{ end }} \ No newline at end of file From 387c47f5544017c3afa62ac74e5067499bca1e2b Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 11:42:49 +0800 Subject: [PATCH 19/72] fix flex layout, now can use body height 100% --- assets/scss/partial/disclaimer.scss | 6 +++--- assets/scss/partial/footer.scss | 4 ++-- assets/scss/style.scss | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/scss/partial/disclaimer.scss b/assets/scss/partial/disclaimer.scss index 49f9ee30..88e69bf4 100644 --- a/assets/scss/partial/disclaimer.scss +++ b/assets/scss/partial/disclaimer.scss @@ -1,10 +1,9 @@ #disclaimer{ position: absolute; bottom: 1px; - margin-bottom: -2rem; display: flex !important; - padding-bottom: 4%; - + align-self: flex-end; + .center-text{ text-align: center; } @@ -17,6 +16,7 @@ //font-weight: bold; font-size: 10px; background-image: none; + color: #666; } } \ No newline at end of file diff --git a/assets/scss/partial/footer.scss b/assets/scss/partial/footer.scss index da529813..5bf795ad 100644 --- a/assets/scss/partial/footer.scss +++ b/assets/scss/partial/footer.scss @@ -1,9 +1,9 @@ #footer { position: absolute; bottom: 0; - margin-bottom: 10px; + margin-bottom: 30px; width: 100%; - color: $color-meta; + color: #666; vertical-align: top; text-align: center; font-size: 11px; diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 6d3a9002..7368374a 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -22,7 +22,7 @@ html { } body { margin: 0; - // height: 100%; + height: 100%; background-color: $color-background; color: $color-text; font-display: swap; From da25a3175075ea18c744f3b95a7ddb8e7aa84911 Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 12:40:10 +0800 Subject: [PATCH 20/72] remove disclaimer --- assets/scss/partial/footer.scss | 4 ++-- layouts/partials/footer.html | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/assets/scss/partial/footer.scss b/assets/scss/partial/footer.scss index 5bf795ad..da529813 100644 --- a/assets/scss/partial/footer.scss +++ b/assets/scss/partial/footer.scss @@ -1,9 +1,9 @@ #footer { position: absolute; bottom: 0; - margin-bottom: 30px; + margin-bottom: 10px; width: 100%; - color: #666; + color: $color-meta; vertical-align: top; text-align: center; font-size: 11px; diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index aa429f94..520a9649 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -22,6 +22,3 @@ - \ No newline at end of file From 8f40cee4fd8a8cf2601e65b1128e406499500a85 Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 13:37:11 +0800 Subject: [PATCH 21/72] cool logo --- static/images/logo.png | Bin 9861 -> 6571 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/static/images/logo.png b/static/images/logo.png index f100a71ca3f3c70f35b2da42549b7eda7ff56482..cdc3bc92410bfe08f3d3ee3d413f434f32195dd4 100644 GIT binary patch literal 6571 zcmV;c8C2$pP)8&z=)re1b#7$z)0W-Ru(}L<=B=jQY19u3>VMZJ-t*{ zch`2S?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zzsNV~e8L2R_`iVaRFcK@!+rhhN^J+A+U zg>OW2ZCkl%LW}&_mH*>HTE`rLS~G5vIt=!o!<_x*+j4uww&VP;kK!L0>%T7l$0a^o zZMwW>mrZUlp>5yL4i<^(?OkVXF`C0Y-fQE&zvZU=?d5MLu$fu$E9YoUpD&wrXV`;0 ze}`4y`m=rO=De3>n!O?_8g7NP00000NkvXXu0mjft^=lP From b749ca4b451574191de6ded23f9d4576ef2a1d2f Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 14:17:46 +0800 Subject: [PATCH 22/72] added logo on single post --- assets/scss/partial/article.scss | 14 ++++++++++++++ layouts/posts/single.html | 1 + 2 files changed, 15 insertions(+) diff --git a/assets/scss/partial/article.scss b/assets/scss/partial/article.scss index 82a005f9..493909f7 100644 --- a/assets/scss/partial/article.scss +++ b/assets/scss/partial/article.scss @@ -23,6 +23,20 @@ article { .postdate { display: inline; } + #logo { + display: inline-block; + float: left; + margin-right: 20px; + width: $logo-width; + height: $logo-height; + border-radius: 5px; + background-size: $logo-width $logo-height; + background-repeat: no-repeat; + @if $logo-grayout { + //filter: grayscale(100%); + //-webkit-filter: grayscale(100%); + } + } } .content { h2 { diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 9df1e6a0..d09d540c 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -8,6 +8,7 @@
+

{{ .Title }}

From f19e037dc286a8f7e3d71fa965148afe778f2fab Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 15:01:13 +0800 Subject: [PATCH 23/72] change table display from "block" to "table" --- assets/scss/_extend.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/scss/_extend.scss b/assets/scss/_extend.scss index 5eb2d529..7afa8ba1 100644 --- a/assets/scss/_extend.scss +++ b/assets/scss/_extend.scss @@ -104,7 +104,8 @@ table { text-align: left; font-size: $font-size - 2px; overflow: auto; - display: block; + //display: block; + display: table; } th { padding: 8px; From 583293ad75657889cbe43d137a7dada253cbbc93 Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 4 Nov 2021 17:41:21 +0800 Subject: [PATCH 24/72] =?UTF-8?q?Made=20with=20=E2=9D=A4=EF=B8=8F=20and=20?= =?UTF-8?q?Hugo.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref: https://github.com/baradhiren/hugo-theme/commit/605938271a465209bc55b684f627bae198ab8438 --- assets/scss/partial/footer.scss | 5 +++++ layouts/partials/footer.html | 3 +++ 2 files changed, 8 insertions(+) diff --git a/assets/scss/partial/footer.scss b/assets/scss/partial/footer.scss index da529813..f2fd4d9e 100644 --- a/assets/scss/partial/footer.scss +++ b/assets/scss/partial/footer.scss @@ -62,5 +62,10 @@ .footer-right { align-self: flex-end; } + .credits { + position: absolute; + left: 0px; + bottom: 20px; + } } }; \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 520a9649..f049d3f1 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -11,6 +11,9 @@ {{ if (eq $startYear $endYear) }} {{ $startYear }} {{ else }} {{ $startYear }}-{{ $endYear }} {{ end }} {{ if .Site.Params.Copyright.Name }} {{ print .Site.Params.Copyright.Name | markdownify }} {{ else }} {{ print .Site.Title }} {{ end }} {{ end }} +
+ Made with ❤️ and Hugo. +
- diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 71db7834..32cd05d3 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -35,4 +35,4 @@ {{ end }} --> - \ No newline at end of file + diff --git a/layouts/partials/page_nav.html b/layouts/partials/page_nav.html index 56c5ceac..a4a11210 100644 --- a/layouts/partials/page_nav.html +++ b/layouts/partials/page_nav.html @@ -5,7 +5,7 @@
    - {{ range .Site.Menus.main }} + {{ range .Site.Menus.main }}
  • {{ .Name }}
  • {{ end }}
diff --git a/layouts/partials/page_nav_mobile.html b/layouts/partials/page_nav_mobile.html index 3833932b..120017e4 100644 --- a/layouts/partials/page_nav_mobile.html +++ b/layouts/partials/page_nav_mobile.html @@ -3,7 +3,7 @@ -
- Made with ❤️ and Hugo. -
+
+ Best viewed with any modern web browsers with resolution of 1280x1024. + The postings on this site are my own and don't necessarily represent my employerโ€™s positions, strategies or opinions.

+ Made with ❤️ and Hugo.

+
From 00163e5f8abbcd4cd5ff719b3560bfc486ec8b7e Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 25 Nov 2021 09:48:35 +0800 Subject: [PATCH 36/72] =?UTF-8?q?Fix=20=F0=9F=90=9B=20-=20=20IsSet=20unsup?= =?UTF-8?q?port=20type=20"ptr"=20(*hugolib.SiteInfo)=20and=20hide=20author?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inspiration : https://github.com/monkeyWzr/hugo-theme-cactus/pull/27/files --- layouts/posts/single.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index bddc0a4d..c837b84c 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -13,18 +13,19 @@

{{ .Title }}

- {{ if (or (isset .Site "author") (isset .Site "title"))}} + {{ if (or (.Site.Author) (.Site.Title))}} {{ end }}
- Best viewed with any modern web browsers with resolution of 1280x1024. + Best viewed with any modern GUI web browsers with resolution of 1280x1024. The postings on this site are my own and don't necessarily represent my employerโ€™s positions, strategies or opinions.

Made with ❤️ and Hugo.

From 12ea579a3830ae5f0cfe879494ed87b808643ff1 Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Sat, 4 Dec 2021 23:02:29 +0800 Subject: [PATCH 40/72] =?UTF-8?q?=E2=9C=82=EF=B8=8F=20change=20fontawesome?= =?UTF-8?q?=20to=20emoji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/posts/single.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index c837b84c..48713e9e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -25,7 +25,7 @@

{{ end }}

{{ partial "related.html" . }} From d621d0fb768140e711bbf76bd0d1669ce344138f Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 10 Mar 2022 21:51:00 +0800 Subject: [PATCH 55/72] =?UTF-8?q?=F0=9F=92=A5=20Introduce=20$color-border-?= =?UTF-8?q?code=20and=20$color-text-code:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scss/_variables.scss | 1 - assets/scss/colors/dark.scss | 4 +++- assets/scss/colors/white.scss | 4 +++- assets/scss/style.scss | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss index 32334881..4b55e583 100644 --- a/assets/scss/_variables.scss +++ b/assets/scss/_variables.scss @@ -11,4 +11,3 @@ $logo-height: 50px; $logo-grayout: true; // Colors $colors: "dark"; // white dark light classic -$color-border-code: #282a36; diff --git a/assets/scss/colors/dark.scss b/assets/scss/colors/dark.scss index c7fc243f..f4252e11 100644 --- a/assets/scss/colors/dark.scss +++ b/assets/scss/colors/dark.scss @@ -10,4 +10,6 @@ $color-text: #c9cacc; $color-accent-3: #cccccc; $color-accent-2: #eeeeee; $color-accent-1: #2bbc8a; -$color-quote: #ccffb6; \ No newline at end of file +$color-quote: #ccffb6; +$color-border-code: #282a36; +$color-text-code: white; \ No newline at end of file diff --git a/assets/scss/colors/white.scss b/assets/scss/colors/white.scss index a4d15471..d3ee68cc 100644 --- a/assets/scss/colors/white.scss +++ b/assets/scss/colors/white.scss @@ -11,4 +11,6 @@ $color-text: #383838; $color-accent-3: #8c8c8c; $color-accent-2: #383838; $color-accent-1: #2bbc8a; -$color-quote: #2bbc8a; \ No newline at end of file +$color-quote: #2bbc8a; +$color-border-code: #282a36; +$color-text-code: white; \ No newline at end of file diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 0fe74f10..e3825fd8 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -201,6 +201,7 @@ code { -webkit-border-radius: 2px; background-color: $color-border-code; font-size: 87.5%; + color: $color-text-code ; } .highlight { From d868820d4b41c6b54f2e1fb9dfe43cf26d2fbb0a Mon Sep 17 00:00:00 2001 From: Robbi Nespu Date: Thu, 10 Mar 2022 23:03:09 +0800 Subject: [PATCH 56/72] =?UTF-8?q?=F0=9F=92=84=20article-tag=20look=20much?= =?UTF-8?q?=20cooler=20like=20this=20way?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scss/partial/article.scss | 12 ++++++++++-- layouts/posts/single.html | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/scss/partial/article.scss b/assets/scss/partial/article.scss index e540fe56..4aa5789c 100644 --- a/assets/scss/partial/article.scss +++ b/assets/scss/partial/article.scss @@ -154,14 +154,22 @@ article { line-height: 1.25; } .article-tag { - margin-top: 1%; + display: flex; + // flex-direction: row; + margin-top: 2%; margin-bottom: 5%; + margin-left: 1%; font-size: smaller; + &:before { + content: "๐Ÿท๏ธ"; + position: absolute; + left: -1.1rem; + } } .article-tag { .tag-link { &:before { - content: "#"; + // content: "#"; @include underline(10px, $color-link); } } diff --git a/layouts/posts/single.html b/layouts/posts/single.html index aba573ff..790133f6 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -67,7 +67,7 @@

{{ .Content}} {{ if gt .Params.tags 0 }} -