Move all layouts to platters theme
This commit is contained in:
parent
de8101efed
commit
66adceaf24
91 changed files with 0 additions and 0 deletions
|
|
@ -1,36 +0,0 @@
|
|||
{{ $stylesheets := slice }}
|
||||
{{ with .Resources.Match "*.css" }}
|
||||
{{ range . }}
|
||||
{{ $stylesheets = $stylesheets | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if eq .Kind "home" }}
|
||||
{{ with resources.Get "styles/home.css" }}
|
||||
{{ $stylesheets = $stylesheets | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $processedStylesheets := slice }}
|
||||
{{ range $stylesheets }}
|
||||
{{ $processedStylesheets = $processedStylesheets | append (. | resources.ExecuteAsTemplate .Name .) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if hugo.IsProduction }}
|
||||
{{/*
|
||||
Replace the list of stylesheets that helps with debugging with a
|
||||
concatenated and fingerprinted version.
|
||||
*/}}
|
||||
{{ if gt (len $processedStylesheets) 0 }}
|
||||
{{ with $file := $.File }}
|
||||
{{ $outputFilename := printf "%s/page.css" $.File.Dir }}
|
||||
{{ $processedStylesheets = slice ($processedStylesheets
|
||||
| resources.Concat $outputFilename
|
||||
| fingerprint "md5") }}
|
||||
{{ else }}
|
||||
{{ warnf "No File for page CSS." }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $processedStylesheets }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue