diff --git a/.gitignore b/.gitignore index d944721..5c0062f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ +.* +!.editorconfig +!.gitattributes +!.gitignore + _site/ Gemfile.lock diff --git a/_config.yml b/_config.yml index 3311455..768b101 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ -# Custom settings +theme: minima timezone: Europe/Helsinki encoding: utf-8 plugins: @@ -8,4 +8,4 @@ plugins: - jekyll-sitemap sitemap: file: "/sitemap.xml" -include: [robots.txt] +include: [favicon.ico, robots.txt] diff --git a/assets/main.scss b/assets/main.scss new file mode 100644 index 0000000..819e19e --- /dev/null +++ b/assets/main.scss @@ -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; + } +} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/index.md b/index.md index dc3056a..bc846a4 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,7 @@ --- permalink: /index.html redirect_from: /404.html +layout: home --- Tältä sivustolta löydät liittymislinkit [Piraattinuorten](https://pinu.fi/)