web/_includes/css-selector.html

27 lines
762 B
HTML
Raw Normal View History

2020-05-29 20:30:50 +03:00
<!--
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 %}
2020-05-29 20:30:50 +03:00
{% assign src = style | prepend: '/assets/css/' | append: '.css' | relative_url %}
2020-05-29 20:30:50 +03:00
<link rel="preload" href="{{ src }}" as="style">
<link rel="stylesheet" href="{{ src }}">
2020-05-29 20:30:50 +03:00
{% if page.layout == 'post' %}
2020-05-29 20:30:50 +03:00
{% 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 %}