aboutsummaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-02-05 15:40:38 +0100
committerRasmus Dahlberg <rasmus@mullvad.net>2022-02-05 15:40:41 +0100
commit4498b93680ca61ce4f7df4a31368c67e78052cc4 (patch)
tree0097c7d869c4f2ba8a379152aa682842df295360 /themes
parentfeb15332dc4c18a78767388168df80711e6fda28 (diff)
change theme and minor edits
Diffstat (limited to 'themes')
m---------themes/gruvhugo0
-rw-r--r--themes/gruvhugo.patch125
m---------themes/researcher0
3 files changed, 0 insertions, 125 deletions
diff --git a/themes/gruvhugo b/themes/gruvhugo
deleted file mode 160000
-Subproject 509e36e8bfd7c5901abc215d16ceb1031f22bbc
diff --git a/themes/gruvhugo.patch b/themes/gruvhugo.patch
deleted file mode 100644
index 1aecf4e..0000000
--- a/themes/gruvhugo.patch
+++ /dev/null
@@ -1,125 +0,0 @@
-From a492b06748ccaecdef081383b58663b2227826a1 Mon Sep 17 00:00:00 2001
-From: Rasmus Dahlberg <rasmus@mullvad.net>
-Date: Sat, 18 Dec 2021 15:16:29 +0100
-Subject: [PATCH 1/3] removed reading time
-
----
- layouts/_default/list.html | 2 +-
- layouts/_default/single.html | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/layouts/_default/list.html b/layouts/_default/list.html
-index a48fd24..edcdf26 100644
---- a/layouts/_default/list.html
-+++ b/layouts/_default/list.html
-@@ -20,7 +20,7 @@
- {{ if .Params.Author }}
- by <a class="link" href="{{ .Params.AuthorUrl }}">{{ .Params.Author }}</a></h3>
- {{ end }}
-- <h4>{{ .PublishDate.Format "January 2, 2006" }} | Reading Time: {{.ReadingTime}} min </h4>
-+ <h4>{{ .PublishDate.Format "January 2, 2006" }}</h4>
- <span class="tags">
- {{range .Params.Tags }}
- <h5><a class="tag" href='{{ "tags/" | absURL }}{{.}}'>{{.}}</a></h5>
-diff --git a/layouts/_default/single.html b/layouts/_default/single.html
-index c850e85..d99b1c6 100644
---- a/layouts/_default/single.html
-+++ b/layouts/_default/single.html
-@@ -9,7 +9,7 @@
- <p>By <a href="{{ .Params.AuthorUrl }}">{{ .Params.Author }}</a></p>
- {{ end }}
- <p class="post-dets">Published on: {{ .PublishDate.Format "January 2, 2006"}}
-- | Reading Time: {{.ReadingTime}} min | Last Modified : {{ .Page.Lastmod.Format "January 2, 2006" }}
-+ | Last Modified : {{ .Page.Lastmod.Format "January 2, 2006" }}
- <br>
- </p>
- <span class="tags">
---
-2.20.1
-
-
-From 2348d5b7ef451215ecf7b46a3fa78161668feb6b Mon Sep 17 00:00:00 2001
-From: Rasmus Dahlberg <rasmus@mullvad.net>
-Date: Sat, 18 Dec 2021 15:53:06 +0100
-Subject: [PATCH 2/3] only print date
-
----
- layouts/_default/single.html | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
-
-diff --git a/layouts/_default/single.html b/layouts/_default/single.html
-index d99b1c6..5da97d6 100644
---- a/layouts/_default/single.html
-+++ b/layouts/_default/single.html
-@@ -8,9 +8,7 @@
- {{ if .Params.Author }}
- <p>By <a href="{{ .Params.AuthorUrl }}">{{ .Params.Author }}</a></p>
- {{ end }}
--<p class="post-dets">Published on: {{ .PublishDate.Format "January 2, 2006"}}
-- | Last Modified : {{ .Page.Lastmod.Format "January 2, 2006" }}
-- <br>
-+<p class="post-dets"> {{ .PublishDate.Format "January 2, 2006"}} <br>
- </p>
- <span class="tags">
- {{range .Params.Tags }}
---
-2.20.1
-
-
-From 509e36e8bfd7c5901abc215d16ceb1031f22bbcc Mon Sep 17 00:00:00 2001
-From: Rasmus Dahlberg <rasmus@mullvad.net>
-Date: Sat, 18 Dec 2021 16:54:22 +0100
-Subject: [PATCH 3/3] always use dark mode
-
----
- layouts/partials/header.html | 27 +--------------------------
- 1 file changed, 1 insertion(+), 26 deletions(-)
-
-diff --git a/layouts/partials/header.html b/layouts/partials/header.html
-index 2b5f53f..7b71199 100644
---- a/layouts/partials/header.html
-+++ b/layouts/partials/header.html
-@@ -3,15 +3,6 @@
- <h2><a href="{{.Site.BaseURL}}"
- style="text-decoration: none; color: inherit;">{{ .Site.Params.main.headerTitle }}</a></h2>
- </div>
-- <div class="color-scheme">
-- <input type="checkbox" class="checkbox" id="chk" />
-- <label class="label" for="chk">
-- <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="moon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"></path></svg>
-- <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="sun" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 160c-52.9 0-96 43.1-96
-- 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"></path></svg>
-- <div class="ball"></div>
-- </label>
-- </div>
- </div>
- <script>
- const themeSetter = (theme) => {
-@@ -19,23 +10,7 @@
- localStorage.setItem('theme', theme)
- blockSwitcher()
- }
--
-- const blockSwitcher = () => [...document.getElementsByTagName("BLOCKQUOTE")]
-- .forEach(b => b.classList.toggle('dark'))
--
-- const styleSwapper = () => {
-- document.body.classList.add('back-transition')
-- if (localStorage.getItem('theme') === 'dark') themeSetter('light')
-- else if (localStorage.getItem('theme') === 'light') themeSetter('dark')
-- }
--
-- if (localStorage.getItem('theme') === 'dark'){
-- themeSetter('dark')
-- document.addEventListener("DOMContentLoaded", blockSwitcher)
-- }
-- else localStorage.setItem('theme', 'light')
--
-- document.getElementById('chk').addEventListener('change',styleSwapper);
-+ themeSetter('dark')
-
- window.addEventListener("scroll", () => {
- let height = document.documentElement.scrollHeight
---
-2.20.1
-
diff --git a/themes/researcher b/themes/researcher
new file mode 160000
+Subproject dae5f676aa1e97f33f3d0c9bf4deb4957108caa