1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-30 12:26:26 -05:00

Added just-the-docs-default.scss which includes the theme set in _config.yml

This commit is contained in:
Silvio Giebl 2019-08-17 15:02:53 +02:00
parent d549d37e6f
commit 95498ccaf8
4 changed files with 9 additions and 9 deletions

View File

@ -12,12 +12,7 @@
<link rel="shortcut icon" href="{{ 'favicon.ico' | absolute_url }}" type="image/x-icon">
{% if site.color_scheme == nil or site.color_scheme == "nil" %}
{% assign color_scheme = 'light' %}
{% else %}
{% assign color_scheme = site.color_scheme %}
{% endif %}
<link rel="stylesheet" href="{{ color_scheme | prepend: '/assets/css/just-the-docs-' | append: '.css' | absolute_url }}">
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | absolute_url }}">
{% if site.ga_tracking != nil %}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.ga_tracking }}"></script>

View File

@ -1,5 +1,3 @@
// override this file to change the dark theme
$body-background-color: $grey-dk-300;
$sidebar-color: $grey-dk-300;
$border-color: $grey-dk-200;

View File

@ -1 +0,0 @@
// override this file to change the light (default) theme

View File

@ -0,0 +1,8 @@
---
---
{% if site.color_scheme and site.color_scheme != "nil" %}
{% assign color_scheme = site.color_scheme %}
{% else %}
{% assign color_scheme = "light" %}
{% endif %}
{% include css/just-the-docs.scss.liquid color_scheme=color_scheme %}