summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2024-06-29 21:29:58 +0200
committerFrancesco <tomaselli.fr@gmail.com>2024-06-29 21:29:58 +0200
commitcd7ee44e5e1b46fe3fcbbb7e414ce4c4a9a3b4fd (patch)
tree7eecd129e3e35ec6adaa5f6170c73637eb369d80
parent4ac3b47efc319befa46ef7065eaeb605f76680d6 (diff)
Color pallettes and hide header mode
-rw-r--r--assets/css/colors/eink.css15
-rw-r--r--assets/css/colors/gruvebox.css15
-rw-r--r--layouts/partials/header.html5
3 files changed, 35 insertions, 0 deletions
diff --git a/assets/css/colors/eink.css b/assets/css/colors/eink.css
new file mode 100644
index 0000000..87a9507
--- /dev/null
+++ b/assets/css/colors/eink.css
@@ -0,0 +1,15 @@
+:root {
+ --content-primary: rgb(0, 0, 0);
+ --content-secondary: rgb(0, 0, 0);
+ --background: rgb(255, 255, 255);
+ --code-background: rgb(255, 255, 255);
+ --code-border: rgb(0, 0, 0);
+}
+
+.dark {
+ --content-primary: rgb(255, 255, 255);
+ --content-secondary: rgb(255, 255, 255);
+ --background: rgb(0, 0, 0);
+ --code-background: rgb(0, 0, 0);
+ --code-border: rgb(255, 255, 255);
+} \ No newline at end of file
diff --git a/assets/css/colors/gruvebox.css b/assets/css/colors/gruvebox.css
new file mode 100644
index 0000000..c189e74
--- /dev/null
+++ b/assets/css/colors/gruvebox.css
@@ -0,0 +1,15 @@
+:root {
+ --content-primary: rgb(60, 56, 54);
+ --content-secondary: rgb(148, 133, 112);
+ --background: rgb(251, 241, 199);
+ --code-background: rgb(241, 231, 189);
+ --code-border: rgb(178, 163, 142);
+}
+
+.dark {
+ --content-primary: rgb(235, 219, 178);
+ --content-secondary: rgb(132, 122, 114);
+ --background: rgb(40, 40, 40);
+ --code-background: rgb(50, 50, 50);
+ --code-border: rgb(112, 102, 94);
+} \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 21f73a5..8933883 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,6 +1,9 @@
{{/* Header */}}
<div class="header">
+
+ {{ if or (not (.Param "hideHeader")) .IsHome }}
+
<h1 class="header-title">{{ site.Title }}</h1>
<div class="flex">
@@ -17,4 +20,6 @@
{{ end }}
</div>
+ {{ end }}
+
</div> \ No newline at end of file