forked from greenelab/lab-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.html
28 lines (26 loc) · 863 Bytes
/
styles.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- third party styles -->
<!-- https://stylishthemes.github.io/Syntax-Themes/pygments/ -->
<link
href="https://cdn.jsdelivr.net/gh/StylishThemes/Syntax-Themes/pygments/css-github/pygments-tomorrow-night-eighties.css"
rel="stylesheet"
/>
<!-- include all sass in styles folder -->
{% assign styles = site.pages
| where_exp: "file", "file.url contains '/_styles'"
%}
{% for style in styles %}
{% unless style.url contains ".map" %}
<link
href="{{ style.path | replace: ".scss", ".css" | relative_url }}"
rel="stylesheet"
/>
{% endunless %}
{% endfor %}
<!-- include all css in styles folder -->
{% assign styles = site.static_files
| where_exp: "file",
"file.path contains '/_styles' and file.path contains '.css'"
%}
{% for style in styles %}
<link href="{{ style.path | relative_url }}" rel="stylesheet" />
{% endfor %}