Rename stylesheets key to styles [BREAKING CHANGE]
This commit is contained in:
@ -77,24 +77,24 @@
|
||||
{%- endif -%}
|
||||
</style>
|
||||
|
||||
{%- set stylesheets = [ "style.css" ] %}
|
||||
{%- set styles = [ "style.css" ] %}
|
||||
|
||||
{%- if config.extra.katex %}
|
||||
{%- set stylesheets = stylesheets | concat(with=["katex.css"]) %}
|
||||
{%- set styles = styles | concat(with=["katex.css"]) %}
|
||||
{%- endif %}
|
||||
|
||||
{%- if config.extra.stylesheets %}
|
||||
{%- set stylesheets = stylesheets | concat(with=config.extra.stylesheets) %}
|
||||
{%- if config.extra.styles %}
|
||||
{%- set styles = styles | concat(with=config.extra.styles) %}
|
||||
{%- endif %}
|
||||
|
||||
{%- if page.extra.stylesheets %}
|
||||
{%- set stylesheets = stylesheets | concat(with=page.extra.stylesheets) %}
|
||||
{%- elif section.extra.stylesheets %}
|
||||
{%- set stylesheets = stylesheets | concat(with=section.extra.stylesheets) %}
|
||||
{%- if page.extra.styles %}
|
||||
{%- set styles = styles | concat(with=page.extra.styles) %}
|
||||
{%- elif section.extra.styles %}
|
||||
{%- set styles = styles | concat(with=section.extra.styles) %}
|
||||
{%- endif %}
|
||||
|
||||
{%- for stylesheet in stylesheets %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ get_url(path=stylesheet) | safe }}" />
|
||||
{%- for style in styles %}
|
||||
<link type="text/css" rel="stylesheet" href="{{ get_url(path=style) | safe }}" />
|
||||
{%- endfor %}
|
||||
|
||||
{%- if config.extra.show_copy_button %}
|
||||
|
Reference in New Issue
Block a user