Skip to content

Commit

Permalink
Re-work extra CSS logic for .Params.css
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Jul 25, 2018
1 parent 2d9ba4d commit 1bc8dfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions layouts/partials/css.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- $mainSass := "sass/styles.sass" }}
{{- $caseStudySass := "sass/case_study_styles.sass" }}
{{- $extraPageCss := split .Params.css "," }}
<link rel="stylesheet" type="text/css" href="/css/base_fonts.css">
{{- if .Site.IsServer }}
{{- $mainCssOpts := (dict "targetPath" "css/styles.css") }}
Expand All @@ -26,7 +25,9 @@
{{- if eq .Params.class "gridPage" }}
<link rel="stylesheet" type="text/css" href="{{ "css/gridpage.css" | relURL }}">
{{- end }}
{{- range $extraPageCss }}
{{- with .Params.css }}
{{- range (split . ",") }}
{{- $url := trim . " " | relURL }}
<link rel="stylesheet" type="text/css" href="{{ $url }}"><!-- custom css added -->
{{- end }}
{{- end }}

0 comments on commit 1bc8dfc

Please sign in to comment.