{%- if config.extra.primary_color_dark %}
{%- endif %}
{% include "partials/title.html" %}
{%- if config.markdown.highlight_code and config.markdown.highlight_theme == "css" %} {%- if config.markdown.highlight_themes_css | length > 0 %}
{%- else %}
{%- endif %} {%- endif %} {%- if config.extra.comments %}
{%- endif %}
{%- if config.extra.emoji_favicon %}
{%- endif %} {%- if config.generate_feeds and config.feed_filenames %} {%- for feed in config.feed_filenames %}
{%- endfor %} {%- elif config.generate_feeds and config.feed_filenames | length > 0 %}
{%- endif %} {%- set stylesheets = [ "style.css" ] %} {%- if config.extra.katex %} {%- set stylesheets = stylesheets | concat(with=["katex.css"]) %} {%- endif %} {%- if config.extra.stylesheets %} {%- set stylesheets = stylesheets | concat(with=config.extra.stylesheets) %} {%- 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) %} {%- endif %} {%- for stylesheet in stylesheets %}
{%- endfor %} {%- if config.extra.show_copy_button %} {%- include "partials/copy_button.html" %} {%- endif %} {%- set scripts = [] %} {%- if config.extra.goatcounter %} {%- set scripts = scripts | concat(with=["count.js"]) %} {%- endif %} {%- if config.extra.katex %} {%- set scripts = scripts | concat(with=["katex.min.js", "auto-render.min.js"]) %} {%- endif %} {%- if config.build_search_index %} {%- include "partials/search.html" %} {%- set scripts = scripts | concat(with=["elasticlunr.min.js"]) %} {%- endif %} {%- if config.extra.nav.show_theme_switcher %} {%- set scripts = scripts | concat(with=["theme-switcher.js"]) %} {%- endif %} {%- if config.show_theme_switcher or config.languages | length > 0 %} {%- set scripts = scripts | concat(with=["details.js"]) %} {%- endif %} {%- if config.extra.scripts %} {%- set scripts = scripts | concat(with=config.extra.scripts) %} {%- endif %} {%- if page.extra.scripts %} {%- set scripts = scripts | concat(with=page.extra.scripts) %} {%- elif section.extra.scripts %} {%- set scripts = scripts | concat(with=section.extra.scripts) %} {%- endif %} {%- if scripts | length > 0 %} {%- for script in scripts %} {%- endfor %} {%- endif %}