config: remove custom_css #248

This commit is contained in:
Sören Weber 2022-05-23 07:43:29 +02:00
parent 66360af4a2
commit 1599f8b09a
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
3 changed files with 4 additions and 6 deletions

View file

@ -68,8 +68,6 @@ Note that some of these parameters are explained in details in other sections of
ordersectionsby = "weight" ordersectionsby = "weight"
# Change default color scheme with a variant one. Eg. can be "red", "blue", "green" or an array like [ "blue", "green" ]. # Change default color scheme with a variant one. Eg. can be "red", "blue", "green" or an array like [ "blue", "green" ].
themeVariant = "relearn-light" themeVariant = "relearn-light"
# Provide a list of custom css files to load relative from the `static/` folder in the site root.
custom_css = ["css/foo.css", "css/bar.css"]
# Change the title separator. Default to "::". # Change the title separator. Default to "::".
titleSeparator = "-" titleSeparator = "-"
# If set to true, the menu in the sidebar will be displayed in a collapsible tree view. # If set to true, the menu in the sidebar will be displayed in a collapsible tree view.

View file

@ -14,7 +14,10 @@ This document shows you what's new in the latest release. For a detailed list of
--- ---
## 3.5.0 ## 4.0.0
- **Breaking**: The `custom_css` config parameter was removed from the configuration. If used in an existing installation, it can be achieved by overriding the `custom-header.html` template in a much more generic manner.
- **New**: New colors `--PRIMARY-color` and `--SECONDARY-color` were added to provide easier modification of your custom style. These two colors are the default for other, more specific color variables. You don't need to change anything in your existing custom color stylesheets as those variables get reasonable default values. - **New**: New colors `--PRIMARY-color` and `--SECONDARY-color` were added to provide easier modification of your custom style. These two colors are the default for other, more specific color variables. You don't need to change anything in your existing custom color stylesheets as those variables get reasonable default values.

View file

@ -11,9 +11,6 @@
{{- end }} {{- end }}
<link href="{{"css/variant.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"> <link href="{{"css/variant.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
<link href="{{"css/print.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"{{ if ne (.Scratch.Get "relearnOutputFormat") "PRINT" }} media="print"{{ end }}> <link href="{{"css/print.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet"{{ if ne (.Scratch.Get "relearnOutputFormat") "PRINT" }} media="print"{{ end }}>
{{- range .Site.Params.custom_css }}
<link href="{{(printf "%s" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
{{- end }}
{{- if .Site.Params.disableInlineCopyToClipBoard }} {{- if .Site.Params.disableInlineCopyToClipBoard }}
<style> <style>
:not(pre) > code.copy-to-clipboard-code + span.copy-to-clipboard-button { :not(pre) > code.copy-to-clipboard-code + span.copy-to-clipboard-button {