Split & convert CSS into 4 SCSS, dont use .button for now
This commit is contained in:
parent
5b990659a6
commit
36fdb286ae
7 changed files with 79 additions and 61 deletions
|
@ -1,5 +1,6 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||
{{ partialCached "head/css.html" . }}
|
||||
{{ partialCached "head/css.html" (dict "Css" "main") "main" }}
|
||||
{{ partialCached "head/css.html" (dict "Css" "post-item") "post-item" }}
|
||||
{{ partialCached "head/js.html" . }}
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
{{- with resources.Get "css/main.css" }}
|
||||
{{- $file_from := printf "scss/%s.scss" .Css }}
|
||||
{{- $file_to := printf "css/%s.css" .Css }}
|
||||
{{- $options := dict "transpiler" "libsass" "targetPath" $file_to }}
|
||||
{{- with resources.Get $file_from | toCSS $options }}
|
||||
{{- if eq hugo.Environment "development" }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||
{{- else }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue