From c56f03dbcadb01f8b93b8db92e3cad588b9ef57e Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Mon, 27 Dec 2021 22:29:54 +0100 Subject: [PATCH 01/12] Fix hardcoded color --- assets/scss/_main.scss | 6 +++--- assets/scss/_variables.scss | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/assets/scss/_main.scss b/assets/scss/_main.scss index 2761611..c232825 100644 --- a/assets/scss/_main.scss +++ b/assets/scss/_main.scss @@ -191,14 +191,14 @@ figure { em, i, strong { // Default - color: black; + color: $light-color-variant; @media (prefers-color-scheme: dark) { - color: white; + color: $dark-color-variant; } @media (prefers-color-scheme: light) { - color: black; + color: $light-color-variant; } [data-theme=dark] & { diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss index c1367cd..8bd9bc0 100644 --- a/assets/scss/_variables.scss +++ b/assets/scss/_variables.scss @@ -5,6 +5,7 @@ $light-background: #fff; $light-background-secondary: #eaeaea; $light-background-header: #fafafa; $light-color: #222; +$light-color-variant: black; $light-color-secondary: #999; $light-border-color: #dcdcdc; $light-table-color: #dcdcdc; @@ -14,6 +15,7 @@ $dark-background: #232425; $dark-background-secondary: #3b3d42; $dark-background-header: #1b1c1d; $dark-color: #a9a9b3; +$dark-color-variant: white; $dark-color-secondary: #b3b3bd; $dark-border-color: #4e4e57; $dark-table-color: #4e4e57; From 88ec85ed84ca93c4f946760961c716f9ed91a165 Mon Sep 17 00:00:00 2001 From: OllieJonas Date: Thu, 30 Dec 2021 09:44:35 +0000 Subject: [PATCH 02/12] Added jenkins icon --- docs/svgs.md | 1 + layouts/partials/svg.html | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/svgs.md b/docs/svgs.md index ad655f2..9a8485e 100644 --- a/docs/svgs.md +++ b/docs/svgs.md @@ -32,6 +32,7 @@ - [hackerrank](https://simpleicons.org/?q=hackerrank) - [hackthebox](https://simpleicons.org/?q=hackthebox) - [instagram](https://feathericons.com/?query=instagram) +- [jenkins](https://feathericons.com/?query=jenkins) - [kaggle](https://simpleicons.org/?q=kaggle) - [keybase](https://simpleicons.org/?q=keybase) - [lastfm](https://simpleicons.org/?q=lastfm) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index bf40997..3dd05a3 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -8,7 +8,7 @@ {{- else if (eq .name "bitbucket") -}} -{{- else if (eq .name "case") -}} +{{- else if (eq .name "case") -}} {{- else if (eq .name "codesandbox") -}} @@ -34,7 +34,7 @@ {{- else if (eq .name "facebook-messenger") -}} -{{- else if (eq .name "fitbit") -}} +{{- else if (eq .name "fitbit") -}} {{- else if (eq .name "git") -}} @@ -64,6 +64,8 @@ {{- else if (eq .name "instagram") -}} +{{- else if (eq .name "jenkins") -}} + {{- else if (eq .name "kaggle") -}} {{- else if (eq .name "keybase") -}} @@ -74,7 +76,7 @@ {{- else if (eq .name "letterboxd") -}} -{{- else if (eq .name "librepay") -}} +{{- else if (eq .name "librepay") -}} {{- else if (eq .name "lichess") -}} @@ -128,7 +130,7 @@ {{- else if (eq .name "telegram") -}} -{{- else if (eq .name "threema") -}} +{{- else if (eq .name "threema") -}} {{- else if (eq .name "tryhackme") -}} @@ -153,4 +155,3 @@ {{- else if (eq .name "youtube") -}} {{- end -}} - From 660f1fcaaf8e1bb9ad9ce9c3e4a308ca1077d94f Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Fri, 31 Dec 2021 04:25:13 +0100 Subject: [PATCH 03/12] Make it easier to override subtitle --- layouts/index.html | 5 ++--- layouts/partials/subtitle.html | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 layouts/partials/subtitle.html diff --git a/layouts/index.html b/layouts/index.html index 56dc443..d0c02a4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -10,9 +10,8 @@ {{ end }}

{{ .Site.Title }}

- {{- with .Site.Params.homeSubtitle }} -

{{.}}

- {{- end }} + + {{ partial "subtitle.html" . }} {{- with .Site.Params.social }}
diff --git a/layouts/partials/subtitle.html b/layouts/partials/subtitle.html new file mode 100644 index 0000000..f7f3e24 --- /dev/null +++ b/layouts/partials/subtitle.html @@ -0,0 +1,3 @@ +{{- with .Site.Params.homeSubtitle }} +

{{.}}

+{{- end }} \ No newline at end of file From 16a63581d214bf4df16f2587cba877db0bfc003c Mon Sep 17 00:00:00 2001 From: undergroundwires Date: Sat, 1 Jan 2022 17:47:29 +0100 Subject: [PATCH 04/12] Fix unintentional render of empty box --- layouts/partials/pagination-single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/pagination-single.html b/layouts/partials/pagination-single.html index 6c06e88..cee73b2 100644 --- a/layouts/partials/pagination-single.html +++ b/layouts/partials/pagination-single.html @@ -1,9 +1,11 @@ {{ if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }}