34 lines
1.7 KiB
HTML
34 lines
1.7 KiB
HTML
{{- $mainSass := "sass/styles.sass" }}
|
|
{{- $caseStudySass := "sass/case_study_styles.sass" }}
|
|
<link rel="stylesheet" href="/css/base_fonts.css">
|
|
{{- if .Site.IsServer }}
|
|
{{- $mainCssOpts := (dict "targetPath" "css/styles.css") }}
|
|
{{- $mainCss := resources.Get $mainSass | toCSS $mainCssOpts }}
|
|
<link rel="stylesheet" media="screen" href="{{ $mainCss.RelPermalink }}"><!-- default styles.css on -->
|
|
{{- else }}
|
|
{{- $mainCssOpts := (dict "targetPath" "css/styles.css") }}
|
|
{{- $mainCss := resources.Get $mainSass | toCSS $mainCssOpts | minify | fingerprint }}
|
|
<link rel="stylesheet" media="screen" href="{{ $mainCss.RelPermalink }}" integrity="{{ $mainCss.Data.Integrity }}"><!-- default styles.css on -->
|
|
{{- end }}
|
|
{{- if .Params.case_study_styles }}
|
|
{{- $caseStudyCssOpts := (dict "targetPath" "css/styles.css") }}
|
|
{{- $caseStudyCss := resources.Get $caseStudySass | toCSS $caseStudyCssOpts | minify | fingerprint }}
|
|
<link rel="stylesheet" media="screen" href="{{ $caseStudyCss.Permalink }}" integrity="{{ $caseStudyCss.Data.Integrity }}"><!-- custom case_study_styles on -->
|
|
{{- end }}
|
|
<link rel="stylesheet" href="{{ "css/jquery-ui.min.css" | relURL }}">
|
|
<link rel="stylesheet" href="{{ "css/sweetalert.min.css" | relURL }}">
|
|
<link rel="stylesheet" href="{{ "css/callouts.css" | relURL }}">
|
|
<link rel="stylesheet" href="{{ "css/custom-jekyll/tags.css" | relURL }}">
|
|
{{- if .Params.deprecated }}
|
|
<link rel="stylesheet" href="{{ "css/deprecation-warning.css" | relURL }}">
|
|
{{- end }}
|
|
{{- if eq .Params.class "gridPage" }}
|
|
<link rel="stylesheet" href="{{ "css/gridpage.css" | relURL }}">
|
|
{{- end }}
|
|
{{- with .Params.css }}
|
|
{{- range (split . ",") }}
|
|
{{- $url := trim . " " | relURL }}
|
|
<link rel="stylesheet" href="{{ $url }}"><!-- custom css added -->
|
|
{{- end }}
|
|
{{- end }}
|