e27825d3eb
Separate layout from tabs, and more friendly to tabs rename (#187)
26 lines
762 B
HTML
26 lines
762 B
HTML
<!--
|
|
CSS selector for site.
|
|
Chirpy v2.3
|
|
https://github.com/cotes2020/jekyll-theme-chirpy
|
|
© 2020 Cotes Chung
|
|
MIT Licensed
|
|
-->
|
|
|
|
|
|
{% if page.layout == 'category' or page.layout == 'tag' %}
|
|
{% assign style = 'category-tag' %}
|
|
{% else %}
|
|
{% assign style = page.layout %}
|
|
{% endif %}
|
|
|
|
{% assign src = style | prepend: '/assets/css/' | append: '.css' | relative_url %}
|
|
|
|
<link rel="preload" href="{{ src }}" as="style">
|
|
<link rel="stylesheet" href="{{ src }}">
|
|
|
|
{% if page.layout == 'post' %}
|
|
{% if site.toc and page.toc %}
|
|
<link rel="preload" as="style" href="{{ '/assets/css/lib/bootstrap-toc.min.css' | relative_url }}">
|
|
<link rel="stylesheet" href="{{ '/assets/css/lib/bootstrap-toc.min.css' | relative_url }}" />
|
|
{% endif %}
|
|
{% endif %}
|