actually utilize features Jekyll provides

This commit is contained in:
Aminda Suomalainen ⚧ 2024-05-27 08:22:50 +03:00
parent 4cd424af14
commit 2a29052e9a
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
5 changed files with 42 additions and 2 deletions

5
.gitignore vendored
View File

@ -1,2 +1,7 @@
.*
!.editorconfig
!.gitattributes
!.gitignore
_site/ _site/
Gemfile.lock Gemfile.lock

View File

@ -1,4 +1,4 @@
# Custom settings theme: minima
timezone: Europe/Helsinki timezone: Europe/Helsinki
encoding: utf-8 encoding: utf-8
plugins: plugins:
@ -8,4 +8,4 @@ plugins:
- jekyll-sitemap - jekyll-sitemap
sitemap: sitemap:
file: "/sitemap.xml" file: "/sitemap.xml"
include: [robots.txt] include: [favicon.ico, robots.txt]

34
assets/main.scss Normal file
View File

@ -0,0 +1,34 @@
---
#
---
@import "{{ site.theme }}";
// Declares support for light and dark themes as high as possible
:root {
color-scheme: light dark !important;
}
// Reverts all colors to browser default so light/dark modes are supported
// without extra work and we get free accessibility
* {
color: revert !important;
text-color: revert !important;
background-color: revert !important;
}
// Fix transparent mobile navbar
@media (prefers-color-scheme: light) {
.site-nav {
color-scheme: only light !important;
color: #000000 !important;
background-color: #ffffff !important;
}
}
@media (prefers-color-scheme: dark) {
.site-nav {
color-scheme: only dark !important;
color: #ffffff !important;
background-color: #1c1b22 !important;
}
}

0
favicon.ico Normal file
View File

View File

@ -1,6 +1,7 @@
--- ---
permalink: /index.html permalink: /index.html
redirect_from: /404.html redirect_from: /404.html
layout: home
--- ---
Tältä sivustolta löydät liittymislinkit [Piraattinuorten](https://pinu.fi/) Tältä sivustolta löydät liittymislinkit [Piraattinuorten](https://pinu.fi/)