diff --git a/sass/_crt.scss b/sass/_crt.scss index 5c987b6..c708a23 100644 --- a/sass/_crt.scss +++ b/sass/_crt.scss @@ -8,9 +8,9 @@ animation: flicker 0.25s alternate infinite; margin: unset; box-shadow: unset; - background-color: unset; + background-color: unset !important; padding: 1rem 1rem; - color: var(--primary-color); + color: var(--primary-color) !important; text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px; @keyframes flicker { diff --git a/templates/partials/head.html b/templates/partials/head.html index 9ec0b54..31cea2c 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -7,28 +7,31 @@ {% include "partials/title.html" %} - - - {# Define array of CSS files to load. main.css is always loaded. #} + {% if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} + {% if config.markdown.highlight_themes_css | length > 0 %} + + + {% else %} + + {% endif %} + {% endif %} + {% set stylesheets = [ "style.css" ] %} - {# Load extra CSS files from config.toml #} {% if config.extra.stylesheets -%} {% set stylesheets = stylesheets | concat(with=config.extra.stylesheets) %} {% endif %} - {# Load extra CSS files from page metadata #} {% if page.extra.stylesheets %} {% set stylesheets = stylesheets | concat(with=page.extra.stylesheets) %} {% elif section.extra.stylesheets %} {% set stylesheets = stylesheets | concat(with=section.extra.stylesheets) %} {% endif %} - {# Load all stylesheets #} - {%- for stylesheet in stylesheets %} + {% for stylesheet in stylesheets %} - {%- endfor %} + {% endfor %}